livemedia-creator: check kickstart for display modes (#819660)

lmc uses script mode. Putting one of these into the kickstart will
confuse it, especially when running in no-virt mode.
This commit is contained in:
Brian C. Lane 2012-05-15 13:38:56 -07:00
parent 01f6f9f242
commit 20cc7dc954

View File

@ -619,6 +619,10 @@ if __name__ == '__main__':
"fix your kickstart file." ) "fix your kickstart file." )
sys.exit( 1 ) sys.exit( 1 )
repo_url = ks.handler.method.url repo_url = ks.handler.method.url
if ks.handler.displaymode.displayMode is not None:
log.error("The kickstart must not set a display mode (text, cmdline, "
"graphical), this will interfere with livemedia-creator.")
sys.exit(1)
disk_img = tempfile.mktemp( prefix="disk", suffix=".img", dir=opts.tmp ) disk_img = tempfile.mktemp( prefix="disk", suffix=".img", dir=opts.tmp )
install_log = os.path.abspath(os.path.dirname(opts.logfile))+"/virt-install.log" install_log = os.path.abspath(os.path.dirname(opts.logfile))+"/virt-install.log"