socsvn commit: r270837 - in soc2014/kczekirda/pxe-fai-head: head/usr.sbin/bsdinstall/scripts others

kczekirda at FreeBSD.org kczekirda at FreeBSD.org
Mon Jul 14 20:30:49 UTC 2014


Author: kczekirda
Date: Mon Jul 14 20:30:48 2014
New Revision: 270837
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=270837

Log:
  zfs pressed works

Modified:
  soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/zfsboot
  soc2014/kczekirda/pxe-fai-head/others/zfspressed

Modified: soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/zfsboot
==============================================================================
--- soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/zfsboot	Mon Jul 14 20:30:42 2014	(r270836)
+++ soc2014/kczekirda/pxe-fai-head/head/usr.sbin/bsdinstall/scripts/zfsboot	Mon Jul 14 20:30:48 2014	(r270837)
@@ -1395,7 +1395,7 @@
 # Loop over the main menu until we've accomplished what we came here to do
 #
 while :; do
-	if ! f_interactive; then
+	if [ ! f_interactive ] || [ "$ZFSBOOT_PRESSED_CONFIRM" = "YES" ]; then
 		retval=$DIALOG_OK
 		mtag=">>> $msg_install"
 	else
@@ -1459,7 +1459,7 @@
 		#
 		# Last Chance!
 		#
-		if f_interactive; then
+		if [ f_interactive] && [ ! $ZFSBOOT_PRESSED_CONFIRM ] ; then
 			dialog_last_chance $ZFSBOOT_DISKS || continue
 		fi
 

Modified: soc2014/kczekirda/pxe-fai-head/others/zfspressed
==============================================================================
--- soc2014/kczekirda/pxe-fai-head/others/zfspressed	Mon Jul 14 20:30:42 2014	(r270836)
+++ soc2014/kczekirda/pxe-fai-head/others/zfspressed	Mon Jul 14 20:30:48 2014	(r270837)
@@ -63,7 +63,7 @@
 #
 # Default disks to use (always empty unless being scripted)
 #
-ZFSBOOT_DISKS=""
+ZFSBOOT_DISKS="ada1"
 
 #
 # Default partitioning scheme to use on disks
@@ -124,6 +124,6 @@
 # If interactive and the user has not explicitly chosen a vdev type or disks,
 # make the user confirm scripted/default choices when proceeding to install.
 #
-ZFSBOOT_CONFIRM_LAYOUT=1
-
+ZFSBOOT_CONFIRM_LAYOUT=""
 
+ZFSBOOT_PRESSED_CONFIRM="YES"


More information about the svn-soc-all mailing list