Avoid persist mount ordering cycle
This commit is contained in:
@@ -219,7 +219,7 @@ in
|
||||
networking.hostId = cfg.hostId;
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
boot.zfs.extraPools = [ cfg.nixZfsPool cfg.persistZfsPool ];
|
||||
boot.zfs.extraPools = [ cfg.nixZfsPool ];
|
||||
boot.zfs.forceImportRoot = false;
|
||||
services.zfs.autoScrub = {
|
||||
enable = true;
|
||||
@@ -240,11 +240,8 @@ in
|
||||
|
||||
systemd.services.quixos-persist-init = lib.mkIf (cfg.persistDevice != null) {
|
||||
description = "Import or initialize Quixos persistent ZFS pool";
|
||||
wantedBy = [ "local-fs.target" ];
|
||||
requiredBy = [ "persist.mount" ];
|
||||
before = [ "persist.mount" ];
|
||||
after = [ "systemd-udev-settle.service" ];
|
||||
wants = [ "systemd-udev-settle.service" ];
|
||||
path = [ pkgs.coreutils pkgs.gnugrep pkgs.util-linux pkgs.zfs ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
|
||||
Reference in New Issue
Block a user