Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-101676

fix: Fix removing kernel options with values

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • rhel-system-roles
    • None
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • Bug Fix
    • Hide
      .Improved removal of kernel options with values in ‎`rhel-system-roles`

      Previously, kernel boot options specified as key=value could not be removed when users provided only the key, resulting in persistent unwanted boot parameters and inconsistent management of kernel options by name. With this update, the regular expression in the ‎`mod_boot_args` function was updated to match and remove kernel options with values correctly, and automated tests were added to verify correct behavior.

      As a result, kernel options can now be reliably removed by name, even when set as key=value, ensuring accurate configuration and improved system management.
      Show
      .Improved removal of kernel options with values in ‎`rhel-system-roles` Previously, kernel boot options specified as key=value could not be removed when users provided only the key, resulting in persistent unwanted boot parameters and inconsistent management of kernel options by name. With this update, the regular expression in the ‎`mod_boot_args` function was updated to match and remove kernel options with values correctly, and automated tests were added to verify correct behavior. As a result, kernel options can now be reliably removed by name, even when set as key=value, ensuring accurate configuration and improved system management.
    • Done
    • Done
    • Unspecified
    • Done
    • None

      Enhancement: Fix removing kernel options with values

      Reason: The role had a bug, removing kernel options in form key=value didn't work if users provide only a key.

      Result: Removing kernel options only by name now works

      Issue Tracker Tickets (Jira or BZ if any): Fixes #123

        1. Summary by Sourcery

      Fix the removal logic for kernel options specified as key=value and add test coverage to ensure these options can be removed by name

      Bug Fixes:

      • Update regex in mod_boot_args to correctly match and remove kernel options with values

      Tests:

      • Add and adjust tests to verify that options provided as key=value can be removed by key alone and to assert remaining settings correctly

              rmeggins@redhat.com Richard Megginson
              rmeggins@redhat.com Richard Megginson
              Angana Chakraborty
              Richard Megginson Richard Megginson
              David Jez David Jez
              Malhar Jivrajani Malhar Jivrajani
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: