fix: zfs mounting when using systemd initrd

fix: enabled systemd emergency access
This commit is contained in:
Patrick Großmann 2023-05-19 01:41:40 +09:00
parent cb36561cdc
commit cf61c70015
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 2 additions and 0 deletions

View file

@ -22,6 +22,7 @@
}; };
boot = { boot = {
initrd.systemd.enable = true; initrd.systemd.enable = true;
initrd.systemd.emergencyAccess = true;
initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc"]; initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc"];
supportedFilesystems = ["ntfs"]; supportedFilesystems = ["ntfs"];
kernelModules = ["kvm-intel"]; kernelModules = ["kvm-intel"];

View file

@ -2,6 +2,7 @@
fileSystems."/" = { fileSystems."/" = {
device = "rpool/ROOT/nixos"; device = "rpool/ROOT/nixos";
fsType = "zfs"; fsType = "zfs";
options = ["zfsutil" "X-mount.mkdir"];
}; };
fileSystems."/boot" = { fileSystems."/boot" = {