Skip to content

Commit

Permalink
Merge pull request #307 from AdamWill/restore-dont-write-kickstart
Browse files Browse the repository at this point in the history
Don't write kickstart so initial-setup won't think root pw is set
  • Loading branch information
nullr0ute authored Apr 20, 2023
2 parents d60eb8e + b6f7485 commit 88700f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions oz/Fedora.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ def _modify_iso(self):
# out the method completely
if not self.config.brokenisomethod:
initrdline += " inst.method=cdrom:/dev/cdrom"
# don't write the kickstart to the image, or else initial-setup
# will think a root password has been set:
# https://bugzilla.redhat.com/show_bug.cgi?id=2015490
initrdline += " inst.nosave=output_ks"
self._modify_isolinux(initrdline)

def generate_diskimage(self, size=10, force=False):
Expand Down
4 changes: 4 additions & 0 deletions oz/RedHat.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ def __init__(self, tdl, config, auto, output_disk, nicmodel, diskbus,
self.tdl.distro + self.tdl.update + self.tdl.arch + "-ramdisk")

self.cmdline = "inst.method=" + self.url + " inst.ks=file:/ks.cfg"
# don't write the kickstart to the image, or else initial-setup
# will think a root password has been set:
# https://bugzilla.redhat.com/show_bug.cgi?id=2015490
self.cmdline += " inst.nosave=output_ks"
if self.tdl.kernel_param:
self.cmdline += " " + self.tdl.kernel_param

Expand Down

0 comments on commit 88700f3

Please sign in to comment.