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() {