-
Notifications
You must be signed in to change notification settings - Fork 9
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
ERROR (refind_btrfs.state_management.refind_btrfs_machine/refind_btrfs_machine.py/run): Subvolume '@' is itself a snapshot #61
Comments
Hi, the problem is that the snapshot still retains its parent subvolume's UUID event after you've restored it even though its parent probably doesn't event exist anymore. I have to rework that validation. Anyhow, you can turn this check off by setting this config option to "false". |
Thanks I will change the config and have a thorough check through it! For the validation, would it be possible to just check if the system is read-only or not? Try to write to a file or something like that. |
This tool is meant for booting into r/w snapshots so that kind of test would always fail. This string could then be compared with the actual root subvolume's name during runtime. |
Oh I see! It sounds like you got a good solution there. Not too complicated. |
May I ask how you are restoring your snapshots to the root subvolume? I am having a hard time to get my rollback script to work with refind-btrfs due to the fact that it doesn't boot the read-only snapshots that snapper or yabsnap creates. |
Given a snapshot boot stanza named "Arch Linux - Stable (rwsnap_2020-12-14_05-00-00_ID502)" the ID502 is the ID of the original snapshot created by, for example, Snapper so that's the one you want to restore. |
I got my scripts working thanks to the |
Yes, that feature inherently adds considerable complexity and I wanted to keep my implementation reasonably simple. Please close the issue if you're not experiencing problems anymore. |
Okey, thanks for letting me know! Shouldn't I leave this issue should be open until the root snapshot validation is reworked? Or do you want me to close it? |
Agreed, leave it open. 👍🏼 |
Hey @Venom1991 just want to chime in as I am facing this issue too. I want to raise that I seem to get a different
This is the new
My concern is that the loader and initrd fields contain the Redoing the setup process on my laptop, without the restoration, this is what I get, closer to what I expect. Ignore the difference of not having the
Hope this helps you in fixing this! |
The second generated boot stanza (on your laptop) looks the way it does because you've setup a separate
|
So I have an Arch system with BTRFS snapshots using snapper and the standard Arch BTRFS partition layout. Previously I used GRUB with grub-btrfs as my bootloader and now I use rEFInd instead.
When I try to run refind-btrfs I get these errors
I am assuming it might be because of how I restore my snapshots? My system is not read-only and there is no reason I can not make a new snapshots for my system.
Here's the script I am using to restore a previous snapshot after I have booted in to it from grub
The text was updated successfully, but these errors were encountered: