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

DNF: add support for transient transactions [rhel-10]

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Critical Critical
    • rhel-10.0
    • None
    • dnf
    • dnf-4.20.0-11.el10
    • None
    • rhel-sst-cs-software-management
    • ssg_core_services
    • 25
    • 26
    • 8
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • Hide

      "dnf --transient install PACKAGE" can install packages on a bootc system.
      "dnf --transient install PACKAGE" fails on non-bootc system.
      Setting "persistence=transient" DNF configuration option has the same effect as passing a "--transient" dnf option.
      Changes under /usr made by dnf --transient should NOT persist across reboots, changes under /etc, /var, other directories should persist.
      /usr should remain read-only to other processes.
      persistence=transient should error when using an installroot other than / or using --downloadonly.

      Show
      "dnf --transient install PACKAGE" can install packages on a bootc system. "dnf --transient install PACKAGE" fails on non-bootc system. Setting "persistence=transient" DNF configuration option has the same effect as passing a "--transient" dnf option. Changes under /usr made by dnf --transient should NOT persist across reboots, changes under /etc, /var, other directories should persist. /usr should remain read-only to other processes. persistence=transient should error when using an installroot other than / or using --downloadonly.
    • Pass
    • Automated
    • Enhancement
    • Hide
      .RHEL Image Mode users can now use `dnf --transient` to perform package transactions that reset on reboot

      Previously, RHEL Image Mode users could transiently install, remove, and upgrade packages by running the `bootc usr-overlay` command to unlock the system and then make changes by running DNF commands. If you use `bootc usr-overlay`, when the system reboots, the `/usr` directory overlay disappears and all changes made to it will reset. Changes to other directories, including configuration in `/etc` and program state in `/var`, persist across reboots.

      With this update, a new `--transient` flag and a new `persistence` configuration option have been added to DNF to improve the user experience on bootc systems. You can now skip the `bootc usr-overlay` step by using either of the following options:

      * Use the `dnf --transient` command.
      * Set the `persistence` option to `transient` in the `dnf.conf` file.

      NOTE: Unlike when using `bootc usr-overlay`, `--transient` and `persistence=transient` ensure that the `/usr` directory remains read-only to other processes before, during, and after the transaction.

      For example, to transiently install the `make` package, enter:

      ----
      # dnf install --transient make
      ----
      Show
      .RHEL Image Mode users can now use `dnf --transient` to perform package transactions that reset on reboot Previously, RHEL Image Mode users could transiently install, remove, and upgrade packages by running the `bootc usr-overlay` command to unlock the system and then make changes by running DNF commands. If you use `bootc usr-overlay`, when the system reboots, the `/usr` directory overlay disappears and all changes made to it will reset. Changes to other directories, including configuration in `/etc` and program state in `/var`, persist across reboots. With this update, a new `--transient` flag and a new `persistence` configuration option have been added to DNF to improve the user experience on bootc systems. You can now skip the `bootc usr-overlay` step by using either of the following options: * Use the `dnf --transient` command. * Set the `persistence` option to `transient` in the `dnf.conf` file. NOTE: Unlike when using `bootc usr-overlay`, `--transient` and `persistence=transient` ensure that the `/usr` directory remains read-only to other processes before, during, and after the transaction. For example, to transiently install the `make` package, enter: ---- # dnf install --transient make ----
    • Done
    • None

      This is a clone of issue RHEL-70917 to use for version rhel-10.0

      Original description:

      Goal

      • As a RHEL Image Mode user, I want to use the familiar DNF interface to test packages on bootc systems without rebuilding and rebooting

      Acceptance criteria

      • User can use dnf4 --transient to perform transactions on bootc systems that reset on reboot
      • It should be very clear to bootc users that changes are not going to persist across reboots like they would on regular mutable systems.
      • It should be clear to non-bootc users that --transient doesn't work on their system.
      • If /usr is already writable, DNF should proceed without complaint, even if the user doesn't explicitly specify --transient.
      • Users should be able to make transient mode the default in dnf.conf, e.g. by setting persistence=transient.

              rhn-support-ppisar Petr Pisar
              watson-automation Watson Automation
              David Cantrell, Evan Goode
              packaging-team-maint packaging-team-maint
              Jan Blazek Jan Blazek
              Mariya Pershina Mariya Pershina
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: