Skip to content

CLOS-3465: Inhibit upgrade when _netdev found in fstab#62

Merged
prilr merged 2 commits into
cloudlinux:cloudlinuxfrom
prilr:CLOS-3465-block-system-upgrade-when-netdev-found-i
May 12, 2026
Merged

CLOS-3465: Inhibit upgrade when _netdev found in fstab#62
prilr merged 2 commits into
cloudlinux:cloudlinuxfrom
prilr:CLOS-3465-block-system-upgrade-when-netdev-found-i

Conversation

@prilr
Copy link
Copy Markdown
Collaborator

@prilr prilr commented May 12, 2026

During in-place upgrade, leapp disconnects the system from the network before the first reboot.
Any fstab entry with the _netdev option relies on network availability and cannot be mounted at that stage, causing the upgrade to fail.

Add check_netdev_mounts() to the CheckMountOptions actor to detect such entries and report an inhibitor.
The check is bypassed when nofail is set for the entry LEAPP_DEVEL_INITRAM_NETWORK is set (network available in initramfs).

prilr and others added 2 commits May 6, 2026 09:50
During in-place upgrade, leapp disconnects the system from the network
before the first reboot. Any fstab entry with the _netdev option relies
on network availability and cannot be mounted at that stage, causing the
upgrade to fail.

Add check_netdev_mounts() to the CheckMountOptions actor to detect such
entries and report an inhibitor. The check is bypassed when
LEAPP_DEVEL_INITRAM_NETWORK is set (network available in initramfs).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When an fstab entry pairs _netdev with nofail, systemd will not fail the
boot if the mount cannot be brought up - the standard idiom for non-
critical network mounts. Inhibiting these would be a false positive: the
upgrade proceeds past the first reboot whether the mount succeeds or not.

Validated on a CL7 test VM (template USERLAND-AUTO-all_in_one-CL7.stable.cpanel-11.110):
- _netdev,defaults -> inhibitor fires (3 total inhibitors)
- _netdev,nofail   -> inhibitor does not fire (2 total inhibitors,
                      grep -c 'netdev' on report = 0)

Also reword summary/remediation to mention the nofail escape hatch.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@prilr prilr merged commit f446a57 into cloudlinux:cloudlinux May 12, 2026
1 check passed
@prilr prilr deleted the CLOS-3465-block-system-upgrade-when-netdev-found-i branch May 12, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants