feat: speed up kexec boot

Do not check if the new kernel is correctly copied in memory.

On ARM64 (Hetzner CAX21, CAX41) it improves boot from 4 minutes to a few seconds.

Option introduced in kexec-tools here: 0481e9ed61
More on this https://eastrivervillage.com/kexec-tools-with-the-hidden-purgatory/
This commit is contained in:
Jean-François Roche 2023-05-08 10:30:28 +02:00
parent 5aeef49472
commit b2256e68d3

View file

@ -54,7 +54,7 @@ find . | cpio -o -H newc | gzip -9 >> "$SCRIPT_DIR/initrd"
# Dropped --kexec-syscall-auto because it broke on GCP... # Dropped --kexec-syscall-auto because it broke on GCP...
"$SCRIPT_DIR/kexec" --load "$SCRIPT_DIR/bzImage" \ "$SCRIPT_DIR/kexec" --load "$SCRIPT_DIR/bzImage" \
--initrd="$SCRIPT_DIR/initrd" \ --initrd="$SCRIPT_DIR/initrd" --no-checks \
--command-line "init=$init $kernelParams" --command-line "init=$init $kernelParams"
# Disconnect our background kexec from the terminal # Disconnect our background kexec from the terminal