diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-05-04 19:55:28 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-05-04 19:55:28 +0000 |
commit | 673312bcd55905f9af8749487470081839359024 (patch) | |
tree | e64c20b577a936931851c64668bc45ec87938981 /distrib/zaurus | |
parent | 57127e8f7bf0c20b654d8f2480b4ad30b81db45e (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/zaurus')
-rw-r--r-- | distrib/zaurus/ramdisk/install.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/distrib/zaurus/ramdisk/install.md b/distrib/zaurus/ramdisk/install.md index a513a6eb9a3..ff00c3b1854 100644 --- a/distrib/zaurus/ramdisk/install.md +++ b/distrib/zaurus/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.31 2014/08/06 16:13:48 ajacoutot Exp $ +# $OpenBSD: install.md,v 1.32 2015/05/04 19:55:27 rpe Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -89,6 +89,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]:" |