commit: e8ecf2afe4e580cb6b67902018cf1b297d59e59a
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 21 14:13:43 2018 +0000
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Fri Dec 21 14:13:43 2018 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=e8ecf2af
functions.sh: load part_gpt & part_msdos in our grub-stub.cfg
Loading part_gpt & part_msdos in our grub config will allow our image to
boot from partitioned devices (such as those created by rufus or
unetbootin).
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
targets/support/functions.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/targets/support/functions.sh b/targets/support/functions.sh
index ce43abba..54455210 100755
--- a/targets/support/functions.sh
+++ b/targets/support/functions.sh
@@ -103,7 +103,9 @@ create_bootloader() {
fi
#create grub-stub.cfg for embedding in grub-mkstandalone
- echo "search --no-floppy --set=root --file /livecd" > grub-stub.cfg
+ echo "insmod part_gpt" > grub-stub.cfg
+ echo "insmod part_msdos" >> grub-stub.cfg
+ echo "search --no-floppy --set=root --file /livecd" >> grub-stub.cfg
echo "configfile /grub/grub.cfg" >> grub-stub.cfg
# some 64 bit machines have 32 bit UEFI, and you might want to boot 32 bit
on a 64 bit machine, so we take the safest path and include both