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

Snapper cant setup default * snapshot #453

Closed
chriztheanvill opened this issue Jul 24, 2024 · 3 comments
Closed

Snapper cant setup default * snapshot #453

chriztheanvill opened this issue Jul 24, 2024 · 3 comments

Comments

@chriztheanvill
Copy link

Hi
Just installed Spiral, love it, but testing snapper, cant setup a default snapshot *

For example, in fedora:

snapper ls -a                                                                                                              
Config: home, subvolume: /home
 # | Type   | Pre # | Date                            | User | Cleanup | Description | Userdata
---+--------+-------+---------------------------------+------+---------+-------------+---------
0  | single |       |                                 | root |         | current     |         
1  | single |       | Wed 24 Jul 2024 04:32:23 AM CST | root |         | StartHome   |         

Config: root, subvolume: /
 # | Type   | Pre # | Date                            | User | Cleanup | Description          | Userdata
---+--------+-------+---------------------------------+------+---------+----------------------+---------
0  | single |       |                                 | root |         | current              |         
1* | single |       | Wed 24 Jul 2024 04:31:37 AM CST | root |         | first root subvolume |         
2  | single |       | Wed 24 Jul 2024 06:27:18 AM CST | root |         | Done                 |         
3  | pre    |       | Wed 24 Jul 2024 02:12:31 PM CST | root | number  | /usr/bin/dnf upgrade |         
4  | post   |     3 | Wed 24 Jul 2024 02:12:40 PM CST | root | number  | /usr/bin/dnf upgrade | 

The snapshot 1 for root, is default and current, and in Spiral, only shows + instead of *

Is there a way to fix it ?
Really love the distro.

@geckolinux
Copy link
Contributor

Hi there, glad you like SpiralLinux, thanks for saying so.

Sorry I don't quite understand what you're trying to accomplish. The system will always use the current snapshot 0 , and the only time you would change it is if you need to rollback the system, which can be accomplished with these instructions:
https://github.com/SpiralLinux/SpiralLinux-project/wiki#working-with-btrfs-snapshots-and-rollbacks

@chriztheanvill
Copy link
Author

Thanks I read it, but after making a rollback 35, 0 will still be the current snapshot ?

Sorry I am starting with btrfs + snapper. I tried with openSUSE TW and fedora, and both can setup a default current snapshot (*), normally is 1:

 # | Type   | Pre # | Date                            | User | Cleanup | Description          | Userdata
---+--------+-------+---------------------------------+------+---------+----------------------+---------
0  | single |       |                                 | root |         | current              |         
1* | single |       | Wed 24 Jul 2024 09:11:53 PM CST | root |         | first root subvolume |         |         

And if you do a rollback to 35, 35 is the new default current:

 # | Type   | Pre # | Date                            | User | Cleanup | Description          | Userdata
---+--------+-------+---------------------------------+------+---------+----------------------+---------
0  | single |       |                                 | root |         | current              |         
...
35* | single |       | Wed 24 Jul 2024 09:11:53 PM CST | root |         | first root subvolume |         |         
...

@geckolinux
Copy link
Contributor

geckolinux commented Jul 25, 2024

SpiralLinux uses the snapper-rollback script from https://github.com/jrabinow/snapper-rollback , which does not work the same as the snapper rollback command, and it requires a different subvolume layout. You can read about the differences and find more links to read about it here: jrabinow/snapper-rollback#16

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