summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-07-09 11:22:31 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-07-09 11:22:31 +0100
commitb7ae25345b17eb3994cf7213cab0b8cb096457e8 (patch)
tree6753a6f7b3760ea648436b7d57bf6715f4ebf019
parentd2f9ba46c0aef4ce8732fc5093bc6abe8b5bc3c8 (diff)
generate 32bit EFI bootloader
-rwxr-xr-xlibvasile8
1 files changed, 6 insertions, 2 deletions
diff --git a/libvasile b/libvasile
index 4016c06..5ef0f02 100755
--- a/libvasile
+++ b/libvasile
@@ -43,7 +43,8 @@ export local isokernelname="kernel-genkernel-"$isomainarch"-"$kernelver""
export local isoramfsname="initramfs-genkernel-"$isomainarch"-"$kernelver""
export local isoramfscmd="dracut -N -a dmsquash-live -a pollcdrom --force"
export local isochainloadcmd="grub2-mkimage -d /usr/lib64/grub/i386-pc -o core.img -O i386-pc biosdisk part_msdos fat -p /root"
-export local isoeficmd="grub2-mkimage -d /usr/lib64/grub/x86_64-efi -o bootx64.efi -O x86_64-efi ext2 fat udf btrfs ntfs reiserfs xfs hfsplus lvm ata part_msdos part_gpt part_apple bsd search_fs_uuid normal chain iso9660 configfile help loadenv reboot cat search memdisk tar boot linux chain -p /root"
+export local isoefix64cmd="grub2-mkimage -d /usr/lib64/grub/x86_64-efi -o bootx64.efi -O x86_64-efi ext2 fat udf btrfs ntfs reiserfs xfs hfsplus lvm ata part_msdos part_gpt part_apple bsd search_fs_uuid normal chain iso9660 configfile help loadenv reboot cat search memdisk tar boot linux chain -p /root"
+export local isoefiia32cmd="grub2-mkimage -d /usr/lib64/grub/i386-efi -o bootia32.efi -O i386-efi ext2 fat udf btrfs ntfs reiserfs xfs hfsplus lvm ata part_msdos part_gpt part_apple bsd search_fs_uuid normal chain iso9660 configfile help loadenv reboot cat search memdisk tar boot linux chain -p /root"
# iso image layout variables
@@ -243,7 +244,8 @@ isoramfs () {
isoefiimg () {
# generate efi bootloader
- chroot "$isorsynctarget" su - "$isouser" -c "$isoeficmd"
+ chroot "$isorsynctarget" su - "$isouser" -c "$isoefix64cmd"
+ chroot "$isorsynctarget" su - "$isouser" -c "$isoefiia32cmd"
}
isochainloader () {
@@ -302,6 +304,8 @@ prepareiso () {
isostop
mv ""$isorsynctarget"/root/bootx64.efi" "$isoefidir"
chmod 755 ""$isoefidir"/bootx64.efi"
+ mv ""$isorsynctarget"/root/bootia32.efi" "$isoefidir"
+ chmod 755 ""$isoefidir"/bootia32.efi"
# generate and copy syslinux -> grub chainloader for unetbootin compatibility
isostart
isochainloader