Skip to content
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

How to manage zsys-generated clones after grub history use? #229

Open
fubar-1 opened this issue May 10, 2022 · 0 comments
Open

How to manage zsys-generated clones after grub history use? #229

fubar-1 opened this issue May 10, 2022 · 0 comments

Comments

@fubar-1
Copy link

fubar-1 commented May 10, 2022

This isn't a bug, it's another question from a zsys padawan-learner.

I just used GRUB's zsys-generated history to recover from a failed install (apt tried to hose my system when uninstalling pipewire. Yes I ignored the warning and hit enter too fast - muscle memory I guess) Zsys worked great and recovered the system to a known-good state. Yay!

[I don't understand why Ubuntu packages things so that just uninstalling some minor application triggers apt to attempt to uninstall the desktop but that's not relevant here]

So now I have the old broken clone system state sitting there in zfs and I'd like to be rid of it. What is the correct (safe) way to delete the datasets? Do I use zsysctl state remove? From what I'm reading, it seems to be only for fully-qualified zfs dataset names so do I just use it for each dataset or is there a way to leverage the brilliance of zsys to delete them all at once? I'm a bit hesitant to experiment for obvious reasons ;-)

Also, does this state put the system at more risk of bug #218 ?

Finally, a suggestion: if zsys development ever resumes, perhaps add a simple rollback functionality into grub recovery? Cloning is great and has it's uses but many folks would probably prefer just a simple rollback since they're recovering from a fail just minutes prior and aren't looking for data recovery or analysis of that failed boot image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant