src/brand/pkgcreatezone
changeset 98 2ac7781efe22
parent 97 9a488b15900f
child 111 647c91609117
--- a/src/brand/pkgcreatezone	Wed Sep 05 15:23:09 2007 -0700
+++ b/src/brand/pkgcreatezone	Thu Sep 06 15:07:36 2007 -0700
@@ -64,8 +64,16 @@
 pkg image -F $rootdir
 print "Retrieving catalog"
 pkg -R $rootdir refresh
-print "Installing SUNWcs SUNWesu SUNWadmr SUNWts"
-pkg -R $rootdir install SUNWcs@ SUNWesu SUNWadmr SUNWts@
+if [[ $? -ne 0 ]]; then
+	print "Failed to retrieve catalog"
+	exit 1
+fi
+print "Installing SUNWcs SUNWesu SUNWadmr SUNWts SUNWipkg"
+pkg -R $rootdir install SUNWcs@ SUNWesu SUNWadmr SUNWts@ SUNWipkg
+if [[ $? -ne 0 ]]; then
+	print "Failed to install packages"
+	exit 1
+fi
 print "Setting up SMF profile links"
 # This was formerly done in SUNWcsr/postinstall
 ln -s ns_files.xml $rootdir/var/svc/profile/name_service.xml