diff options
author | torben | 2018-09-10 22:29:16 +0200 |
---|---|---|
committer | torben | 2018-09-10 22:29:16 +0200 |
commit | 91f564b5a179170ef2db8e1b2dd22d40337be8cd (patch) | |
tree | efc72219672a859748ad27cc258a687bf93794e1 | |
parent | enable background replication after wlan restart. (diff) | |
download | systemd-init-91f564b5a179170ef2db8e1b2dd22d40337be8cd.tar.gz systemd-init-91f564b5a179170ef2db8e1b2dd22d40337be8cd.tar.xz systemd-init-91f564b5a179170ef2db8e1b2dd22d40337be8cd.zip |
fix kernel panic.
-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 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 \ |