summaryrefslogtreecommitdiff
path: root/config/binary_local-hooks/grub2-efi
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-05-20 16:14:29 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2012-05-20 16:14:29 +0200
commit8cf4cfb8048a0a1b0200fb15030f14dc61779d3b (patch)
treebf08986d434cf8ae8bfc1a149cb45bcb9fb13cfd /config/binary_local-hooks/grub2-efi
parente59f935de8d8358a351d571c2a7831b37cabdef4 (diff)
downloadkanotix-8cf4cfb8048a0a1b0200fb15030f14dc61779d3b.zip
kanotix-8cf4cfb8048a0a1b0200fb15030f14dc61779d3b.tar.gz
set efi_arch in grub.cfg
Diffstat (limited to 'config/binary_local-hooks/grub2-efi')
-rwxr-xr-xconfig/binary_local-hooks/grub2-efi9
1 files changed, 5 insertions, 4 deletions
diff --git a/config/binary_local-hooks/grub2-efi b/config/binary_local-hooks/grub2-efi
index 844ce7c..12af93b 100755
--- a/config/binary_local-hooks/grub2-efi
+++ b/config/binary_local-hooks/grub2-efi
@@ -43,10 +43,11 @@ EOF
mkdir -p "binary/boot/grub/$platform"
mkdir -p "binary/efi/boot"
-(for i in $(cat chroot/usr/lib/grub/$platform/partmap.lst); do
- echo "insmod $i"
- done; \
- echo "source /boot/grub/grub-efi.cfg") >"binary/boot/grub/$platform/grub.cfg"
+#(for i in $(cat chroot/usr/lib/grub/$platform/partmap.lst); do
+# echo "insmod $i"
+# done; \
+echo "set efi_arch=$efi_name
+source /boot/grub/grub-efi.cfg" >"binary/boot/grub/$platform/grub.cfg"
# fix module order ("gzio" should be loaded before "normal", otherwise a "prefix not set" error message will pop up on boot)
sed -i.orig -e '/^normal:/{/gzio/!{s/$/ gzio/}}' chroot/usr/lib/grub/$platform/moddep.lst