summaryrefslogtreecommitdiffstats
path: root/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts
diff options
context:
space:
mode:
authorChristian Rößler2015-09-12 16:44:55 +0200
committerChristian Rößler2015-09-12 16:44:55 +0200
commit8c826f93c7063bc86c20931acaf38d32e55854e6 (patch)
treeb927a8d0cfef0273fb4274f27bfb0bafd2a538e1 /remote/rootfs/rootfs-stage32/data/opt/openslx/scripts
parent[runvirt], [vmware] Some more cosmetics: now include directories (diff)
downloadtm-scripts-8c826f93c7063bc86c20931acaf38d32e55854e6.tar.gz
tm-scripts-8c826f93c7063bc86c20931acaf38d32e55854e6.tar.xz
tm-scripts-8c826f93c7063bc86c20931acaf38d32e55854e6.zip
[rootfs] systemd-setup_partitions: 3 sec added wait time if /etcdisk.partition empty; 60 GB tmpfs
Diffstat (limited to 'remote/rootfs/rootfs-stage32/data/opt/openslx/scripts')
-rwxr-xr-xremote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions7
1 files changed, 6 insertions, 1 deletions
diff --git a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions
index f9640589..3c6d12a1 100755
--- a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions
+++ b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions
@@ -91,6 +91,11 @@ mount_temp_fallback () {
fdisk -l | sed -n "/^\/dev\//p" > "/etc/disk.partition"
+if [ ! -s "/etc/disk.partition" ]; then
+ sleep 3
+ fdisk -l | sed -n "/^\/dev\//p" > "/etc/disk.partition"
+fi
+
echo "Partitions:"
cat "/etc/disk.partition"
@@ -149,7 +154,7 @@ mount -a
# Make huge tmpfs if nothing could be mounted for /tmp
if [ "$HAVE_TEMP" = "no" ]; then
- mount_temp -t tmpfs -o size=20G none
+ mount_temp -t tmpfs -o size=60G none
slxlog "partition-temp" "Running /tmp on tmpfs only!" "/etc/disk.partition"
fi
if [ "$HAVE_SWAP" = "no" ]; then