From 0c74d70a9b027ed09553f7f9d18c77a339da3d9c Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 9 Mar 2024 15:01:15 +0100 Subject: [PATCH] Enable verbose output for grub --- scripts/Common/Config/GRUB/setup.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/Common/Config/GRUB/setup.sh b/scripts/Common/Config/GRUB/setup.sh index 787cff88..9bdb33fc 100755 --- a/scripts/Common/Config/GRUB/setup.sh +++ b/scripts/Common/Config/GRUB/setup.sh @@ -10,7 +10,14 @@ then BOOTLOADER_ID="${BOOTLOADER_ID}" \ bash "$BASH_SOURCE"; else - sed -i "s/#\(GRUB_DISABLE_OS_PROBER\)/\1/" /etc/default/grub; + sed -i \ + -e "s/#\(GRUB_DISABLE_OS_PROBER\)/\1/" \ + -e "/^GRUB_CMDLINE_LINUX_DEFAULT=/{" \ + -e "h; s/^/#/; p;" \ + -e "g; s/loglevel=3 quiet//" \ + -e "}" \ + /etc/default/grub; + grub-install --target=x86_64-efi --efi-directory="$EFI_BOOT_DIR" --bootloader-id="$BOOTLOADER_ID"; grub-mkconfig -o "$EFI_BOOT_DIR/grub/grub.cfg"; fi;