diff options
author | rpe <rpe@openbsd.org> | 2015-05-04 19:55:26 +0000 |
---|---|---|
committer | rpe <rpe@openbsd.org> | 2015-05-04 19:55:26 +0000 |
commit | 12cba9fa7b097200b96c5b720c69521ecad03052 (patch) | |
tree | e23aa8a763f6905ca8c00ef31d1859b35c944a79 /distrib/luna88k | |
parent | lightly document the posix option and POSIXLY_CORRECT; will sketch out (diff) | |
download | wireguard-openbsd-12cba9fa7b097200b96c5b720c69521ecad03052.tar.xz wireguard-openbsd-12cba9fa7b097200b96c5b720c69521ecad03052.zip |
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/luna88k')
-rw-r--r-- | distrib/luna88k/ramdisk/install.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/distrib/luna88k/ramdisk/install.md b/distrib/luna88k/ramdisk/install.md index 385be398cb8..1d21db7f9e9 100644 --- a/distrib/luna88k/ramdisk/install.md +++ b/distrib/luna88k/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.18 2014/08/15 09:45:54 rpe Exp $ +# $OpenBSD: install.md,v 1.19 2015/05/04 19:55:26 rpe Exp $ # Copyright (c) 1996 The NetBSD Foundation, Inc. # All rights reserved. # @@ -46,6 +46,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]:" |