diff options
author | torben | 2018-09-07 10:25:29 +0200 |
---|---|---|
committer | torben | 2018-09-07 10:25:29 +0200 |
commit | c7ad4f01be683f8149600eb6e44c5153f4f1e519 (patch) | |
tree | bca2e7e2fcae047a265f6d00e486c7efefd5824f | |
parent | fix. (diff) | |
download | systemd-init-c7ad4f01be683f8149600eb6e44c5153f4f1e519.tar.gz systemd-init-c7ad4f01be683f8149600eb6e44c5153f4f1e519.tar.xz systemd-init-c7ad4f01be683f8149600eb6e44c5153f4f1e519.zip |
Release old ip before kexec.
-rwxr-xr-x | modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh | 2 |
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 |