sysroot.mount: About to execute: /usr/bin/mount virtfs:foo /sysroot -o ro
Describe the bug virtfs module does not mount 9p filesystem.
Distribution used Fedora Rawhide.
Dracut version dracut-105-3.fc43
Init system systemd.
To Reproduce
Initrd is generated with dracut -f --add virtfs /boot/initrd.img $KERNELRELEASE in GitHub actions runner. And then booted with root=virtfs:foo. With rd.debug I don't see mount-virtfs being run or any mount hooks being called.
grep -e virtfs -e 9p log1
...
[ 3.232419] dracut-cmdline[307]: /bin/dracut-cmdline@30(): root=virtfs:foo
[ 3.373800] dracut-cmdline[307]: ///lib/dracut/hooks/cmdline/00-parse-root.sh@5(source): root=virtfs:foo
[ 3.630471] dracut-cmdline[307]: /lib/dracut-lib.sh@394(source_all): '[' -e //lib/dracut/hooks/cmdline/95-parse-virtfs.sh ']'
[ 3.630828] dracut-cmdline[307]: /lib/dracut-lib.sh@397(source_all): . //lib/dracut/hooks/cmdline/95-parse-virtfs.sh
[ 3.631768] dracut-cmdline[307]: ///lib/dracut/hooks/cmdline/95-parse-virtfs.sh@3(source): '[' virtfs = virtfs ']'
[ 3.632727] dracut-cmdline[307]: ///lib/dracut/hooks/cmdline/95-parse-virtfs.sh@4(source): modprobe 9pnet_virtio
[ 4.266434] 9pnet: Installing 9P2000 support
[ 4.024163] dracut-cmdline[307]: ///lib/dracut/hooks/cmdline/95-parse-virtfs.sh@7(source): rootok=1
[ 4.031497] dracut-cmdline[307]: ///lib/dracut/hooks/cmdline/95-parse-virtiofs.sh@6(source): '[' virtfs = virtiofs ']'
[ 4.036558] dracut-cmdline[307]: /bin/dracut-cmdline@70(): '[' -z virtfs:foo ']'
sysroot.mount: About to execute: /usr/bin/mount virtfs:foo /sysroot -o ro
[ 6.738560] dracut-pre-mount[439]: ///lib/dracut/hooks/pre-mount/99-mount-virtiofs.sh@5(source): '[' virtfs = virtiofs ']'
sysroot.mount: Executing: /usr/bin/mount virtfs:foo /sysroot -o ro
Obviously systemd will not be able to mount virtfs:foo. Then boot falls into Emergency Shell. The GitHub actions is not interactive which complicates the debug.
Expected behavior 9pfs mounted.
Additional context ¯\(ツ)/¯
Dracut development has moved to https://github.com/dracut-ng/dracut-ng
Oh, thanks!
This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions.