Remove trailing slashes properly
This commit is contained in:
parent
9cfb27902a
commit
cd83727d54
1 changed files with 2 additions and 1 deletions
|
@ -67,6 +67,7 @@ in
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
script =
|
script =
|
||||||
let
|
let
|
||||||
|
inherit (lib.strings) normalizePath removeSuffix;
|
||||||
devices = (builtins.attrValues cfg.diskSetup.devices);
|
devices = (builtins.attrValues cfg.diskSetup.devices);
|
||||||
mountScript = lib.strings.concatLines (
|
mountScript = lib.strings.concatLines (
|
||||||
(builtins.concatMap
|
(builtins.concatMap
|
||||||
|
@ -80,7 +81,7 @@ in
|
||||||
[
|
[
|
||||||
(builtins.concatStringsSep " " (builtins.map (_: "-o ${_}") _.options))
|
(builtins.concatStringsSep " " (builtins.map (_: "-o ${_}") _.options))
|
||||||
(_.device)
|
(_.device)
|
||||||
(lib.strings.normalizePath "/${cfg.diskSetup.rootDir}/${_.mountPoint}")
|
(removeSuffix "/" (normalizePath "/${cfg.rootDir}/${_.mountPoint}"))
|
||||||
]
|
]
|
||||||
))
|
))
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue