summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2018-12-21 08:13:43 -0600
committerBen Kohler <bkohler@gentoo.org>2018-12-21 08:13:43 -0600
commite8ecf2afe4e580cb6b67902018cf1b297d59e59a (patch)
treeee4df114be7a1aa1dbf9c3e9d7c154cc2d2651f9 /targets
parentcreate-iso.sh: copy EFI files onto iso root for vfat/usb compatibility (diff)
downloadcatalyst-e8ecf2afe4e580cb6b67902018cf1b297d59e59a.tar.gz
catalyst-e8ecf2afe4e580cb6b67902018cf1b297d59e59a.tar.bz2
catalyst-e8ecf2afe4e580cb6b67902018cf1b297d59e59a.zip
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@gentoo.org>
Diffstat (limited to 'targets')
-rwxr-xr-xtargets/support/functions.sh4
1 files changed, 3 insertions, 1 deletions
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