Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-10-12 23:27:16 +09:00 committed by GitHub
parent e6faf9cee0
commit 7234e15816
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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