line 24 in /etc/preinit:
size=$(awk '/MemTotal:/ {l=5242880;mt=($2*1024);print((s=mt/2)
l)?mt-l:s}' /proc/meminfo)
if the 'mt' is more then 5MB and less then 10MB, the 'size' = 'mt-5242880'. if the formula above is established , the 'size' will be very small in the case when 'mt' = 5.1M.
I did a test, and got the result as below:
$mount
...
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=8k) #here,very small
...
Is it a bug? can anyone pls give me some advices?
Why mount a very small tmpfs on /tmp in /etc/preinit
最新推荐文章于 2022-02-16 10:18:32 发布