more locks

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-12-13 15:16:13 -06:00
parent f6d01063b2
commit cfd74c946c
3 changed files with 1082 additions and 12 deletions

View file

@ -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'";
# };
# };
}