Mercurial > hg > aboriginal
changeset 712:9d766670154a
genext2fs needs a minimum amount of free space or it dies.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 10 Apr 2009 03:29:29 -0500 |
parents | 20ba34b54140 |
children | 9282f84b31a1 |
files | system-image.sh |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/system-image.sh Thu Apr 09 23:53:05 2009 -0500 +++ b/system-image.sh Fri Apr 10 03:29:29 2009 -0500 @@ -99,8 +99,10 @@ # Produce a filesystem with the currently used space plus 20% for filesystem # overhead, which should always be big enough. - genext2fs -z -D "$DEVLIST" -d "$NATIVE_ROOT" \ - -b $[1024*(($(du -m -s "$NATIVE_ROOT" | awk '{print $1}')*12)/10)] -i 1024 \ + BLOCKS=$[1024*(($(du -m -s "$NATIVE_ROOT" | awk '{print $1}')*12)/10)] + [ $BLOCKS -lt 4096 ] && BLOCKS=4096 + + genext2fs -z -D "$DEVLIST" -d "$NATIVE_ROOT" -b $BLOCKS -i 1024 \ "$SYSIMAGE/$IMAGE" && rm "$DEVLIST" || dienow