bin/mktmpdir: grok NFS root
"df -l" is going to hurt (or at least spam) if it's a diskless node; "df -P" helps maintain output parseability. So be it.
This commit is contained in:
parent
809ae4d9e8
commit
18f1a6360a
@ -43,7 +43,7 @@ choose_tmpdir() {
|
||||
for i in "$@"; do
|
||||
[ -d "$i" -a -w "$i" ] || continue
|
||||
echo -n "$i "
|
||||
df -Tl "$i" | tail -1
|
||||
df -PT "$i" | tail -1
|
||||
done \
|
||||
| sort -unk6 \
|
||||
| while read dir dev fstype size used free percent mnt; do
|
||||
|
Loading…
Reference in New Issue
Block a user