mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
mount: prefix with /mnt
This commit is contained in:
1 parent
107a37f527
commit
fab04d2a5e
1 file changed
+3
-3
+3
-3
@@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user