-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usable with /@ root volume? #4
Comments
Hey there, thanks for reaching out, glad you appreciate the tool and honored to hear you're considering it for a distro. I'm afraid I have zero bandwidth until June to help you figure this out. To make sure I understand the problem: you're looking to either let the user define the btrfs root through some GUI in settings, or better yet, have some automatic detection mechanism that magically identifies the btrfs root? If you're aiming for magic autodetect, I'd want to make sure a couple edge cases are considered (dual-boot, rolling back from a live boot usb), even if that means those edge cases can use command-line flags to override autodetect. Would that work for you? As I mentioned, I don't have much bandwidth these days, but I'm always happy to look at and give feedback on PRs! |
Also if Geckolinux has its own package repo, editing the config file to your needs and creating a new package might potentially be another option? |
Hi there, really appreciate the fast response! So yes, first of all I'd like to confirm that I'm not doing something wrong or misunderstanding some core concept. I've worked through a lot of intricacies in testing GeckoLinux with Btrfs and Snapper and openSUSE's Snapper/GRUB integration scripts, but I'm still a bit shaky with some of the core Btrfs concepts. While testing the last GeckoLinux release I was hitting an edge case that exposed a bug in openSUSE's GRUB scripts, but I eventually found a hacky but effective way to work around it, and I ended up using openSUSE's standard GRUB integration with Btrfs snapshots and Snapper for rollbacks. Now I'm working on an additional new project based on Debian, and no native Debian blessed methods exist for working with Btrfs snapshots. For the GRUB integration I'll be using https://github.com/Antynea/grub-btrfs, but after a huge amount of testing in both GeckoLinux and in Debian I can't find a workaround for this issue when doing rollbacks with Snapper. (Basically after the first Snapper standard Do I understand correctly that the reason
Ideally auto-detection. Calamares takes care of installing the system and the bootloader, and I don't really want the end user to have to deal with any intricacies of the filesystem, especially for an emergency tool like
For both GeckoLinux and the additional new distro I'm working on, I always make a point of sticking to upstream package repos so that the installed system isn't dependent on me for maintenance. However I'm happy to simply include a modified version of So if you confirm that this subvolume scheme that I need to deal with via Calamares will require specifying a
Yep, definitely! Another small improvement I could suggest would be to make it work like the standard Snapper Thanks again for your time and for the friendly help! |
Hi again, I was looking at xerolinux-rollback which doesn't seem to work well, but it does have a python function that properly identifies the root partition:
|
Apologies, it looks like I grossly underestimated what this year had in store for me. Thinking about autodetect, the options I can think of involve looking at every disk available on the system, which could be rather brittle. Finding the linux rootfs is straightforward, but here we need to fill the config file with the btrfs root - it's not quite the same thing. Not impossible, my personal system has had to take a backseat and I'm almost exclusively on apple mac these days though 🥲 just a heads up
I'm afraid I have no idea about that one, but I tried playing with grub-btrfs a while back and may have run into the same problem, where new snapshots don't show up until
Hmm, could you bundle some custom scripts though? I feel like the simplest approach here would be using something like
It's quite possible the system isn't booted into a snapshot though. I could look into making this option happen. My system is offline and I have some work to bring it back so I will eventually look into this, but please don't expect anything soon on that front. |
@geckolinux I see things seem to be moving towards Spiral Linux, which seems to have snapper-rollback baked in. I'm assuming that the GeckoLinux distro will stick around for some time in maintenance mode, but active development will continue on the Spiral Linux side of things. Is it safe to assume that everything on the Spiral Linux side is working as intended? If so, can I close this issue? If not, I still can't promise fast resolution but if there's any relevant improvements still to be made, please let me know. Congrats on the new release! |
Hi there, first of all thanks very much for making this very useful tool!
I'm considering integrating this tool with a distribution, but I can't seem to make it work with this subvolume layout (I'm using the Calamares installer, which doesn't support volumes starting with
@
and so I have to preface them with a/
)In the
snapper-rollback.conf
file I tried:But it throws
CRITICAL - Missing /@: Is /dev/sda1 mounted with the option subvolid=5?
However, if I change it to:
... it successfully does a rollback. The problem is that I'm interested in including this for the end-user and I don't want to have to explicitly define the root device. (Unfortunately
/dev/root
no longer exists). Is there any way to make this work within the limitations I have?Thanks in advance for your time.
The text was updated successfully, but these errors were encountered: