From 91f564b5a179170ef2db8e1b2dd22d40337be8cd Mon Sep 17 00:00:00 2001 From: torben Date: Mon, 10 Sep 2018 22:29:16 +0200 Subject: fix kernel panic. --- modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh | 2 ++ 1 file changed, 2 insertions(+) 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 d55233d3..e2fa3a72 100755 --- a/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh +++ b/modules.d/dnbd-root-filesystem/hooks/update-boot-files.sh @@ -337,6 +337,7 @@ EOF (( kernel_version < new_kernel_version )) || \ (( initramfs_version < new_initramfs_version )) then + sync if \ kexec \ --load "/mnt/$kernel_file_path" \ @@ -347,6 +348,7 @@ EOF # NOTE: This is needed to retrieve a new ip after kexec! systemctl stop systemd-networkd systemctl stop wpa_supplicant@wireless + sync kexec -e else bl.logging.warn \ -- cgit v1.2.3-55-g7522