commit:     2cec1993ea01aab8ba3c7e15e0e563f3a31e29b7
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 17 19:14:05 2018 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Wed Oct 17 19:14:05 2018 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=2cec1993

create-iso.sh: use --apparent-size when calculating ESP size

When catalyst uses du to check the size of files to be stored in the
vfat loopback image, FS compression (on the catalyst temp space) may
cause it to report a smaller value than will be needed on vfat.  This
results in "No space left on device" when populating the EFI image.

Adding --apparent-size will tell the true size (rather than on-FS size)
which should be closer to what's needed when stored on vfat.

 targets/support/create-iso.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index 0422ae97..39c3fe07 100755
--- a/targets/support/create-iso.sh
+++ b/targets/support/create-iso.sh
@@ -126,7 +126,7 @@ case ${clst_hostarch} in
        ia64)
                if [ ! -e "${clst_target_path}/gentoo.efimg" ]
                then
-                       iaSizeTemp=$(du -sk "${clst_target_path}/boot" 
2>/dev/null)
+                       iaSizeTemp=$(du -sk --apparent-size 
"${clst_target_path}/boot" 2>/dev/null)
                        iaSizeB=$(echo ${iaSizeTemp} | cut '-d ' -f1)
                        iaSize=$((${iaSizeB}+64)) # Add slack
 

Reply via email to