MOON
Server: Apache
System: Linux server2.shieldcogroup.com 3.10.0-1160.119.1.el7.tuxcare.els12.x86_64 #1 SMP Fri Nov 8 05:49:38 UTC 2024 x86_64
User: jacom (1029)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/leapp/repos.d/system_upgrade/el7toel8/actors/checkfstabxfsoptions/actor.py
from leapp.actors import Actor
from leapp.libraries.actor import checkfstabxfsoptions
from leapp.models import StorageInfo
from leapp.reporting import Report
from leapp.tags import ChecksPhaseTag, IPUWorkflowTag


class CheckFstabXFSOptions(Actor):
    """
    Check the FSTAB file for the deprecated / removed XFS mount options.

    Some mount options for XFS have been deprecated on RHEL 7 and already
    removed on RHEL 8. If any such an option is present in the FSTAB,
    it's impossible to boot the RHEL 8 system without the manual update of the
    file.

    Check whether any of these options are present in the FSTAB file
    and inhibit the upgrade in such a case.
    """

    name = 'checkfstabxfsoptions'
    consumes = (StorageInfo,)
    produces = (Report,)
    tags = (ChecksPhaseTag, IPUWorkflowTag)

    def process(self):
        checkfstabxfsoptions.process()