summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2005-04-21 21:41:33 +0000
committerkrw <krw@openbsd.org>2005-04-21 21:41:33 +0000
commit6c02156608e37c54f0c96e413271cb1600390e39 (patch)
tree66fbe55f0a6e96299a6b184d3f45dbca8d2616ad
parentinstall some forgotten man pages (diff)
downloadwireguard-openbsd-6c02156608e37c54f0c96e413271cb1600390e39.tar.xz
wireguard-openbsd-6c02156608e37c54f0c96e413271cb1600390e39.zip
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.sh3
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