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
This commit is contained in:
parent
729e3c7a3a
commit
84dd7338d4
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user