Skip to content

Commit

Permalink
cmd-build: build uefi+bios images
Browse files Browse the repository at this point in the history
Install both uefi and bios grub, but have them read the same config.
  • Loading branch information
Andrew Jeddeloh committed Jun 18, 2019
1 parent 34c3094 commit 64a329b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/create_disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ grub2-install \
--boot-directory rootfs/boot \
$disk

# install uefi grub
mkdir -p rootfs/boot/efi/EFI/boot
grub2-mkimage \
--format x86_64-efi \
--output rootfs/boot/efi/EFI/boot/bootx64.efi \
--prefix '(hd0,gpt1)/grub2' \
normal fat part_gpt gzio terminal configfile echo ext2
cp -r /usr/lib/grub/x86_64-efi rootfs/boot/grub2/

# copy the grub config and any other files we might need
cp $grub_script rootfs/boot/grub2/grub.cfg
touch rootfs/boot/ignition.firstboot
Expand Down
3 changes: 2 additions & 1 deletion src/vmdeps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ selinux-policy selinux-policy-targeted policycoreutils

# coreos-assembler
#FEDORA python3 python3-gobject-base buildah podman skopeo iptables iptables-libs
gdisk xfsprogs e2fsprogs grub2 dosfstools

gdisk xfsprogs e2fsprogs grub2 dosfstools grub2-efi-x64-modules

0 comments on commit 64a329b

Please sign in to comment.