foomatty/facter — comment on commit 019a1acc5da532eb0a7d930b84eb1e24c77f59b0
File: lib/facter/local_volumes.rb line 42
By stschulte:

I'm not sure, does facter sets the locale variable? Otherwise this may not work on all systems:

# LC_MESSAGES=de_DE.utf8 df -h
Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
rootfs 10G 3,7G 6,4G 37% /
/dev/mapper/vg-root 10G 3,7G 6,4G 37% /
rc-svcdir 1,0M 64K 960K 7% /lib64/rc/init.d
udev 10M 164K 9,9M 2% /dev
shm 1003M 0 1003M 0% /dev/shm
/dev/mapper/vg-home 80G 59G 22G 73% /home
/dev/mapper/vg-var 10G 386M 9,6G 4% /var
/dev/mapper/vg-portage 5,0G 987M 4,1G 20% /var/portage