Skip to content

Commit 636fed9

Browse files
types/lvm_vg: load mapper target kernel module before creating lv
this fixes creating a logical volume of type raid0. Co-authored-by: Emily <[email protected]>
1 parent 4f61850 commit 636fed9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/types/lvm_vg.nix

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
vgcreate ${config.name} \
6363
"''${lvm_devices[@]}"
6464
${lib.concatMapStrings (lv: ''
65+
${lib.optionalString (lv.lvm_type != null) "modprobe dm-${lv.lvm_type}"}
66+
6567
lvcreate \
6668
--yes \
6769
${if lib.hasInfix "%" lv.size then "-l" else "-L"} ${lv.size} \

0 commit comments

Comments
 (0)