mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-10-25 06:36:04 +08:00
Update InstallNET.sh
This commit is contained in:
parent
e6faf9cee0
commit
7234e15816
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue