diff options
Diffstat (limited to 'distrib/vax/install.md')
-rw-r--r-- | distrib/vax/install.md | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/distrib/vax/install.md b/distrib/vax/install.md index dbfde364527..0ecf88b9d5c 100644 --- a/distrib/vax/install.md +++ b/distrib/vax/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.26 2008/03/04 00:36:38 krw Exp $ +# $OpenBSD: install.md,v 1.27 2008/03/22 23:28:10 krw Exp $ # $NetBSD: install.md,v 1.3.2.5 1996/08/26 15:45:28 gwr Exp $ # # @@ -52,29 +52,9 @@ md_installboot() { /sbin/disklabel -B $1 } -# $1 is the disk to check -md_checkfordisklabel() { - local rval=0 - - disklabel $1 >/dev/null 2>/tmp/checkfordisklabel - - if grep "disk label corrupted" /tmp/checkfordisklabel; then - rval=2 - fi >/dev/null 2>&1 - - rm -f /tmp/checkfordisklabel - return $rval -} - md_prep_disklabel() { local _disk=$1 - md_checkfordisklabel $_disk - case $? in - 2) echo "WARNING: Label on disk $_disk is corrupted. You will be repairing it.\n" - ;; - esac - disklabel -W $_disk >/dev/null 2>&1 disklabel -f /tmp/fstab.$_disk -E $_disk } |