summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorJoerg Schirottke <master@kanotix.com>2013-03-05 22:50:41 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2013-05-03 16:52:39 +0200
commit59db778bc74d1b920a03a61db6b4897b6a95ce2d (patch)
treec81a315930215596fad6b094c101eb897a1be9c8 /backend
parent137ad9c2523853e4ecf153580bc6f6ee21c9a992 (diff)
downloadacritoxinstaller-59db778bc74d1b920a03a61db6b4897b6a95ce2d.zip
acritoxinstaller-59db778bc74d1b920a03a61db6b4897b6a95ce2d.tar.gz
gfx=auto hack
Diffstat (limited to 'backend')
-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