use zpool workaround by default
This commit is contained in:
parent
b84584201b
commit
dc898d39d6
4 changed files with 7 additions and 13 deletions
modules/nixos
|
@ -1,4 +1,4 @@
|
|||
{ inputs, ... }:
|
||||
{ config, inputs, ... }:
|
||||
{
|
||||
imports = [ inputs.disko.nixosModules.disko ];
|
||||
|
||||
|
@ -9,6 +9,9 @@
|
|||
efiInstallAsRemovable = true;
|
||||
};
|
||||
|
||||
# the default zpool import services somehow times out while this import works fine?
|
||||
boot.initrd.systemd.services.zfs-import-zroot.serviceConfig.ExecStartPre = "${config.boot.zfs.package}/bin/zpool import -N -f zroot";
|
||||
|
||||
# Sometimes fails after the first try, with duplicate pool name errors
|
||||
boot.initrd.systemd.services.zfs-import-zroot.serviceConfig.Restart = "on-failure";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue