Skip to content

Commit 0523748

Browse files
committed
Use /var/lib for now as muvm does things to /run
We should fix muvm to recursively mount /run/fex-emu, as that's where we should put the mounts, but for now this will do.
1 parent 4ac5bc1 commit 0523748

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fex-emu-rootfs-generator.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ units=""
1212
mounts=""
1313
for layer in $layers; do
1414
name="$(basename $layer .erofs)"
15-
mount=/run/fex-emu/layers/$name
15+
mount=/var/lib/fex-emu/layers/$name
1616
unit="$(systemd-escape $mount --path --suffix mount)"
1717
cat > $dest/$unit <<EOF
1818
[Unit]
@@ -26,7 +26,7 @@ EOF
2626
[ -z "$mounts" ] && mounts=$mount || mounts="$mounts $mount"
2727
done
2828

29-
rootfs=$(systemd-escape /run/fex-emu/rootfs --path --suffix mount)
29+
rootfs=$(systemd-escape /var/lib/fex-emu/rootfs --path --suffix mount)
3030
cat > $dest/$rootfs <<EOF
3131
[Unit]
3232
Description=FEX RootFS
@@ -35,7 +35,7 @@ After=$units
3535
3636
[Mount]
3737
What=overlay
38-
Where=/run/fex-emu/rootfs
38+
Where=/var/lib/fex-emu/rootfs
3939
Type=overlay
4040
Options=lowerdir=$(echo $mounts|tr ' ' '\n' | tac | tr '\n' :|sed -e 's/.$//'),upperdir=/run/fex-emu/writable,workdir=/run/fex-emu/workdir
4141

0 commit comments

Comments
 (0)