diff options
author | Ben Kohler <bkohler@gentoo.org> | 2018-10-17 14:14:05 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2018-10-17 14:14:05 -0500 |
commit | 2cec1993ea01aab8ba3c7e15e0e563f3a31e29b7 (patch) | |
tree | 5e8c80d583cf301a966698ed5cec6bcaa0971092 | |
parent | kmerge.sh: fix quoting on gk_mainargs fix (diff) | |
download | catalyst-2cec1993ea01aab8ba3c7e15e0e563f3a31e29b7.tar.gz catalyst-2cec1993ea01aab8ba3c7e15e0e563f3a31e29b7.tar.bz2 catalyst-2cec1993ea01aab8ba3c7e15e0e563f3a31e29b7.zip |
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.
-rwxr-xr-x | targets/support/create-iso.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |