mount: allow empty .dev

This commit is contained in:
phaer 2023-01-15 15:52:25 +01:00
parent 10e1037ad7
commit 5034d2d836

View file

@ -205,7 +205,7 @@ rec {
in ''
set -efux
# first create the necessary devices
${concatMapStrings (dev: ((attrByPath (dev ++ [ "_mount" ]) "" devices) {}).dev ) sortedDeviceList}
${concatMapStrings (dev: ((attrByPath (dev ++ [ "_mount" ]) "" devices) {}).dev or "") sortedDeviceList}
# and then mount the filesystems in alphabetical order
${concatStrings (attrValues fsMounts)}