summaryrefslogtreecommitdiff
path: root/distrib/hppa
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2015-05-04 19:55:28 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2015-05-04 19:55:28 +0000
commit673312bcd55905f9af8749487470081839359024 (patch)
treee64c20b577a936931851c64668bc45ec87938981 /distrib/hppa
parent57127e8f7bf0c20b654d8f2480b4ad30b81db45e (diff)
Add the new template file based autopartitioning feature of disklabel(8)
to the OpenBSD installer. It is available during unattended installation. The template file is fetched from an url, provided as answer to a new question in the response file: URL to autopartitioning template for disklabel = url Original diff from and OK henning@ 'no objection' krw@
Diffstat (limited to 'distrib/hppa')
-rw-r--r--distrib/hppa/install.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/distrib/hppa/install.md b/distrib/hppa/install.md
index 9041c745a71..2e78018a008 100644
--- a/distrib/hppa/install.md
+++ b/distrib/hppa/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.27 2015/03/08 13:13:48 deraadt Exp $
+# $OpenBSD: install.md,v 1.28 2015/05/04 19:55:26 rpe Exp $
#
# machine dependent section of installation/upgrade script.
#
@@ -23,6 +23,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]:"