commit:     c7c2db9d5487d5a0c4e620c32d703f78951fd16b
Author:     Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  3 01:33:44 2018 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Tue Jul  3 01:33:44 2018 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=c7c2db9d

bigger slack, catch issues

 targets/support/create-iso.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index 323179f5..2091d918 100755
--- a/targets/support/create-iso.sh
+++ b/targets/support/create-iso.sh
@@ -272,7 +272,7 @@ case ${clst_hostarch} in
                                # prepare gentoo.efimg from clst_target_path 
/boot/EFI dir
                                iaSizeTemp=$(du -sk 
"${clst_target_path}/boot/EFI" 2>/dev/null)
                                iaSizeB=$(echo ${iaSizeTemp} | cut '-d ' -f1)
-                               iaSize=$((${iaSizeB}+32)) # Add slack
+                               iaSize=$((${iaSizeB}+64)) # add slack, tested 
near minimum for overhead
                                echo "Creating loopback file of size 
${iaSize}kB"
                                dd if=/dev/zero 
of="${clst_target_path}/gentoo.efimg" bs=1k \
                                        count=${iaSize}
@@ -286,7 +286,7 @@ case ${clst_hostarch} in
 
                                echo "Populating EFI image file from 
${clst_target_path}/boot/EFI"
                                cp -rv "${clst_target_path}"/boot/EFI/ \
-                                       
"${clst_target_path}/gentoo.efimg.mountPoint"
+                                       
"${clst_target_path}/gentoo.efimg.mountPoint" || die "Failed to populate EFI 
image file"
 
                                umount 
"${clst_target_path}/gentoo.efimg.mountPoint"
                                rmdir 
"${clst_target_path}/gentoo.efimg.mountPoint"

Reply via email to