Skip to content

dracut-056-1 an issue with systemd.volatile=overlay, nfsroot and systemd-volatile-root.service #1738

Description

@0n0w1c

Describe the bug
system-volatile-root.service requires /sysroot to be mounted

Distribution used
Manjaro

Dracut version
056-1

Init system
systemd

To Reproduce
Add systemd.volatile=overlay to kernel command line of a functional nfsroot setup:
root=10.1.1.2:/srv/nfs/root systemd.volatile=overlay

Expected behavior
An overlayfs on top of the nfsroot

Additional context
I added a small shell script to bring up the network and mount the nfsroot on /sysroot as a ExecStartPre in systemd-volatile-root.service and this proved to be successful. I had a ticket open with systemd thinking this was a systemd issue, but was informed it is a dracut issue, as dracut is responsible for the nfsroot mount.

systemd.volatile=overlay works fine without modification for a local root filesystem, the issue is only with an NFS root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugOur bugsnetwork-legacyIssues related to the network-legacy module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions