aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2018-10-17 14:14:05 -0500
committerBen Kohler <bkohler@gentoo.org>2018-10-17 14:14:05 -0500
commit2cec1993ea01aab8ba3c7e15e0e563f3a31e29b7 (patch)
tree5e8c80d583cf301a966698ed5cec6bcaa0971092
parentkmerge.sh: fix quoting on gk_mainargs fix (diff)
downloadcatalyst-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-xtargets/support/create-iso.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
index 0422ae9..39c3fe0 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