Looking for guidance after botched rpm-ostree rollback

I’m hoping someone can help me out with an issue I’m having with rpm-ostree. I tried to roll back to a previous deployment on my Kinoite system, but seem to have made things worse and now I’m not sure how to recover!

Here’s what happened:

  • I booted into an older deployment using the grub menu
  • Ran rpm-ostree rollback to try to make this the new default
  • Checked with rpm-ostree status but it seems to show the wrong/old version as default
  • Tried to deploy a specific commit hash with rpm-ostree deploy
  • Now status shows multiple commits with the same version and I’m not sure which is which

I’m afraid to reboot since I don’t know which version it will actually boot into. I think I must have misunderstood how rpm-ostree handles deployments and rollbacks.

Could someone please advise the best way to recover from this situation? I’m happy to provide any logs or additional details if it’s helpful to diagnose. I just want to get my system back to a good state before the next reboot.

Any guidance would be greatly appreciated! I’m still getting the hang of how rpm-ostree works under the hood. Thank you for your patience and for helping this beginner out!

Let me know if you need any other specifics to help me resolve this.

We’ll need the output of rpm-ostree status to be able to help.

At some point my system froze due to nvidia driver issues (happens sometimes) and I had to restart. I attempted to boot into my last known good state again, which is the active boot you’ll see in the status.

I also found rpm-ostree cleanup which provides options to remove a rollback or pending change. :tada:

What I still can’t find is how to make the currently booted image the default. I tried getting its SHA and running rpm-ostree deploy <SHA>. It thought for awhile and then gave up. Is that the correct way to do this?

Output of `rpm-ostree status`
State: idle
Deployments:
  fedora:fedora/38/x86_64/kinoite
                  Version: 38.20230609.0 (2023-06-09T00:57:14Z)
               BaseCommit: 7109092f6465b06161c83c434a345ffae1fca900dcd886df1a36f4cdcd4e9839
             GPGSignature: Valid signature by 6A51BBABBA3D5467B6171221809A8D7CEB10B464
                     Diff: 290 downgraded, 49 removed, 41 added
          LayeredPackages: akmod-nvidia bismuth distrobox egl-gbm fish intel-media-driver
                           kakoune langpacks-en latte-dock mozilla-openh264
                           nvidia-container-toolkit polkit-gnome xorg-x11-drv-nvidia
                           xorg-x11-drv-nvidia-cuda zenity
            LocalPackages: nordlayer-2.6.2-1.x86_64 rpmfusion-free-release-38-1.noarch
                           rpmfusion-nonfree-release-38-1.noarch sugar-dark-1.0.0-1.noarch
                   Pinned: yes

  fedora:fedora/38/x86_64/kinoite
                  Version: 38.20230624.0 (2023-06-24T00:49:52Z)
               BaseCommit: 1044ee0dd81558b1fc76daf0507f33efbbece3dc6177a745364bd08771387a34
             GPGSignature: Valid signature by 6A51BBABBA3D5467B6171221809A8D7CEB10B464
          LayeredPackages: akmod-nvidia bismuth distrobox egl-gbm fbterm fish
                           intel-media-driver kakoune langpacks-en latte-dock
                           libvirt-daemon libvirt-daemon-driver-qemu-9.0.0-3.fc38.x86_64
                           lightdm lxdm mozilla-openh264 nvidia-container-toolkit-base
                           polkit-gnome realtime-setup realtime-tests xorg-x11-drv-nvidia
                           xorg-x11-drv-nvidia-cuda zenity
            LocalPackages: nordlayer-2.6.2-1.x86_64 rpmfusion-free-release-38-1.noarch
                           rpmfusion-nonfree-release-38-1.noarch sugar-dark-1.0.0-1.noarch

● fedora:fedora/38/x86_64/kinoite
                  Version: 38.20230624.0 (2023-06-24T00:49:52Z)
               BaseCommit: 1044ee0dd81558b1fc76daf0507f33efbbece3dc6177a745364bd08771387a34
             GPGSignature: Valid signature by 6A51BBABBA3D5467B6171221809A8D7CEB10B464
          LayeredPackages: akmod-nvidia bismuth distrobox egl-gbm fbterm fish
                           intel-media-driver kakoune langpacks-en latte-dock
                           libvirt-daemon lightdm lxdm mozilla-openh264
                           nvidia-container-toolkit-base polkit-gnome realtime-setup
                           realtime-tests xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda
                           zenity
            LocalPackages: nordlayer-2.6.2-1.x86_64 rpmfusion-free-release-38-1.noarch
                           rpmfusion-nonfree-release-38-1.noarch sugar-dark-1.0.0-1.noarch

  fedora:fedora/37/x86_64/silverblue
                  Version: 37.20230507.0 (2023-05-07T02:11:54Z)
               BaseCommit: fd1f82adeaaed399d4c601590a8aebff9ab4363e2c0a443349687593cd874821
             GPGSignature: Valid signature by ACB5EE4E831C74BB7C168D27F55AD3FB5323552A
          LayeredPackages: akmod-nvidia distrobox egl-gbm ffmpeg fish
                           gstreamer1-plugin-libav gstreamer1-plugin-openh264
                           gstreamer1-plugins-bad-free-extras
                           gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly
                           gstreamer1-vaapi intel-media-driver kakoune langpacks-en
                           mozilla-openh264 polkit-gnome rpmfusion-free-release
                           rpmfusion-nonfree-release vulkan-tools xorg-x11-drv-nvidia
                           xorg-x11-drv-nvidia-cuda
            LocalPackages: nordlayer-2.6.2-1.x86_64
                   Pinned: yes