Skip to content

Commit

Permalink
Accept but ignore the old --squashfs-only argument
Browse files Browse the repository at this point in the history
[bcl - edited for brevity]

It seems safer, to me, to accept --squashfs-only but simply
ignore it (since the default value of --rootfs-type is squashfs
anyway, and if someone were to specify both, I think it's sane
for --rootfs-type to 'win').

Related: RHEL-48606

Signed-off-by: Adam Williamson <awilliam@redhat.com>
Signed-off-by: Brian C. Lane <bcl@redhat.com>
  • Loading branch information
AdamWill authored and bcl committed Jul 20, 2024
1 parent 2bd3489 commit afc6621
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/example-livemedia-creator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ jobs:
## Create the ISO
- name: Create the custom ISO
# --no-virt: Needed since we're in a container, no host CPU
# --squashfs-only: Just to speed things up, not required
run: |
livemedia-creator \
--ks "${{ inputs.kickstart_path }}" \
--no-virt \
--make-iso \
--iso-only \
--squashfs-only \
--iso-name Fedora-custom-example.iso \
--project Fedora \
--volid "Fedora-${{ inputs.fedora_release }}" \
Expand Down
10 changes: 4 additions & 6 deletions src/pylorax/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ def lorax_parser(dracut_default=""):
help="Do not verify SSL certificates")
optional.add_argument("--dnfplugin", action="append", default=[], dest="dnfplugins",
help="Enable a DNF plugin by name/glob, or * to enable all of them.")
optional.add_argument("--squashfs-only", action="store_const", const="squashfs",
default="squashfs", dest="rootfs_type",
help="Use a plain squashfs filesystem for the runtime.")
optional.add_argument("--squashfs-only", action="store_true",
help="Ignored, provided for backward compatibility.")
optional.add_argument("--skip-branding", action="store_true", default=False,
help="Disable automatic branding package selection. Use --installpkgs to add custom branding.")
optional.add_argument("--rootfs-type", metavar="ROOTFSTYPE", default="squashfs",
Expand Down Expand Up @@ -328,9 +327,8 @@ def lmc_parser(dracut_default=""):
parser.add_argument("--releasever", default=DEFAULT_RELEASEVER,
help="substituted for @VERSION@ in bootloader config files")
parser.add_argument("--volid", default=None, help="volume id")
parser.add_argument("--squashfs-only", action="store_const", const="squashfs",
dest="rootfs_type",
help="Use a plain squashfs filesystem for the runtime.")
parser.add_argument("--squashfs-only", action="store_true",
help="Ignored, provided for backward compatibility.")
parser.add_argument("--rootfs-type", metavar="ROOTFSTYPE", default="squashfs",
help="Type of rootfs: %s" % ",".join(ROOTFSTYPES))
parser.add_argument("--timeout", default=None, type=int,
Expand Down

0 comments on commit afc6621

Please sign in to comment.