summaryrefslogtreecommitdiffstats
path: root/tools/tools
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2007-04-20 07:21:09 +0000
committeradrian <adrian@FreeBSD.org>2007-04-20 07:21:09 +0000
commitced7bf5a9f999bb296308d31bca09fd7735eefc9 (patch)
tree89a88b23cf269b6563e5a1c241975b1dee35a5bb /tools/tools
parent711037246e3ddfae7d52ff44a0f5d8d1c50e20eb (diff)
downloadFreeBSD-src-ced7bf5a9f999bb296308d31bca09fd7735eefc9.zip
FreeBSD-src-ced7bf5a9f999bb296308d31bca09fd7735eefc9.tar.gz
NanoBSD modifications:
* Break out the boot0 loader selection into a variable - NANO_BOOTLOADER - so people like me with VGA consoles can override the default (which is to use boot0sio) * Put the boot0 configuration options in NANO_BOOT0CFG in case you want to override the defaults. * Modify nanobsd.8 to reflect the changes and hint the console default is serial. MFC after: 2 weeks
Diffstat (limited to 'tools/tools')
-rw-r--r--tools/tools/nanobsd/nanobsd.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/tools/nanobsd/nanobsd.sh b/tools/tools/nanobsd/nanobsd.sh
index e2ddf7c..868d784 100644
--- a/tools/tools/nanobsd/nanobsd.sh
+++ b/tools/tools/nanobsd/nanobsd.sh
@@ -103,6 +103,10 @@ NANO_RAM_TMPVARSIZE=10240
NANO_SECTS=32
NANO_HEADS=16
+# boot0 flags/options and configuration
+NANO_BOOT0CFG="-o packet -s 1 -m 3"
+NANO_BOOTLOADER="boot/boot0sio"
+
#######################################################################
# Not a variable at this time
@@ -364,7 +368,7 @@ create_i386_diskimage ( ) (
fdisk ${MD}
# XXX: params
# XXX: pick up cached boot* files, they may not be in image anymore.
- boot0cfg -B -b ${NANO_WORLDDIR}/boot/boot0sio -o packet -s 1 -m 3 ${MD}
+ boot0cfg -B -b ${NANO_WORLDDIR}/${NANO_BOOTLOADER} ${NANO_BOOT0CFG} ${MD}
bsdlabel -w -B -b ${NANO_WORLDDIR}/boot/boot ${MD}s1
bsdlabel ${MD}s1
@@ -573,6 +577,8 @@ export NANO_SECTS
export NANO_SRC
export NANO_TOOLS
export NANO_WORLDDIR
+export NANO_BOOT0CFG
+export NANO_BOOTLOADER
#######################################################################
# And then it is as simple as that...
OpenPOWER on IntegriCloud