diff options
| author | Jonathan Bauer | 2013-08-12 15:36:19 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2013-08-12 15:36:19 +0200 |
| commit | 384eef0513d56e318303d13ce07cfdb93c2a7f3d (patch) | |
| tree | 6e4bed7262179f94374fa92c2b42b94a700417d5 /remote/rootfs | |
| parent | Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff) | |
| download | tm-scripts-384eef0513d56e318303d13ce07cfdb93c2a7f3d.tar.gz tm-scripts-384eef0513d56e318303d13ce07cfdb93c2a7f3d.tar.xz tm-scripts-384eef0513d56e318303d13ce07cfdb93c2a7f3d.zip | |
[rootfs-stage32] SLX_STAGE4_NFS has to be given in the global config file (/opt/openslx/config). Adapated systemd-mount_export script
Diffstat (limited to 'remote/rootfs')
| -rwxr-xr-x | remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-mount_export | 15 |
1 files changed, 4 insertions, 11 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 64d5f485..3d012360 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 @@ -1,17 +1,10 @@ #!/bin/bash -export PATH=$PATH:/opt/openslx/usr/sbin:/opt/openslx/usr/bin:/opt/openslx/sbin:/opt/openslx/bin +. /opt/openslx/config -if grep "Ubuntu 13.04" "/etc/issue" >/dev/null; then - EXPORT="132.230.8.113:/srv/ubuntu1304" -elif grep "SUSE" "/etc/issue" >/dev/null; then - EXPORT="132.230.8.113:/srv/suse" -else - echo "Could not determine System" - exit 1 -fi +[ -z "${SLX_STAGE4_NFS}" ] && { echo "SLX_STAGE4_NFS is not set in /opt/openslx/config." && exit 1; } -echo "Mounting ${EXPORT} to /opt/openslx/mnt" -mount -t nfs -o ro,async,nolock,vers=3 "$EXPORT" /opt/openslx/mnt || { echo "Fail." && 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; } |
