Mercurial > hg > aboriginal
changeset 616:a95cb8f13284
Add SYSIMAGE_HDA_MEGS config parameter (defaulting to 64).
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 10 Feb 2009 22:13:55 -0600 |
parents | 7523d1f3b818 |
children | fe06c3f2fa64 |
files | config system-image.sh |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/config Tue Feb 10 21:14:09 2009 -0600 +++ b/config Tue Feb 10 22:13:55 2009 -0600 @@ -33,6 +33,10 @@ # export SYSIMAGE_TYPE=ext2 +# Size of writeable HDA image (if any), defaults to 64 megs + +# export SYSIMAGE_HDA_MEGS=64 + # If this is set, try downloading packages from this location first. # export PREFERRED_MIRROR=http://landley.net/code/firmware/mirror
--- a/system-image.sh Tue Feb 10 21:14:09 2009 -0600 +++ b/system-image.sh Tue Feb 10 22:13:55 2009 -0600 @@ -89,14 +89,16 @@ echo "Generating ext2 image (in background)" + [ -z "$SYSIMAGE_HDA_MEGS" ] && SYSIMAGE_HDA_MEGS=64 + IMAGE="image-${ARCH}.ext2" DEVLIST="$WORK"/devlist echo "/dev d 755 0 0 - - - - -" > "$DEVLIST" && echo "/dev/console c 640 0 0 5 1 0 0 -" >> "$DEVLIST" && - genext2fs -z -D "$DEVLIST" -d "${NATIVE_ROOT}" -i 1024 -b $[64*1024] \ - "${SYSIMAGE}/${IMAGE}" && + genext2fs -z -D "$DEVLIST" -d "${NATIVE_ROOT}" \ + -i 1024 -b $[$SYSIMAGE_HDA_MEGS*1024] "${SYSIMAGE}/${IMAGE}" && rm "$DEVLIST" || dienow #elif [ "$SYSIMAGE_TYPE" == "squashfs" ]