summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2017-09-24 10:22:43 +0800
committerIru Cai <mytbk920423@gmail.com>2017-09-24 10:22:43 +0800
commit5c1c2ee4e3bed29ce8d8fd9474b8eef2a7d3f192 (patch)
tree768867063f6f90239e5e2a18391b9c7a27bda85b
parent7f071ac2f6c0e08084405c22c96ff3012bd31124 (diff)
downloadliveusb-builder-5c1c2ee4e3bed29ce8d8fd9474b8eef2a7d3f192.tar.xz
only enable high res fb mode in efi
-rwxr-xr-xbuildlive17
1 files changed, 9 insertions, 8 deletions
diff --git a/buildlive b/buildlive
index caf03ac..22b6a00 100755
--- a/buildlive
+++ b/buildlive
@@ -116,14 +116,15 @@ echo '# The live USB grub.cfg file' > "$GRUBCFG"
if [ -z "$TXTMODE" ]; then
cat >> "$GRUBCFG" << 'EOF'
-insmod all_video
-insmod font
-if loadfont /grub/fonts/unicode.pf2
-then
- insmod gfxterm
- set gfxmode=auto
- set gfxpayload=keep
- terminal_output gfxterm
+if [ ${grub_platform} == efi ]; then
+ insmod all_video
+ insmod font
+ if loadfont /grub/fonts/unicode.pf2; then
+ insmod gfxterm
+ set gfxmode=auto
+ set gfxpayload=keep
+ terminal_output gfxterm
+ fi
fi
EOF