diff options
author | Christian Rößler | 2015-09-12 16:44:55 +0200 |
---|---|---|
committer | Christian Rößler | 2015-09-12 16:44:55 +0200 |
commit | 8c826f93c7063bc86c20931acaf38d32e55854e6 (patch) | |
tree | b927a8d0cfef0273fb4274f27bfb0bafd2a538e1 /remote/rootfs/rootfs-stage32/data/opt/openslx/scripts | |
parent | [runvirt], [vmware] Some more cosmetics: now include directories (diff) | |
download | tm-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-x | remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions | 7 |
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 |