diff options
author | Mathijs Kwik <mathijs@bluescreen303.nl> | 2013-01-01 14:42:43 +0100 |
---|---|---|
committer | Mathijs Kwik <mathijs@bluescreen303.nl> | 2013-01-01 14:53:54 +0100 |
commit | ebf48167174a2f3d80560f9a55750e7f304499a2 (patch) | |
tree | 37c4f1e0344298d4d0f8f43c2f6925cfa9a7c66e /lib | |
parent | 16a9bcfe815a9fe72c41348b4231c619e11da610 (diff) | |
download | nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar.gz nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar.bz2 nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar.lz nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar.xz nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar.zst nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.zip |
systemd mount units: use 'escapeSystemdPath' from lib/utils
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.nix b/lib/utils.nix index b75e063eaa92..35c56e8c32bb 100644 --- a/lib/utils.nix +++ b/lib/utils.nix @@ -5,6 +5,6 @@ rec { # Escape a path according to the systemd rules, e.g. /dev/xyzzy # becomes dev-xyzzy. FIXME: slow. escapeSystemdPath = s: - replaceChars ["/" "-"] ["-" "\\x2d"] (substring 1 (stringLength s) s); + replaceChars ["/" "-" " "] ["-" "\\x2d" "\\x20"] (substring 1 (stringLength s) s); } |