Skip to content

Commit

Permalink
mkksiso: Replace existing inst.ks on the iso
Browse files Browse the repository at this point in the history
There should only be one. kickstart on the kernel cmdline. This change
automatically replaces an existing inst.ks when `mkksiso --ks KICKSTART
...` is used. Previously this could be done by using `--rm-args
inst.ks`, which still works for compatibility with existing scripts.

Fixes #1320
  • Loading branch information
bcl committed Dec 19, 2024
1 parent f987ae0 commit ab55131
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bin/mkksiso
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,13 @@ def main():
if errors:
raise RuntimeError("Problems running %s" % sys.argv[0])

remove_args = args.rm_args
if args.ks and "inst.ks" not in remove_args:
# Add inst.ks to the list of args to remove so that any previous use is overriden
remove_args = ("inst.ks " + remove_args).strip()

MakeKickstartISO(args.input_iso, args.output_iso, args.ks or args.ks_pos, args.updates,
args.add_paths, args.cmdline, args.rm_args,
args.add_paths, args.cmdline, remove_args,
args.volid, args.replace, args.no_md5sum, args.skip_efi)
except RuntimeError as e:
log.error(str(e))
Expand Down

0 comments on commit ab55131

Please sign in to comment.