hi all,
I am wondering if I would like to retrieve the mount points values from the facter. From the facter -p, I can see that I do have the information. e.g.
partitions => {
"sda1"=>{
"mount"=>"/boot",
"uuid"=>"4e5014d1-080a-4182-aa89-bc83159b85fb",
"filesystem"=>"ext4",
"size"=>"614400"},
"sda2"=>{
"mount"=>"/",
"uuid"=>"edbab169-7983-4e38-9c71-24f0f88cccaa",
"filesystem"=>"ext4",
"size"=>"18257920"},
"sda3"=>{
"uuid"=>"b9674244-6686-49b0-b778-91052d78767f",
"filesystem"=>"swap",
"size"=>"2097152"}
}
And $mount is the one that I am looking for. Question: how can i loop through the $partitions data structure and harvest $mount and detect if there is a mount point call "/data". thanks!