more locks
This commit is contained in:
parent
f6d01063b2
commit
cfd74c946c
3 changed files with 1082 additions and 12 deletions
|
|
@ -65,4 +65,19 @@ in
|
|||
size = 8 * 1024; # Creates an 8GB swap file
|
||||
}
|
||||
];
|
||||
|
||||
# Reset root
|
||||
# TODO
|
||||
# boot.initrd.systemd.services.rollback-root = {
|
||||
# description = "Rollback Root Filesystem to Blank Snapshot";
|
||||
# wantedBy = [ "initrd.target" ];
|
||||
# after = [ "persist.mount" ];
|
||||
# requires = [ "persist.mount" ];
|
||||
# before = [ "sysroot.mount" ];
|
||||
# unitConfig.DefaultDependencies = false;
|
||||
# serviceConfig = {
|
||||
# Type = "oneshot";
|
||||
# ExecStart = "/bin/sh -c 'bcachefs subvolume delete /persist/@root; bcachefs subvolume snapshot /persist/@root-blank /persist/@root'";
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue