Skip to content

Commit

Permalink
7083 create_ramdisk.sh need not check for inuse devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
grwilson authored and ahrens committed Jun 9, 2016
1 parent 2fb0949 commit a76660d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion usr/src/cmd/boot/scripts/create_ramdisk.ksh
Expand Up @@ -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=
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a76660d

Please sign in to comment.