diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2017-02-25 12:57:04 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2017-02-25 12:57:04 +0000 |
commit | 8517df15181a8c0c4ce76766e405e024c9ed766c (patch) | |
tree | bb5f230788d49ca8c4d5905517fc1873ae456a2a /distrib | |
parent | 3f7d6a8c76a3d0cfe361e0dedc3bf19c69be7241 (diff) |
Localize _OPT as it is not used as a global variable.
OK tb@
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/miniroot/install.sub | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 4ceea77f236..ed656a7e071 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.974 2017/02/19 17:53:58 tb Exp $ +# $OpenBSD: install.sub,v 1.975 2017/02/25 12:57:03 rpe Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org> @@ -431,7 +431,7 @@ disklabel_autolayout() { # Create a partition table and configure the partition layout for disk $1. configure_disk() { - local _disk=$1 _fstab=/tmp/i/fstab.$1 + local _disk=$1 _fstab=/tmp/i/fstab.$1 _opt make_dev $_disk || return @@ -479,9 +479,9 @@ configure_disk() { # other filesystems. while read _pp _mp _fstype _rest; do [[ $_fstype == ffs ]] || continue - _OPT= - [[ $_mp == / ]] && _OPT=$MDROOTFSOPT - newfs -q $_OPT ${_pp##/dev/} + _opt= + [[ $_mp == / ]] && _opt=$MDROOTFSOPT + newfs -q $_opt ${_pp##/dev/} # N.B.: '!' is lexically < '/'. That is # required for correct sorting of # mount points. |