From ffc76ae2feb68094eb51018e07cebfb3064017ed Mon Sep 17 00:00:00 2001 From: Khasim Syed Mohammed Date: Tue, 25 May 2021 19:59:50 +0530 Subject: n1sdp: fix second Ubuntu boot stopping at GRUB console apt-get install of grub-efi-arm64 on Ubuntu 18.04 is installing grub-efi-arm64 version 2.04 (earlier version 2.02 was getting installed) and this (2.04) version has many fixes for secure boot and this explicitly requires us to select between, --uefi-secure-boot (this is the default if signed file is available) --no-uefi-secure-boot And since we don't provide a signed file the GRUB enters the command shell. By providing --no-uefi-secure-boot with grub-install we ensure the grub is not looking for a signed file. This loads the appropriate .cfg file and boots the system. Signed-off-by: Khasim Syed Mohammed Change-Id: I0d395caee72a26003bbde9ccd5e60b4ffa5db8a3 --- helpers/platforms/n1sdp/ubuntu/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/platforms/n1sdp/ubuntu/init b/helpers/platforms/n1sdp/ubuntu/init index bda7657..9fd768c 100644 --- a/helpers/platforms/n1sdp/ubuntu/init +++ b/helpers/platforms/n1sdp/ubuntu/init @@ -53,7 +53,7 @@ echo "LABEL=ESP /boot/efi vfat defaults 0 0" >> etc/fstab mkdir /boot/efi mount /boot/efi mount -t efivarfs efivarfs /sys/firmware/efi/efivars/ -grub-install || true +grub-install --no-uefi-secure-boot || true [ -e /linux-image-n1sdp.deb ] && dpkg -i /linux-image-n1sdp.deb [ -e /linux-headers-n1sdp.deb ] && dpkg -i /linux-headers-n1sdp.deb sed -ie 's/^GRUB_TIMEOUT_STYLE=.*$/GRUB_TIMEOUT_STYLE=menu/; s/^GRUB_TIMEOUT=.*$/GRUB_TIMEOUT=2/; s/GRUB_CMDLINE_LINUX_DEFAULT=.*$/GRUB_CMDLINE_LINUX_DEFAULT="earlycon vfio-pci.ids=10ee:9038"/' /etc/default/grub -- cgit v1.2.3