From be338643b0632615afb38ffd70a5c10cc6ad7272 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 18 May 2022 08:04:00 +0200 Subject: [PATCH] change to kexec -c --- usr/lib/archboot/update-installer.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr/lib/archboot/update-installer.sh b/usr/lib/archboot/update-installer.sh index 7a0bc1999..e7ec78af5 100644 --- a/usr/lib/archboot/update-installer.sh +++ b/usr/lib/archboot/update-installer.sh @@ -229,13 +229,16 @@ _create_initramfs() { } _kexec () { - kexec -s -f /"${VMLINUZ}" --initrd="/initrd.img" --reuse-cmdline & + kexec -c -f /"${VMLINUZ}" --initrd="/initrd.img" --reuse-cmdline & sleep 2 rm /{${VMLINUZ},initrd.img} + while pgrep -x kexec; do + sleep 1 + done + echo "Rebooting in a few seconds ..." while true; do sleep 1 done - } _cleanup_install() {