mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
fix zfs rollback service
This commit is contained in:
parent
eea108801e
commit
563de3d600
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,6 @@
|
|||
#keyboard module for zfs password
|
||||
availableKernelModules = [ "hid_generic" ];
|
||||
systemd.services.rollback = {
|
||||
path = [ pkgs.zfs ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
|
|
@ -74,6 +73,7 @@
|
|||
wantedBy = [ "initrd.target" ];
|
||||
after = [ "zfs-import.target" ];
|
||||
before = [ "sysroot.mount" ];
|
||||
path = [ config.boot.zfs.package ];
|
||||
script = ''
|
||||
zfs rollback -r rpool/root@empty
|
||||
zfs rollback -r rpool/var@empty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue