BTRFS and snapshots

It is in the repository

Postedit (for future documentation)
sudo dnf --refresh install dnf5

Oh, awesome. I just installed dnf5 and followed the guide I linked above. It works perfectly. The only difference is that I could not find the package libdnf5-plugin-actions as per the instructions. I skipped it for testing, and it stilled worked. So, success, I think. Iā€™ll reboot and make sure snapshots are appearing in grub.

P.S. Should I uninstall dnf now that dnf5 is installed??

No they can coexist.

While snapshots are not occuring correctly, they are not appearing in grub, as per grub-btrfs. Iā€™ll investigate further.

I hope no one feels like this is spamming this thread like it was my journal, but hereā€™s an update on the process. OMLx is setup similar in its grub configuration to Fedora, so certain settings have to be modifed, surrounding grub2, as described here: Unable to install on Fedora 40 Ā· Issue #352 Ā· Antynea/grub-btrfs Ā· GitHub
but better seen in the readme, here: grub-btrfs/README.md at b509fcaf6119d5c4b07fe37692fc3d5c6cb94f56 Ā· Antynea/grub-btrfs Ā· GitHub

Nevertheless, I got everything working, and the submenu is created in grub, but, even though the snapshots are identified, they are not being entered into the submenu. If I figure out the final steps, Iā€™ll report back, unless someone has already figured this out, then HELP! lol.

dnf =dnf 4.2 dnf5 =dnf5-5.2.8

Alright. I got it working. snapshots populate a submenu in grub, they are bootable and immediately usable. Before I reproduce my steps, Iā€™m going to do them myself on a different system and see if I get the same results.

2 Likes

Great, it worked as expected. Everything is perfect and working like a champ. Iā€™ll reproduce steps later. Need a break. Iā€™ll edit the wiki, too, to include links, a video I watched on using timeshift, etc.

4 Likes

I wrote the tutorial. It should work. It worked on my two systems.

3 Likes

wow!
Thank you.

1 Like

@rugyada if aliasing is done as I describe in the tutorial, Iā€™m not sure how that will effect the upgrade process using dnf in the scripts the OMLx team has made. One thing I noticed in my trial was as follows.
I saw in one post that someone, perhaps yourself, had said this chain of commands is the essential process:

sudo dnf clean all;dnf clean all;sudo dnf --allowerasing distro-sync

However, DNF5 returns an error on the order of the final command, saying that modifiers must come after. When I placed ā€œallowerasingā€ at the end, it at least completed the chained command:

sudo dnf clean all;dnf clean all;sudo dnf distro-sync --allowerasing
3 Likes

Maybe dnf5 wants the commands typed the way it likes best :stuck_out_tongue:
I donā€™t and did not know. Will keep it in mind.

1 Like

I went a bit further. We always want to refresh. Might as well update those flatpaks too.

sudo dnf clean all ; dnf clean all ; dnf repolist ; sudo dnf refresh ; sudo dnf distro-sync --allowerasing ; flatpak update
2 Likes

With DNF5, dnf refresh doesnā€™t work with refresh. It can, however work as a modifier on the distro-sync command. Using aliasing as described in the wiki article, it would have to be like this:

sudo dnf clean all;dnf clean all;sudo dnf distro-sync --allowerasing --refresh; flatpak update
3 Likes

It looks so good that I would add clear license and credits to you.
Does this fit in your opinion?
cc

2 Likes

Wow, I would be honored to have named credit and a clear license is great. Please go ahead, thank you.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

@darth and @P_J

Just a heads up to let you guys know that grub-btrfs is in the cooker repos. I tried running it and it conflicts with grub-customizer, but @StudebakerGuy is working on it and hopefully, we will have it working quickly.