<def-group>
  <definition class="inventory" id="installed_env_mount_home" version="1">
    <metadata>
        <title>Mountpoint /home is active (mounted) or configured in /etc/fstab</title>
            <affected family="unix">
                <platform>Ubuntu 22.04</platform>
            </affected>
        <description></description>
    </metadata>
    <criteria operator="OR">
      <criteria>
        
   <criterion comment="The path /home is an active (mounted) mount point"
     test_ref="test_mount_active_home_exists" />
      </criteria>
      <criteria>
        
   <criterion comment="The path /home is a mount point configured in /etc/fstab"
     test_ref="test_mount_configured_fstab_home_exists" />
      </criteria>
    </criteria>
  </definition>
  
  <linux:partition_test check="all" check_existence="all_exist" version="1"
      comment="Mountpoint /home exists"
      id="test_mount_active_home_exists">
    <linux:object object_ref="object_mount_active_home_exists" />
  </linux:partition_test>

  <linux:partition_object id="object_mount_active_home_exists" version="1">
    <linux:mount_point>/home</linux:mount_point>
  </linux:partition_object>
  
  <ind:textfilecontent54_test check="all" check_existence="all_exist" version="1"
      comment="Mountpoint /home is configured"
      id="test_mount_configured_fstab_home_exists">
    <ind:object object_ref="object_mount_configured_fstab_home_exists" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="object_mount_configured_fstab_home_exists" version="1">
    <ind:filepath>/etc/fstab</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*[\S]+[\s]+/home[\s]+[\S]+[\s]+([\S]+)</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>