diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-04-21 21:41:34 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2005-04-21 21:41:34 +0000 |
commit | 2216265e769070a7bbd962303454843bd3e5a1b6 (patch) | |
tree | ad887e7870510c0352f02c0eb26491fbd573982b | |
parent | 741ecf37e174018ea17ec6d0b127891b36d0c004 (diff) |
Create disk device before attempting to disklabel it. Don't keep a
disk which couldn't be created in the selection list.
noticed by deraadt@
-rw-r--r-- | distrib/miniroot/install.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index 8e1a6d9fb88..c155124af5f 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sh,v 1.151 2005/04/02 14:27:08 krw Exp $ +# $OpenBSD: install.sh,v 1.152 2005/04/21 21:41:33 krw Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997-2004 Todd Miller, Theo de Raadt, Ken Westerback @@ -105,6 +105,7 @@ if [ ! -f /etc/fstab ]; then fi DISK=$resp + makedev $DISK || continue # Deal with disklabels, including editing the root disklabel # and labeling additional disks. This is machine-dependent since |