Browse code

fix for running ks installer from serial console

Change-Id: Ib972766dd1e0210eac79ff39060d6b7c0503ffa1
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6248
Reviewed-by: Sharath George
Tested-by: Sharath George

Him Kalyan Bordoloi authored on 2018/11/28 11:14:09
Showing 2 changed files
... ...
@@ -6,7 +6,7 @@
6 6
 # Known side effect: screen might be "garbaged" by reply string.
7 7
 
8 8
 full_screen () {
9
-	if [[ -t 0 ]] ; then
9
+	if [[ -t 0 ]] && [[ -t 1 ]]; then
10 10
 		# s - save cursor position
11 11
 		# [r;cH - set cursor position to r;c
12 12
 		# [6n - get cursor position
... ...
@@ -161,8 +161,8 @@ class IsoConfig(object):
161 161
 
162 162
         base_path = os.path.dirname("build_install_options_all.json")
163 163
         package_list = []
164
-        if 'packagelist_file' in config:
165
-            package_list = PackageSelector.get_packages_to_install(config['packagelist_file'],
164
+        if 'packagelist_file' in install_config:
165
+            package_list = PackageSelector.get_packages_to_install(install_config['packagelist_file'],
166 166
                                                                base_path)
167 167
 
168 168
         if 'additional_packages' in install_config: