FS#45118 - [mkinitcpio] add support for qemu virtfs (9p mount_tag) to base hook

Attached to Project: Arch Linux
Opened by Tom Yan (tom.ty89) - Thursday, 28 May 2015, 11:55 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 11 March 2017, 20:02 GMT
Task Type Feature Request
Category Arch Projects
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The following test prevents virtfs in qemu from being mount as rootfs:
https://projects.archlinux.org/mkinitcpio.git/tree/init_functions?h=v18#n317
because mount_tag(s) for 9p won't exist in the system (as a block special). It works kind of like an url.

I am not sure if such a test means much (well a cannot find such a device error...) for anything anyway (it mounts, it mounts; it fails, it fails?), but I think it can at least be enhanced for (root)fstype=9p if it has to be kept.

Btw it doesn't work with the systemd hook as well (neither does a initramfs-less boot when drivers were kernel bulitin though), but I guess that would be something upstream. According to some web sites seems dracut supports it, but I haven't actually tested yet.


Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 11 March 2017, 20:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  mkinitcpio-23
Comment by Dave Reisner (falconindy) - Thursday, 28 May 2015, 12:53 GMT
This is just a case where you need to provide your own mount handler to override the default:

https://projects.archlinux.org/mkinitcpio.git/tree/init#n4
Comment by Drew DeVault (SirCmpwn) - Thursday, 09 February 2017, 05:32 GMT
IMO the -b $root check in default_mount_handler should go. So should special support for NFS. Not all filesystems are based on block devices.
Comment by Dave Reisner (falconindy) - Saturday, 11 March 2017, 18:16 GMT Comment by Dave Reisner (falconindy) - Saturday, 11 March 2017, 18:26 GMT
Is there anything else needed by mkinitcpio to support 9p?
Comment by Drew DeVault (SirCmpwn) - Saturday, 11 March 2017, 20:00 GMT
That should do it, many thanks!

Loading...