1
0
Fork 0

sb-disk: read boot partition, use gigibytes

This commit is contained in:
Luca Bilke 2024-07-20 15:27:48 +02:00
parent 771553affe
commit caff0c1b89
1 changed files with 5 additions and 6 deletions

View File

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