mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
types.table: get device mountOptions the correct way
This commit is contained in:
parent
08dc4d06da
commit
f49536f004
1 changed files with 2 additions and 4 deletions
|
@ -211,7 +211,7 @@ rec {
|
|||
in ''
|
||||
set -efux
|
||||
# first create the necessary devices
|
||||
${concatMapStrings (dev: ((attrByPath (dev ++ [ "_mount" ]) "" devices) {}).dev or "") sortedDeviceList}
|
||||
${concatMapStrings (dev: ((attrByPath (dev ++ [ "_mount" ]) {} devices) {}).dev or "") sortedDeviceList}
|
||||
|
||||
# and then mount the filesystems in alphabetical order
|
||||
${concatStrings (attrValues fsMounts)}
|
||||
|
@ -680,9 +680,7 @@ rec {
|
|||
let
|
||||
partMounts = diskoLib.deepMergeMap (partition: partition._mount {inherit dev;}) config.partitions;
|
||||
in {
|
||||
dev = ''
|
||||
${concatMapStrings (x: x.dev or "") (attrValues partMounts)}
|
||||
'';
|
||||
dev = partMounts.dev or "";
|
||||
fs = partMounts.fs or {};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue