Skip to content

Commit

Permalink
installer: fix kickstart installation
Browse files Browse the repository at this point in the history
1) do not redirect STDOUT to /var/log/installer, but
print it on the screen. /var/log/installer.log will be
created by logger library.

2) eject cdrom not for the 'ui' path, but for 'live'.

Change-Id: Iced0871d6c57b8c38263b1fd37c2b9826520b5be
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/8443
Reviewed-by: Anish Swaminathan <[email protected]>
Tested-by: Anish Swaminathan <[email protected]>
  • Loading branch information
YustasSwamp authored and suezzelur committed Oct 31, 2019
1 parent 307a865 commit 135b59e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions installer/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ def _install(self, stdscreen=None):
.format(self.progress_bar.time_elapsed))
if self.interactive:
self.window.content_window().getch()

if self.install_config['live']:
self._eject_cdrom()

def _unsafe_install(self):
Expand Down
2 changes: 1 addition & 1 deletion support/image-builder/iso/mk-install-iso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ cd /installer
ACTIVE_CONSOLE="\$(< /sys/devices/virtual/tty/console/active)"
install() {
LANG=en_US.UTF-8 ./isoInstaller.py --json-file=$PACKAGE_LIST_FILE_BASE_NAME -r /mnt/cdrom/RPMS 2>/var/log/installer && shutdown -r now
LANG=en_US.UTF-8 ./isoInstaller.py --json-file=$PACKAGE_LIST_FILE_BASE_NAME -r /mnt/cdrom/RPMS && shutdown -r now
}
try_run_installer() {
Expand Down

0 comments on commit 135b59e

Please sign in to comment.