1 |
commit: c7c2db9d5487d5a0c4e620c32d703f78951fd16b |
2 |
Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 3 01:33:44 2018 +0000 |
4 |
Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 3 01:33:44 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=c7c2db9d |
7 |
|
8 |
bigger slack, catch issues |
9 |
|
10 |
targets/support/create-iso.sh | 4 ++-- |
11 |
1 file changed, 2 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh |
14 |
index 323179f5..2091d918 100755 |
15 |
--- a/targets/support/create-iso.sh |
16 |
+++ b/targets/support/create-iso.sh |
17 |
@@ -272,7 +272,7 @@ case ${clst_hostarch} in |
18 |
# prepare gentoo.efimg from clst_target_path /boot/EFI dir |
19 |
iaSizeTemp=$(du -sk "${clst_target_path}/boot/EFI" 2>/dev/null) |
20 |
iaSizeB=$(echo ${iaSizeTemp} | cut '-d ' -f1) |
21 |
- iaSize=$((${iaSizeB}+32)) # Add slack |
22 |
+ iaSize=$((${iaSizeB}+64)) # add slack, tested near minimum for overhead |
23 |
echo "Creating loopback file of size ${iaSize}kB" |
24 |
dd if=/dev/zero of="${clst_target_path}/gentoo.efimg" bs=1k \ |
25 |
count=${iaSize} |
26 |
@@ -286,7 +286,7 @@ case ${clst_hostarch} in |
27 |
|
28 |
echo "Populating EFI image file from ${clst_target_path}/boot/EFI" |
29 |
cp -rv "${clst_target_path}"/boot/EFI/ \ |
30 |
- "${clst_target_path}/gentoo.efimg.mountPoint" |
31 |
+ "${clst_target_path}/gentoo.efimg.mountPoint" || die "Failed to populate EFI image file" |
32 |
|
33 |
umount "${clst_target_path}/gentoo.efimg.mountPoint" |
34 |
rmdir "${clst_target_path}/gentoo.efimg.mountPoint" |