From 673312bcd55905f9af8749487470081839359024 Mon Sep 17 00:00:00 2001 From: Robert Peichaer Date: Mon, 4 May 2015 19:55:28 +0000 Subject: 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@ --- distrib/sgi/ramdisk/install.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'distrib/sgi') diff --git a/distrib/sgi/ramdisk/install.md b/distrib/sgi/ramdisk/install.md index e374abc36c9..1ae0876a399 100644 --- a/distrib/sgi/ramdisk/install.md +++ b/distrib/sgi/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.33 2014/03/24 20:47:30 miod Exp $ +# $OpenBSD: install.md,v 1.34 2015/05/04 19:55:26 rpe Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -145,6 +145,11 @@ __EOT _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]:" -- cgit v1.2.3