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

snapm: renaming snapshot set orphans boot entries

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

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • rhel-10.2
    • None
    • snapm
    • None
    • snapm-0.5.2-2.el10
    • Important
    • EasyFix
    • rhel-storage-management
    • 2
    • False
    • True
    • Hide

      None

      Show
      None
    • No
    • None
    • Pass
    • None
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified

      Currently, using `snapm snapset rename` on a bootable snapshot set leaves the original boot entries behind:

      <img width="720" height="400" alt="Image" src="https://github.com/user-attachments/assets/4092642b-b464-46d4-aa64-7c64743a7488" />

      (snapset `before-ugprade` was renamed to `before-upgrade`, deleted, and re-created).

      This is fixable via `sed`:

      ```bash
      $ sed i 's/OLD_NAME/NEW_NAME/g' /boot/loader/entries/$MACHINE_ID$BOOT_ID-$VERSION.conf
      ```

      A subsequent `boom list` will detect the incorrect `$BOOT_ID` and re-write the entry, but this is a kinda kludgy workaround.

      A rename should delete and re-create the boot and revert entries if present.

              rhn-support-bmr Bryn Reeves
              rhn-support-bmr Bryn Reeves
              Bryn Reeves
              Bryn Reeves Bryn Reeves
              Filip Suba Filip Suba
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: