diff options
| -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 |
