From a76660dbabd3d3b161bdead081ce275af6966d2e Mon Sep 17 00:00:00 2001 From: George Wilson Date: Thu, 9 Jun 2016 16:05:36 -0400 Subject: [PATCH] 7083 create_ramdisk.sh need not check for inuse devices Reviewed by: Igor Kozhukhov Reviewed by: Gordon Ross Reviewed by: Dan McDonald Approved by: Robert Mustacchi --- usr/src/cmd/boot/scripts/create_ramdisk.ksh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" -- 2.11.4.GIT