1
Fork 0

Remove blank btrfs auto snapshot

This commit is contained in:
prescientmoon 2024-08-26 18:06:28 +02:00
parent c4c41ff68a
commit 070a6774ec
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -33,10 +33,11 @@
type = "btrfs"; type = "btrfs";
extraArgs = [ "-f" ]; extraArgs = [ "-f" ];
# TODO: how do we do this properly???
postCreateHook = '' postCreateHook = ''
# We then take an empty *readonly* snapshot of the root subvolume, # We then take an empty *readonly* snapshot of the root subvolume,
# which we'll eventually rollback to on every boot. # which we'll eventually rollback to on every boot.
btrfs subvolume snapshot -r /root /blank # btrfs subvolume snapshot -r /root /blank
''; '';
subvolumes = { subvolumes = {