summaryrefslogtreecommitdiff
path: root/config/binary_local-hooks/grub2-configs
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2015-04-25 13:54:46 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2015-04-25 13:54:46 +0200
commit0fe41b0364928fa702821b72d53c422cf2213201 (patch)
treefbf74ea1ad07349882ea29b0e39766bbf91c5b29 /config/binary_local-hooks/grub2-configs
parentaec48e18429e2cf1f651698ba69ea9d74e6d1ba4 (diff)
downloadkanotix-0fe41b0364928fa702821b72d53c422cf2213201.zip
kanotix-0fe41b0364928fa702821b72d53c422cf2213201.tar.gz
remove gfxdetect entries from grub.cfg for non-gfxdetect-builds
Diffstat (limited to 'config/binary_local-hooks/grub2-configs')
-rwxr-xr-xconfig/binary_local-hooks/grub2-configs8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/binary_local-hooks/grub2-configs b/config/binary_local-hooks/grub2-configs
index 7cd30ef..d870aff 100755
--- a/config/binary_local-hooks/grub2-configs
+++ b/config/binary_local-hooks/grub2-configs
@@ -15,3 +15,11 @@ then
cp config/binary_grub/grub*.cfg binary/boot/grub/
fi
+if echo "$LB_PACKAGE_LISTS" | grep -qw gfxdetect; then
+ # keep gfxdetect entries in grub.cfg (for gfxdetect-builds)
+ echo "grub2-configs: keeping gfxdetect entries"
+else
+ # remove gfxdetect entries from grub.cfg (for non-gfxdetect-builds)
+ sed -i '/gfxdetect/,/^}/{d}' binary/boot/grub/grub.cfg
+fi
+