rollback script

This commit is contained in:
2026-06-16 22:25:53 -05:00
parent 6d592125e0
commit bd3daecaed
2 changed files with 4 additions and 6 deletions
+3 -5
View File
@@ -135,14 +135,12 @@
wantedBy = [ "initrd.target" ];
before = [ "sysroot.mount" ];
after = [ "zfs-import-zroot.service" ];
path = with pkgs; [
zfs
];
serviceConfig = {
Type = "oneshot";
ExecStart = ''
zfs rollback -r zroot/root@blank && echo "blank rollback complete"
ExecStart = pkgs.writeShellScript "delete-root" ''
${pkgs.zfs}/bin/zfs rollback -r zroot/root@blank
echo "blank rollback complete"
'';
};
};