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

btrfs creating snapshot of root beetween _create and _mount #517

Closed
Simon-Kenn opened this issue Jan 21, 2024 · 2 comments
Closed

btrfs creating snapshot of root beetween _create and _mount #517

Simon-Kenn opened this issue Jan 21, 2024 · 2 comments

Comments

@Simon-Kenn
Copy link

Simon-Kenn commented Jan 21, 2024

Pretty new to disko and btrfs, i'm not sure it's a disko problem but maybe you can help me.

i create a btrfs root partition with 4 subvolume (nix, persist and swap), after using the command for formating my disk,
i am unable to use the command btrfs subvolume snapshot -r /mnt/root /mnt/root-blank after the script process, in my current understanding it should be done after creating the subvolume and before mounting them.

Is there a way to use a command beetween the _create and _mount part in a declarative way ?

The goal is to erase root beetween every reboot

@Simon-Kenn Simon-Kenn changed the title btrfs root subvolume don't contain subvolumes btrfs creating snapshot of root beetween _create and _mount Jan 21, 2024
@Simon-Kenn
Copy link
Author

I didn't see, the postCreateHook options, i close the issue

@trueNAHO
Copy link
Contributor

trueNAHO commented Feb 7, 2024

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