Last Modified
2015-08-25 09:56:02 -0400
Requires
  • facter
  • facter/util/partitions

Description

Fact: partitions

Purpose:

Return the details of the disk partitions.

This fact is structured. Values are returned as a group of key-value pairs.

Resolution:

Parse the contents of `/sys/block/<device>/size` to receive the size (multiplying by 512 to correct for blocks-to-bytes).

Caveats:

For Linux, only 2.6+ is supported at this time due to the reliance on sysfs.