Open tzack000 opened 4 years ago
It works well now, but I'm not sure if this is the best way:
diff --git a/scripts/fast-reboot b/scripts/fast-reboot
index 0555121..ec371e0 100755
--- a/scripts/fast-reboot
+++ b/scripts/fast-reboot
@@ -202,7 +202,8 @@ if grep -q aboot_platform= /host/machine.conf; then
elif grep -q onie_platform= /host/machine.conf; then
KERNEL_OPTIONS=$(cat /host/grub/grub.cfg | sed "/$NEXT_SONIC_IMAGE'/,/}/"'!'"g" | grep linux)
KERNEL_IMAGE="/host$(echo $KERNEL_OPTIONS | cut -d ' ' -f 2)"
- BOOT_OPTIONS="$(echo $KERNEL_OPTIONS | sed -e 's/\s*linux\s*/BOOT_IMAGE=/') SONIC_BOOT_TYPE=${BOOT_TYPE_ARG}"
+ ACPI_RSDP=$(grep -m1 ^ACPI /sys/firmware/efi/systab | cut -f2- -d=)
+ BOOT_OPTIONS="$(echo $KERNEL_OPTIONS | sed -e 's/\s*linux\s*/BOOT_IMAGE=/') acpi_rsdp=${ACPI_RSDP} SONIC_BOOT_TYPE=${BOOT_TYPE_ARG}"
else
echo "Unknown bootloader. ${REBOOT_TYPE} is not supported."
exit 1
looks like a good fix. can you adapt the PR based on the coreos commit? https://github.com/coreos/bootengine/pull/38/files
The system was running SONiC/201811 for warm-reboot, after executed "sudo warm-reboot -v", I got this error, and the system hangs.
I did some research, and it seems that we need to pass acpi_rsdp parameter to kexec in UEFI system(https://github.com/coreos/bugs/issues/167). Not sure if this is a known issue.