summaryrefslogtreecommitdiff
path: root/distrib/armv7/ramdisk
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/armv7/ramdisk')
-rw-r--r--distrib/armv7/ramdisk/install.md27
1 files changed, 4 insertions, 23 deletions
diff --git a/distrib/armv7/ramdisk/install.md b/distrib/armv7/ramdisk/install.md
index c1e546ff931..2162348696c 100644
--- a/distrib/armv7/ramdisk/install.md
+++ b/distrib/armv7/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.8 2015/05/20 01:44:20 jsg Exp $
+# $OpenBSD: install.md,v 1.9 2015/05/31 19:40:10 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -172,31 +172,12 @@ __EOT
}
md_prep_disklabel() {
- local _disk=$1 _f _op
+ local _disk=$1 _f=/tmp/fstab.$1
md_prep_fdisk $_disk
- _f=/tmp/fstab.$_disk
- if [[ $_disk == $ROOTDISK ]]; then
- if $AUTO && get_disklabel_template; then
- disklabel -T /disklabel.auto $FSTABFLAG $_f -w -A $_disk && return
- echo "Autopartitioning failed"
- exit 1
- fi
- while :; do
- echo "The auto-allocated layout for $_disk is:"
- disklabel -h -A $_disk | egrep "^# |^ [a-p]:"
- ask "Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout?" a
- case $resp in
- a*|A*) _op=-w ;;
- e*|E*) _op=-E ;;
- c*|C*) break ;;
- *) continue ;;
- esac
- disklabel $FSTABFLAG $_f $_op -A $_disk
- return
- done
- fi
+ disklabel_autolayout $_disk $_f || return
+ [[ -s $_f ]] && return
cat <<__EOT