Leapp fails with a mount error

Solution Verified - Updated -

Issue

  • The following errors can be seen during the reboot step:

    upgrade[679]: CalledProcessError: Command ['/bin/mount', '-a'] failed with exit code 32.
    :
    upgrade[679]: Container sysroot failed with error code 1.
    upgrade[679]: writing logs to disk and rebooting
    upgrade[679]: /bin/upgrade: line 19: /sysroot/var/tmp/system-upgrade.state: Read-only file system
    systemd[1]: upgrade.service: Main process exited, code=exited, status=1/FAILURE
    

    OR leapp-upgrade.log shows following log :

    2024-03-12 14:09:48.818 DEBUG    PID: 397 leapp.workflow.InitRamStart.remove_upgrade_boot_entry: External command has started: ['/bin/mount', '-a']
    2024-03-12 14:09:48.827 DEBUG    PID: 397 leapp.workflow.InitRamStart.remove_upgrade_boot_entry: mount: ext4: mount point does not exist.
    2024-03-12 14:09:48.831 DEBUG    PID: 397 leapp.workflow.InitRamStart.remove_upgrade_boot_entry: Command ['/bin/mount', '-a'] failed with exit code 32.
    2024-03-12 14:09:48.837 DEBUG    PID: 397 leapp.workflow.InitRamStart.remove_upgrade_boot_entry: External command has finished: ['/bin/mount', '-a']
    2024-03-12 14:09:48.857 ERROR    PID: 3 leapp.workflow.InitRamStart: Actor remove_upgrade_boot_entry has crashed: Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/leapp/repository/actor_definition.py", line 74, in _do_run
        actor_instance.run(*args, **kwargs)
      File "/usr/lib/python3.6/site-packages/leapp/actors/__init__.py", line 289, in run
        self.process(*args)
      File "/etc/leapp/repos.d/system_upgrade/common/actors/removeupgradebootentry/actor.py", line 20, in process
        remove_boot_entry()
      File "/etc/leapp/repos.d/system_upgrade/common/actors/removeupgradebootentry/libraries/removeupgradebootentry.py", line 41, in remove_boot_entry
        '/bin/mount', '-a'
      File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/__init__.py", line 192, in run
        result=result
    leapp.libraries.stdlib.CalledProcessError: Command ['/bin/mount', '-a'] failed with exit code 32.
    

Environment

  • Red Hat Enterprise Linux 7
    • leapp

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content