summaryrefslogtreecommitdiff
path: root/distrib/armish/ramdisk/install.md
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/armish/ramdisk/install.md')
-rw-r--r--distrib/armish/ramdisk/install.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/distrib/armish/ramdisk/install.md b/distrib/armish/ramdisk/install.md
index 5e270423bfe..803f654fb7a 100644
--- a/distrib/armish/ramdisk/install.md
+++ b/distrib/armish/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.16 2013/11/16 18:37:26 rpe Exp $
+# $OpenBSD: install.md,v 1.17 2015/05/04 19:55:26 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -87,6 +87,11 @@ md_prep_disklabel() {
_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]:"