aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina (Zero_Chaos) <zerochaos@gentoo.org>2018-07-02 14:54:08 -0400
committerRick Farina (Zero_Chaos) <zerochaos@gentoo.org>2018-07-02 14:54:08 -0400
commit2b684f7d8cb5281867cce1f53ebb22e9f687dcce (patch)
tree41aabe688d8d5bfe55903ee5b12dbd4f72c62937
parentcreate the bootloader if cdtar not specified (diff)
downloadcatalyst-2b684f7d8cb5281867cce1f53ebb22e9f687dcce.tar.gz
catalyst-2b684f7d8cb5281867cce1f53ebb22e9f687dcce.tar.bz2
catalyst-2b684f7d8cb5281867cce1f53ebb22e9f687dcce.zip
add more slack and catch error
I have no idea why we are running out of space in the efi boot image, but for right now I'm just going to detect the failure and blindly add more slack.
-rwxr-xr-xtargets/support/create-iso.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index 607a89aa..323179f5 100755
--- a/targets/support/create-iso.sh
+++ b/targets/support/create-iso.sh
@@ -124,7 +124,7 @@ case ${clst_hostarch} in
then
iaSizeTemp=$(du -sk "${clst_target_path}/boot" 2>/dev/null)
iaSizeB=$(echo ${iaSizeTemp} | cut '-d ' -f1)
- iaSize=$((${iaSizeB}+32)) # Add slack
+ iaSize=$((${iaSizeB}+64)) # Add slack
dd if=/dev/zero of="${clst_target_path}/gentoo.efimg" bs=1k \
count=${iaSize}
@@ -136,7 +136,7 @@ case ${clst_hostarch} in
echo '>> Populating EFI image...'
cp -rv "${clst_target_path}"/boot/* \
- "${clst_target_path}/gentoo.efimg.mountPoint"
+ "${clst_target_path}/gentoo.efimg.mountPoint" || die "Failed to populate EFI image"
umount "${clst_target_path}/gentoo.efimg.mountPoint"
rmdir "${clst_target_path}/gentoo.efimg.mountPoint"