Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:master commit in: targets/support/
Date: Wed, 17 Oct 2018 19:26:58
Message-Id: 1539803645.2cec1993ea01aab8ba3c7e15e0e563f3a31e29b7.bkohler@gentoo
1 commit: 2cec1993ea01aab8ba3c7e15e0e563f3a31e29b7
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 17 19:14:05 2018 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 17 19:14:05 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=2cec1993
7
8 create-iso.sh: use --apparent-size when calculating ESP size
9
10 When catalyst uses du to check the size of files to be stored in the
11 vfat loopback image, FS compression (on the catalyst temp space) may
12 cause it to report a smaller value than will be needed on vfat. This
13 results in "No space left on device" when populating the EFI image.
14
15 Adding --apparent-size will tell the true size (rather than on-FS size)
16 which should be closer to what's needed when stored on vfat.
17
18 targets/support/create-iso.sh | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh
22 index 0422ae97..39c3fe07 100755
23 --- a/targets/support/create-iso.sh
24 +++ b/targets/support/create-iso.sh
25 @@ -126,7 +126,7 @@ case ${clst_hostarch} in
26 ia64)
27 if [ ! -e "${clst_target_path}/gentoo.efimg" ]
28 then
29 - iaSizeTemp=$(du -sk "${clst_target_path}/boot" 2>/dev/null)
30 + iaSizeTemp=$(du -sk --apparent-size "${clst_target_path}/boot" 2>/dev/null)
31 iaSizeB=$(echo ${iaSizeTemp} | cut '-d ' -f1)
32 iaSize=$((${iaSizeB}+64)) # Add slack