Avoid persist mount ordering cycle

This commit is contained in:
Timothy J. Aveni
2026-06-20 14:06:14 -07:00
parent b55cfc0c6f
commit 194dfc290b
+1 -4
View File
@@ -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";