aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2018-12-21 08:12:40 -0600
committerBen Kohler <bkohler@gentoo.org>2018-12-21 08:12:40 -0600
commit8a70e1ec82d1dbe29b8edf69514a5073ecc1ed71 (patch)
treee9338c1baeed85e7e74a460f680eacb413e14d88
parentcreate-iso.sh: Call xorriso instead of xorrisofs (diff)
downloadcatalyst-8a70e1ec82d1dbe29b8edf69514a5073ecc1ed71.tar.gz
catalyst-8a70e1ec82d1dbe29b8edf69514a5073ecc1ed71.tar.bz2
catalyst-8a70e1ec82d1dbe29b8edf69514a5073ecc1ed71.zip
create-iso.sh: copy EFI files onto iso root for vfat/usb compatibility
Tools like rufus & unetbootin will take our iso9660 FS contents & put them onto a device with real (msdos or gpt) partitions and a vfat filesystem. For EFI boot, this means the new FS must contain the EFI boot images. The ones we have embedded into the iso (el torito) boot sector will be lost. This commit makes sure /EFI is available on the iso image root, so that it's usable for EFI boot after vfat conversion. Signed-off-by: Ben Kohler <bkohler@gentoo.org>
-rwxr-xr-xtargets/support/create-iso.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index 1637c2e..253a888 100755
--- a/targets/support/create-iso.sh
+++ b/targets/support/create-iso.sh
@@ -274,7 +274,10 @@ case ${clst_hostarch} in
umount "${clst_target_path}/gentoo.efimg.mountPoint"
rmdir "${clst_target_path}/gentoo.efimg.mountPoint"
- echo "Removing /boot contents"
+ echo "Copying /boot/EFI to /EFI for rufus compatability"
+ cp -rv "${clst_target_path}"/boot/EFI/ "${clst_target_path}"
+
+ echo "Emptying /boot"
rm -rf "${clst_target_path}"/boot
mkdir -p "${clst_target_path}"/boot
fi