changeset 4705:7687c39443f9

6583939 BrandZ installer can confuse source and binary ISO files
author kucharsk
date Mon, 23 Jul 2007 15:05:36 -0700
parents f0e5c3bd2261
children 570cc70164ad
files usr/src/lib/brand/lx/zone/lx_distro_install.ksh
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/brand/lx/zone/lx_distro_install.ksh	Mon Jul 23 14:27:46 2007 -0700
+++ b/usr/src/lib/brand/lx/zone/lx_distro_install.ksh	Mon Jul 23 15:05:36 2007 -0700
@@ -1136,6 +1136,14 @@
 
 			rd_rpmdir=${rd_line[5]}
 
+			#
+			# If the specified RPM directory doesn't exist, this is
+			# not a valid binary RPM disc (it's most likely a
+			# source RPM disc), so don't add it to the list of
+			# valid ISO files.
+			#
+			[[ ! -d "$1/$rd_rpmdir" ]] && return 1
+
 			if [[ "$rd_cdnum" = "1" &&
 			   "$rd_release" = "Red Hat"* ]]; then
 				typeset rh_glob