summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2008-08-09 09:27:54 +0000
committerphk <phk@FreeBSD.org>2008-08-09 09:27:54 +0000
commit945ee4f0e9e659b700475cfb6ba66ac5402ea514 (patch)
tree47a6761fc3de593380c8949e3333b27d516560e2 /tools
parent7e44a4aee7568bd7171d7d06078e414c4c94117f (diff)
downloadFreeBSD-src-945ee4f0e9e659b700475cfb6ba66ac5402ea514.zip
FreeBSD-src-945ee4f0e9e659b700475cfb6ba66ac5402ea514.tar.gz
Add -i option to supress image building.
Submitted by: keramida
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/nanobsd/nanobsd.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/tools/nanobsd/nanobsd.sh b/tools/tools/nanobsd/nanobsd.sh
index 624c324..9d3b9e5 100644
--- a/tools/tools/nanobsd/nanobsd.sh
+++ b/tools/tools/nanobsd/nanobsd.sh
@@ -581,6 +581,7 @@ usage () {
echo " -b suppress builds (both kernel and world)"
echo " -k suppress buildkernel"
echo " -w suppress buildworld"
+ echo " -i suppress disk image build"
echo " -c specify config file"
) 1>&2
exit 2
@@ -591,9 +592,10 @@ usage () {
do_kernel=true
do_world=true
+do_image=true
set +e
-args=`getopt bc:hkw $*`
+args=`getopt bc:hkwi $*`
if [ $? -ne 0 ] ; then
usage
exit 2
@@ -622,6 +624,8 @@ do
-h)
usage
;;
+ -i)
+ do_image=false
-w)
shift;
do_world=false
@@ -713,7 +717,11 @@ install_kernel
run_customize
setup_nanobsd
prune_usr
-create_${NANO_ARCH}_diskimage
+if $do_image ; then
+ create_${NANO_ARCH}_diskimage
+else
+ echo "## Skipping image build (as instructed)"
+fi
last_orders
echo "# NanoBSD image completed"
OpenPOWER on IntegriCloud