summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJuniorJPDJ2021-07-08 10:47:29 +0200
committerMichael Brown2021-07-26 16:34:33 +0200
commitb33cc1efe33ecf55017bb4ca7e8355e7b9c6e50c (patch)
tree13545501a3b1c1ea1eb7784da58be3a312b6b61b /src/util
parent[cloud] Retry DHCP aggressively in AWS EC2 (diff)
downloadipxe-b33cc1efe33ecf55017bb4ca7e8355e7b9c6e50c.tar.gz
ipxe-b33cc1efe33ecf55017bb4ca7e8355e7b9c6e50c.tar.xz
ipxe-b33cc1efe33ecf55017bb4ca7e8355e7b9c6e50c.zip
[build] Fix genfsimg to work with FATDIR with space
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/genfsimg2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/genfsimg b/src/util/genfsimg
index 1635a11a..c1315820 100755
--- a/src/util/genfsimg
+++ b/src/util/genfsimg
@@ -255,7 +255,7 @@ fi
# Create FAT filesystem image, if applicable
#
if [ -n "${FATIMG}" ] ; then
- FATSIZE=$(du -s -k ${FATDIR} | cut -f1)
+ FATSIZE=$(du -s -k "${FATDIR}" | cut -f1)
FATSIZE=$(( FATSIZE + PAD + 256 ))
touch "${FATIMG}"
if [ "${FATSIZE}" -le "1440" ] ; then