commit: 2b684f7d8cb5281867cce1f53ebb22e9f687dcce
Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 2 18:54:08 2018 +0000
Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Mon Jul 2 18:54:08 2018 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=2b684f7d
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.
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 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"