summaryrefslogtreecommitdiff
path: root/backend/modules/bootloader
diff options
context:
space:
mode:
Diffstat (limited to 'backend/modules/bootloader')
-rw-r--r--backend/modules/bootloader3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/modules/bootloader b/backend/modules/bootloader
index d0e39a2..afb5091 100644
--- a/backend/modules/bootloader
+++ b/backend/modules/bootloader
@@ -97,6 +97,9 @@ function install_grub()
write_kernel_img_conf
+ # gfx=auto hack
+ grep -q gfx=auto /proc/cmdline && chroot_it sed -i 's/\(^GRUB_CMDLINE_LINUX_DEFAULT=\).*/\1"quiet rw gfx=auto"/;s/\(^GRUB_CMDLINE_LINUX=\).*/\1""/' /etc/default/grub
+
# update grub
chroot_it update-grub &>/dev/null
DEBIAN_FRONTEND=noninteractive chroot_it dpkg-reconfigure grub-pc &>/dev/null