227: Add support for /dev/mapper LVM partitions in deviceNumbering r=Lassulus a=seirl



Co-authored-by: Antoine Pietri <antoine.pietri1@gmail.com>
This commit is contained in:
bors[bot] 2023-05-07 09:21:53 +00:00 committed by GitHub
commit 35c3426fec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,6 +59,8 @@ rec {
"${dev}p${toString index}" # /dev/nvme0n1p1 style "${dev}p${toString index}" # /dev/nvme0n1p1 style
else if match "/dev/md/.+" dev != null then else if match "/dev/md/.+" dev != null then
"${dev}${toString index}" # /dev/md/raid1 style "${dev}${toString index}" # /dev/md/raid1 style
else if match "/dev/mapper/.+" dev != null then
"${dev}${toString index}" # /dev/mapper/vg-lv1 style
else else
abort '' abort ''
${dev} seems not to be a supported disk format. Please add this to disko in https://github.com/nix-community/disko/blob/master/types/default.nix ${dev} seems not to be a supported disk format. Please add this to disko in https://github.com/nix-community/disko/blob/master/types/default.nix