diff options
author | Simon Rettberg | 2013-09-11 18:00:19 +0200 |
---|---|---|
committer | Jonathan Bauer | 2013-09-30 13:22:06 +0200 |
commit | 6fe631aae5e2f80f86b19dcd8cae5e546bc3f009 (patch) | |
tree | ab8e3e529cd0701a23e929fe2e003d2a371a87c5 /remote/rootfs/rootfs-stage32/data | |
parent | [vbox] Added path patch for vboxheadless, debian/ubuntu suid VBoxHeadless (diff) | |
download | tm-scripts-6fe631aae5e2f80f86b19dcd8cae5e546bc3f009.tar.gz tm-scripts-6fe631aae5e2f80f86b19dcd8cae5e546bc3f009.tar.xz tm-scripts-6fe631aae5e2f80f86b19dcd8cae5e546bc3f009.zip |
[mount_export] Fix collision with mount points for addons
Diffstat (limited to 'remote/rootfs/rootfs-stage32/data')
-rwxr-xr-x | remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-mount_export | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-mount_export b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-mount_export index 3d012360..988dc3d7 100755 --- a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-mount_export +++ b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-mount_export @@ -4,7 +4,10 @@ [ -z "${SLX_STAGE4_NFS}" ] && { echo "SLX_STAGE4_NFS is not set in /opt/openslx/config." && exit 1; } -echo "Mounting ${SLX_STAGE4_NFS} to /opt/openslx/mnt" -mount -t nfs -o ro,async,nolock,vers=3 "$SLX_STAGE4_NFS" /opt/openslx/mnt || { echo "Fail." && exit 1; } -echo "Appending /opt/openslx/mnt to /" -mount -o remount,append:/opt/openslx/mnt=ro / || { echo "Fail." && exit 1; } +MOUNTPOINT="/opt/openslx/mnt/stage4" +mkdir -p "$MOUNTPOINT" +echo "Mounting ${SLX_STAGE4_NFS} to $MOUNTPOINT" +mount -t nfs -o ro,async,nolock,vers=3 "$SLX_STAGE4_NFS" "$MOUNTPOINT" || { echo "Fail." && exit 1; } +echo "Appending $MOUNTPOINT to /" +mount -o "remount,append:$MOUNTPOINT=ro" / || { echo "Fail." && exit 1; } + |