add a flag to turn off making install DVD's
This commit is contained in:
parent
6820ad7c23
commit
a313fa8214
@ -254,6 +254,8 @@ if __name__ == '__main__':
|
||||
parser.add_option("--workdirbase", dest="workdirbase", type="string",
|
||||
action="callback", callback=set_config, callback_args=(config, ),
|
||||
help='base working directory (defaults to destdir + /work)')
|
||||
parser.add_option("--no-dvd", default=False, action="store_true", dest="no_dvd",
|
||||
help='Do not make a install DVD/CD only the netinstall image and the tree')
|
||||
|
||||
parser.add_option("-c", "--config", dest="config",
|
||||
help='Path to kickstart config file')
|
||||
|
@ -1619,6 +1619,7 @@ class Pungi(pypungi.PungiBase):
|
||||
else:
|
||||
extraargs.append(os.path.join(self.archdir, 'SRPMS'))
|
||||
|
||||
if not self.config.get('pungi', 'no_dvd'):
|
||||
# run the command
|
||||
pypungi.util._doRunCommand(mkisofs + extraargs, self.logger)
|
||||
|
||||
@ -1640,6 +1641,7 @@ class Pungi(pypungi.PungiBase):
|
||||
file = open(csumfile, 'w')
|
||||
file.write('# The image checksum(s) are generated with sha256sum.\n')
|
||||
file.close()
|
||||
if not self.config.get('pungi', 'no_dvd'):
|
||||
self._doIsoChecksum(isofile, csumfile)
|
||||
|
||||
# Write out a line describing the media
|
||||
|
@ -51,3 +51,4 @@ class Config(SafeConfigParser):
|
||||
self.set('pungi', 'multilib', '')
|
||||
self.set('pungi', 'lookaside_repos', '')
|
||||
self.set('pungi', 'resolve_deps', "True")
|
||||
self.set('pungi', 'no_dvd', "False")
|
||||
|
Loading…
Reference in New Issue
Block a user