mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 08:00:05 +01:00
mount: prefix with /mnt
This commit is contained in:
parent
107a37f527
commit
fab04d2a5e
1 changed files with 3 additions and 3 deletions
|
|
@ -82,9 +82,9 @@ let {
|
||||||
|
|
||||||
mount.filesystem = q: x: {
|
mount.filesystem = q: x: {
|
||||||
fs.${x.mountpoint} = ''
|
fs.${x.mountpoint} = ''
|
||||||
if ! [ "$(mount | sed -n 's:\([^ ]\+\) on ${x.mountpoint} .*:\1:p')" = ${q.device} ]; then
|
if ! [ "$(mount | sed -n 's:\([^ ]\+\) on /mnt${x.mountpoint} .*:\1:p')" = ${q.device} ]; then
|
||||||
mkdir -p ${x.mountpoint}
|
mkdir -p /mnt${x.mountpoint}
|
||||||
mount ${q.device} ${x.mountpoint}
|
mount ${q.device} /mnt${x.mountpoint}
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue