summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortorben2018-09-07 10:25:29 +0200
committertorben2018-09-07 10:25:29 +0200
commitc7ad4f01be683f8149600eb6e44c5153f4f1e519 (patch)
treebca2e7e2fcae047a265f6d00e486c7efefd5824f
parentfix. (diff)
downloadsystemd-init-c7ad4f01be683f8149600eb6e44c5153f4f1e519.tar.gz
systemd-init-c7ad4f01be683f8149600eb6e44c5153f4f1e519.tar.xz
systemd-init-c7ad4f01be683f8149600eb6e44c5153f4f1e519.zip
Release old ip before kexec.
-rwxr-xr-xmodules.d/dnbd-root-filesystem/hooks/update-boot-files.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh b/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh
index 2829344d..5df85014 100755
--- a/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh
+++ b/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh
@@ -341,6 +341,8 @@ EOF
--initrd "/mnt/$initramfs_file_path" \
--reuse-cmdline
then
+ # NOTE: This is needed to retrieve a new ip after kexec!
+ systemctl stop systemd-networkd
umount /mnt
kexec -e
else