diff options
author | phk <phk@FreeBSD.org> | 2006-01-17 08:33:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-01-17 08:33:53 +0000 |
commit | 7b3ba5ee36ef6f4b0770df81f7368c5dbe576de1 (patch) | |
tree | 7de08fb80ff7cead4fe00299e5a8302982db8039 | |
parent | 7c81abec73c7f3407519c6f8d20e20c2b85e0a5a (diff) | |
download | FreeBSD-src-7b3ba5ee36ef6f4b0770df81f7368c5dbe576de1.zip FreeBSD-src-7b3ba5ee36ef6f4b0770df81f7368c5dbe576de1.tar.gz |
Add two new variables:
# Size of the /etc ramdisk in 512 bytes sectors
NANO_RAM_ETCSIZE=10240
# Size of the /tmp+/var ramdisk in 512 bytes sectors
NANO_RAM_TMPVARSIZE=10240
And a last_orders() shell function which can be redefined to copy
finished images away, order peanuts or whatever else is appropriate
-rw-r--r-- | tools/tools/nanobsd/nanobsd.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/tools/nanobsd/nanobsd.sh b/tools/tools/nanobsd/nanobsd.sh index 5555fa1..1be2c7c 100644 --- a/tools/tools/nanobsd/nanobsd.sh +++ b/tools/tools/nanobsd/nanobsd.sh @@ -93,6 +93,12 @@ NANO_CONFSIZE=2048 # If negative: max size possible NANO_DATASIZE=0 +# Size of the /etc ramdisk in 512 bytes sectors +NANO_RAM_ETCSIZE=10240 + +# Size of the /tmp+/var ramdisk in 512 bytes sectors +NANO_RAM_TMPVARSIZE=10240 + # Media geometry, only relevant if bios doesn't understand LBA. NANO_SECTS=32 NANO_HEADS=16 @@ -242,6 +248,9 @@ setup_nanobsd ( ) ( find $d -print | cpio -dumpl conf/base/ done + echo "$NANO_RAM_ETCSIZE" > conf/base/etc/md_size + echo "$NANO_RAM_TMPVARSIZE" > conf/base/var/md_size + # pick up config files from the special partition echo "mount -o ro /dev/${NANO_DRIVE}s3" > conf/default/etc/remount @@ -381,6 +390,13 @@ create_i386_diskimage ( ) ( ) > ${MAKEOBJDIRPREFIX}/_.di 2>&1 ) +last_orders () ( + # Redefine this function with any last orders you may have + # after the build completed, for instance to copy the finished + # image to a more convenient place: + # cp ${MAKEOBJDIRPREFIX}/_.disk.image /home/ftp/pub/nanobsd.disk +) + ####################################################################### # # Optional convenience functions. @@ -550,5 +566,6 @@ run_customize setup_nanobsd prune_usr create_${NANO_ARCH}_diskimage +last_orders echo "# NanoBSD image completed" |