From 7234e158162a690f59e2a1a42a5f4f76a34b960c Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Thu, 12 Oct 2023 23:27:16 +0900 Subject: [PATCH] Update InstallNET.sh --- Linux_reinstall/InstallNET.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linux_reinstall/InstallNET.sh b/Linux_reinstall/InstallNET.sh index 1cd503f..628c948 100644 --- a/Linux_reinstall/InstallNET.sh +++ b/Linux_reinstall/InstallNET.sh @@ -3580,7 +3580,7 @@ fi # Resize "/tmp" to avoid too low space to contain netboot kernel, base measure is "MB". tmpDirAvail=$(df -TBM | grep "/tmp\|/dev/shm" | head -n 1 | awk '{print $5}' | tr -cd "[0-9]") -[[ "$tmpDirAvail" -lt "256" ]] && mount -o remount,size=256M,noexec,nosuid,nodev,noatime /tmp 2>/dev/null +[[ "$tmpDirAvail" -lt "1024" ]] && mount -o remount,size=1G,noexec,nosuid,nodev,noatime tmpfs /tmp 2>/dev/null [[ -d /tmp/boot ]] && rm -rf /tmp/boot mkdir -p /tmp/boot