summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorGeorge Wilson <george.wilson@delphix.com>2016-06-09 16:05:36 -0400
committerMatthew Ahrens <mahrens@delphix.com>2016-06-09 19:42:08 -0400
commita76660dbabd3d3b161bdead081ce275af6966d2e (patch)
tree3ce5e75dd1daca319b30f8674a39a232bec67886 /usr
parent2fb0949cb8f76f6cc30b9fef03f032f1893bbc6c (diff)
downloadillumos-joyent-a76660dbabd3d3b161bdead081ce275af6966d2e.tar.gz
7083 create_ramdisk.sh need not check for inuse devices
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Reviewed by: Gordon Ross <gwr@nexenta.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr')
-rw-r--r--usr/src/cmd/boot/scripts/create_ramdisk.ksh6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/src/cmd/boot/scripts/create_ramdisk.ksh b/usr/src/cmd/boot/scripts/create_ramdisk.ksh
index f7e15b4bdf..abcad516a0 100644
--- a/usr/src/cmd/boot/scripts/create_ramdisk.ksh
+++ b/usr/src/cmd/boot/scripts/create_ramdisk.ksh
@@ -23,6 +23,10 @@
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+#
+# Copyright (c) 2014 by Delphix. All rights reserved.
+#
+
format=ufs
ALT_ROOT=
EXTRACT_ARGS=
@@ -255,7 +259,7 @@ function create_ufs
list="$list32"
fi
- newfs $lofidev < /dev/null 2> /dev/null
+ NOINUSE_CHECK=1 newfs $lofidev < /dev/null 2> /dev/null
mkdir "$rdmnt"
mount -F mntfs mnttab /etc/mnttab > /dev/null 2>&1
mount -F ufs -o nologging $lofidev "$rdmnt"