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

Unable to restore or delete files after running snapshot on Grub #297

Open
D3vil0p3r opened this issue Sep 16, 2023 · 3 comments
Open

Unable to restore or delete files after running snapshot on Grub #297

D3vil0p3r opened this issue Sep 16, 2023 · 3 comments

Comments

@D3vil0p3r
Copy link

I'm using Arch Linux with Zen Kernel and I'm using grub-btrfs + snapper-support package. I performed a test where:
1- I removed neofetch package
2- Created a file hello.txt
3- Removed malcontent package
4- Rebooted
5- Restoring on Grub by selecting the Snapshot related to the PRE-Install of neofetch package.

When I land on the system, effectively I see that I still have neofetch and malcontent packages installed as expected, but I see that hello.txt file still exists and I expected it was deleted since it didn't exist when I installed neofetch package.

Is there a way to manage files on snapshots by grub-btrfs or it works only with pacman packages?

@Schievel1
Copy link
Collaborator

The snapshots you can boot with are always snapshot of the root subvolume (@)
Could it be that you created the hello.txt file on a different subvolume?

@D3vil0p3r
Copy link
Author

I created it in my home folder. It has a different subvolume?

@Schievel1
Copy link
Collaborator

Schievel1 commented Sep 17, 2023

It depends on how you setup your machine but most often yes, home is on a different subvolume

Maybe you can test that again and create the file in /hello.txt.

Otherwise what you think is going on here, that restoring subvolumes only restores files installed/ removed by pacman isn't possible. Subvolumes are always restored as a whole and they are not coupled with any program like pacman.

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

2 participants