Auto create blank snapshot using disko
This commit is contained in:
parent
070a6774ec
commit
5eb6987d6c
|
@ -33,14 +33,10 @@
|
|||
type = "btrfs";
|
||||
extraArgs = [ "-f" ];
|
||||
|
||||
# TODO: how do we do this properly???
|
||||
postCreateHook = ''
|
||||
# We then take an empty *readonly* snapshot of the root subvolume,
|
||||
# which we'll eventually rollback to on every boot.
|
||||
# btrfs subvolume snapshot -r /root /blank
|
||||
'';
|
||||
|
||||
subvolumes = {
|
||||
# {{{ /blank
|
||||
"/blank" = { };
|
||||
# }}}
|
||||
# {{{ /root
|
||||
"/root" = {
|
||||
mountpoint = "/";
|
||||
|
|
Loading…
Reference in a new issue