Merge pull request #224171 from alan-strohm/master

nixos/proxmox-image: don't assume virtio0 is using local-lvm storage

authored by

Sandro and committed by
GitHub
893f073f 4ece4cc2

+2 -1
+2 -1
nixos/modules/virtualisation/proxmox-image.nix
··· 135 cfgLine = name: value: '' 136 ${name}: ${builtins.toString value} 137 ''; 138 cfgFile = fileName: properties: pkgs.writeTextDir fileName '' 139 # generated by NixOS 140 ${lib.concatStrings (lib.mapAttrsToList cfgLine properties)} 141 - #qmdump#map:virtio0:drive-virtio0:local-lvm:raw: 142 ''; 143 inherit (cfg) partitionTableType; 144 supportEfi = partitionTableType == "efi" || partitionTableType == "hybrid";
··· 135 cfgLine = name: value: '' 136 ${name}: ${builtins.toString value} 137 ''; 138 + virtio0Storage = builtins.head (builtins.split ":" cfg.qemuConf.virtio0); 139 cfgFile = fileName: properties: pkgs.writeTextDir fileName '' 140 # generated by NixOS 141 ${lib.concatStrings (lib.mapAttrsToList cfgLine properties)} 142 + #qmdump#map:virtio0:drive-virtio0:${virtio0Storage}:raw: 143 ''; 144 inherit (cfg) partitionTableType; 145 supportEfi = partitionTableType == "efi" || partitionTableType == "hybrid";