sb-disk: read boot partition, use gigibytes
This commit is contained in:
parent
771553affe
commit
caff0c1b89
|
@ -3,14 +3,13 @@
|
|||
IFS='
|
||||
'
|
||||
|
||||
types=${SB_DISK_FS:-ext2,ext3,ext4,xfs,btrfs}
|
||||
types=${SB_DISK_FS:-ext2,ext3,ext4,xfs,btrfs,vfat}
|
||||
first=true
|
||||
for mnt in $(findmnt -Py -t "$types"); do
|
||||
eval "$mnt"
|
||||
[ -d "$TARGET" ] || break
|
||||
eval "$mnt"
|
||||
[ "$TARGET" = "/var/lib/docker" ] && break
|
||||
[ "$first" = "false" ] && printf " | "
|
||||
printf "%b" "${TARGET}: $(df -H "$TARGET" | awk ' /[0-9]/ {print $3 "/" $2}')"
|
||||
first=false
|
||||
$first || printf " | "
|
||||
printf "%b" "${TARGET}: $(df -h "$TARGET" | awk ' /[0-9]/ {print $3 "/" $2}')"
|
||||
first=false
|
||||
done
|
||||
printf "\n"
|
||||
|
|
Loading…
Reference in New Issue