Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying raidintegrity doesn't load required kernel modules #300

Open
Mic92 opened this issue Jul 21, 2023 · 0 comments
Open

Specifying raidintegrity doesn't load required kernel modules #300

Mic92 opened this issue Jul 21, 2023 · 0 comments
Labels
contributions welcome There's nothing left to discuss, feel free to submit a PR for this! enhancement New feature or request

Comments

@Mic92
Copy link
Member

Mic92 commented Jul 21, 2023

  disko.devices = {
    disk = {
      nvme0n1 = disk 0;
      nvme1n1 = disk 1;
    };

    lvm_vg = {
      pool = {
        type = "lvm_vg";
        lvs = {
          root = {
            size = "95%FREE";
            lvm_type = "raid1";
            extraArgs = [
              "--raidintegrity"
              "y"
            ];
            content = {
              type = "filesystem";
              format = "xfs";
              mountpoint = "/";
              mountOptions = [
                "defaults"
              ];
            };
          };
        };
      };
    };
  };

If --raidintegrity is set we also need this:

  boot.initrd.kernelModules = [
    "dm-raid"
    "dm-integrity"
  ];
@iFreilicht iFreilicht added enhancement New feature or request contributions welcome There's nothing left to discuss, feel free to submit a PR for this! labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributions welcome There's nothing left to discuss, feel free to submit a PR for this! enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants