diff options
author | lassulus <lassulus@lassul.us> | 2018-08-05 11:44:34 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-08-05 11:44:34 +0200 |
commit | fab04d2a5ec073b8ddf9bd02b39be33e483837d3 (patch) | |
tree | e9dce96caab2ec1d10057b37d4e328d37b020eaf /lib/default.nix | |
parent | 107a37f52740bfa6ae8378efae4391fdbc7039cf (diff) |
mount: prefix with /mnt
Diffstat (limited to 'lib/default.nix')
-rw-r--r-- | lib/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/default.nix b/lib/default.nix index 54bcf24..16da93d 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -82,9 +82,9 @@ let { mount.filesystem = q: x: { fs.${x.mountpoint} = '' - if ! [ "$(mount | sed -n 's:\([^ ]\+\) on ${x.mountpoint} .*:\1:p')" = ${q.device} ]; then - mkdir -p ${x.mountpoint} - mount ${q.device} ${x.mountpoint} + if ! [ "$(mount | sed -n 's:\([^ ]\+\) on /mnt${x.mountpoint} .*:\1:p')" = ${q.device} ]; then + mkdir -p /mnt${x.mountpoint} + mount ${q.device} /mnt${x.mountpoint} fi ''; }; |