ArchipelProject / Archipel

XMPP Based Orchestrator
http://archipelproject.org
GNU Affero General Public License v3.0
803 stars 126 forks source link

Alpine Linux Compatibility #1176

Closed crackmonkey closed 8 years ago

crackmonkey commented 8 years ago

The Archipel agent was unable to gather disk stats on Alpine Linux because Alpine uses Busybox's df ,which does not support the exclude (-x) option, instead of GNU coreutils. I re-implemented get_disk_stats and get_disk_total to gather the data from /proc/mounts and statvfs system calls instead. It should work on any Linux.

CyrilPeponnet commented 8 years ago

I made a few changes to your original code. I will commit it soon with other updates. I'm closing this one.

Thanks ;)