From 7b3ba5ee36ef6f4b0770df81f7368c5dbe576de1 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 17 Jan 2006 08:33:53 +0000 Subject: 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 --- tools/tools/nanobsd/nanobsd.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tools') 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" -- cgit v1.1