summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-10-03 20:26:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-10-03 20:26:36 +0000
commit96380ab95c7a7bc4bb40f847fe30cc128fab9ecb (patch)
treee39aa74f76b2dce3ef8b4b0117ec78c25d372b66 /distrib
parent0b3065027ddea7e2303572d53918d88d49b46a54 (diff)
choose install-from disk correctly; matthieu@mipnet.fr, PR#325
Diffstat (limited to 'distrib')
-rw-r--r--distrib/miniroot/install.sub6
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 38bf3b4f9b8..8e62b6d6f42 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sub,v 1.39 1997/09/25 05:16:43 millert Exp $
+# $OpenBSD: install.sub,v 1.40 1997/10/03 20:26:35 deraadt Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -1147,10 +1147,10 @@ __mount_a_disk_1
sed -n -e '/^ .:/{s/^ \(.\).*/\1/;H;}' \
-e '${g;s/\n//g;s/^/[/;s/$/]/p;}'`
_def_partition=`echo $_likely_partition_range | \
- sed -n 's/^\[\(.\)\]/\1/p'`
+ sed -n 's/^\[\(.\).*\]/\1/p'`
if [ -z "$_def_partition" ]; then
_def_partition=`echo $_partition_range | \
- sed -n 's/^\[\(.\)\]/\1/p'`
+ sed -n 's/^\[\(.\).*\]/\1/p'`
if [ -z "$_def_partition" ]; then
echo "There are no usable partitions on that disk"
return 0