6989404 AI default manifest no longer needs to specify iSCSI packages
authorEthan Quach <Ethan.Quach@sun.com>
Wed, 10 Nov 2010 15:05:49 -0800
changeset 923 7dcdfb2ab48a
parent 922 f6d3871f2b3e
child 924 0259ada1ea7f
6989404 AI default manifest no longer needs to specify iSCSI packages 6998468 error message in auto-installer svc log: Couldn't find property `general/install_debug' for instance
usr/src/cmd/auto-install/default.xml
usr/src/cmd/auto-install/svc/auto-installer
--- a/usr/src/cmd/auto-install/default.xml	Wed Nov 10 09:19:24 2010 -0800
+++ b/usr/src/cmd/auto-install/default.xml	Wed Nov 10 15:05:49 2010 -0800
@@ -42,15 +42,6 @@
       <software_data action="install" type="IPS">
         <name>pkg:/entire</name>
         <name>pkg:/babel_install</name>
-        <!--
-	    The following packages are required by iSCSI and included
-	    by default to make it easier for users to enable iSCSI if
-	    desired. They can be deleted from this list if iSCSI isn't 
-	    used. See iscsiadm(1m) man page for more information. 
-	    support for iSCSI. 
-	-->
-        <name>pkg:/network/iscsi/initiator</name>
-        <name>pkg:/network/iscsi/iser</name>
       </software_data>
       <!--
 	    babel_install and slim_install are group packages used to
--- a/usr/src/cmd/auto-install/svc/auto-installer	Wed Nov 10 09:19:24 2010 -0800
+++ b/usr/src/cmd/auto-install/svc/auto-installer	Wed Nov 10 15:05:49 2010 -0800
@@ -56,7 +56,7 @@
 #
 if [ ! -f /.autoinstall ] ; then
 	echo "Not running in Automated Installer environment. The service can" \
-	    " only be enabled in Automated Installer environment" |
+	    "only be enabled in the Automated Installer environment" |
 	    $TEE_LOGTOCONSOLE
 
 	exit $SMF_EXIT_ERR_CONFIG
@@ -80,7 +80,7 @@
 	AI_AUTO_SHUTDOWN=`$PRTCONF -v | /usr/bin/sed -n \
 	    '/auto-shutdown/{;n;p;}'| cut -f 2 -d\'`
 	if [ "$AI_AUTO_SHUTDOWN" = "enable" ]; then
-		echo "Shutdown requested. The system will be shutdown " \
+		echo "Shutdown requested. The system will be shutdown" \
 		    "after install"
 	fi
 fi
@@ -118,7 +118,7 @@
 #
 # Enable the installer to be run in debug mode if requested.
 #
-AI_DEBUG_MODE=`$SVCPROP -c -p general/install_debug $SMF_FMRI`
+AI_DEBUG_MODE=`$SVCPROP -c -p general/install_debug $SMF_FMRI 2>/dev/null`
 if [ $? -eq 0 -a "$AI_DEBUG_MODE" = "enable" ] ; then
 	echo "Installer will be run in debug mode" | $TEE_LOGTOCONSOLE
 
@@ -145,10 +145,10 @@
 		echo "Automated Installation finished successfully" |
 		    $TEE_LOGTOCONSOLE
 		echo "The system can be rebooted now" | $TEE_LOGTOCONSOLE
-		echo "Please refer to /tmp/install_log file " \
+		echo "Please refer to the /tmp/install_log file" \
 		    "for details" | $TEE_LOGTOCONSOLE
 
-		echo "After reboot it will be located at " \
+		echo "After reboot it will be located at" \
 		    "/var/sadm/system/logs/install_log" | $TEE_LOGTOCONSOLE
 
 		if [ "$AI_AUTO_SHUTDOWN" = "enable" ]; then
@@ -167,10 +167,10 @@
 	$AI_ENGINE_EXIT_REBOOT)
 		echo "Automated Installation finished successfully" |
 		    $TEE_LOGTOCONSOLE
-		echo "Automated reboot enabled. The system will be " \
+		echo "Auto reboot enabled. The system will be" \
 		    "rebooted now" | $TEE_LOGTOCONSOLE
-		echo "Log files will be available in /var/sadm/system/logs/ " \
-		    "directory after reboot" | $TEE_LOGTOCONSOLE
+		echo "Log files will be available in /var/sadm/system/logs/" \
+		    "after reboot" | $TEE_LOGTOCONSOLE
 
 		# Obtain dataset from beadm: active BE on reboot has a R in
 		# the third column of 'beadm list' output, its dataset is
@@ -194,7 +194,7 @@
 	$AI_ENGINE_EXIT_FAILURE_INVALID_MANIFEST)
 		echo "Invalid or incompatible manifest provided" |
 		    $TEE_LOGTOCONSOLE
-		echo "Please refer to "\
+		echo "Please refer to the" \
 		    "/var/svc/log/application-auto-installer:default.log "\
 		    "file for details" | $TEE_LOGTOCONSOLE
 
@@ -206,7 +206,7 @@
 	#
 	$AI_ENGINE_EXIT_FAILURE)
 		echo "Automated Installation failed" | $TEE_LOGTOCONSOLE
-		echo "Please refer to /tmp/install_log file for " \
+		echo "Please refer to the /tmp/install_log file for" \
 		    "details" | $TEE_LOGTOCONSOLE
 
 		exit $SMF_EXIT_ERR_FATAL