mirror of
https://git.proxmox.com/git/ifupdown2
synced 2025-04-28 12:58:21 +00:00
fix #5869: d/postinst: do not fail if ifreload fails on first install
erroring out here will not help getting a running network, therefore
just log a warning.
Tested the original reporters case (running in a debootstrap) with:
```
mmdebstrap \
--variant=minbase \
--include=/tmp/ifupdown2_3.2.0-1+pmx10_all.deb \
--hook-dir=/usr/share/mmdebstrap/hooks/file-mirror-automount \
bookworm \
./bookworm-amd64.tar.zst
```
ran through our install on plain debian guide:
https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_12_Bookworm
with this package in a local repository to check for regressions
adding the reference to the commit that introduced the reload on
first-install, as this got shifted around a bit and it took me too
long to see that we did not want to error out here on purpose
Fixes: 86335f3f89
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
48bff42bc2
commit
8453de808d
2
debian/ifupdown2.postinst
vendored
2
debian/ifupdown2.postinst
vendored
@ -114,7 +114,7 @@ case "$1" in
|
||||
if [ -f "/tmp/.ifupdown2-first-install" ] && [ ! -e /proxmox_install_mode ]; then
|
||||
proxmox_compatibility
|
||||
echo "Reloading network config on first install"
|
||||
ifreload -a
|
||||
ifreload -a || report_warn "Reloading failed"
|
||||
rm /tmp/.ifupdown2-first-install
|
||||
fi
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user