[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#696292: For 9p root filesystems, kernel ignores root=$NAME option on command line, and uses /dev/root as mount tag



Control: reassign -1 initramfs-tools 0.109

On Tue, 2012-12-18 at 16:20 -0800, Josh Triplett wrote:
> Package: src:linux
> Version: 3.6.9-1~experimental.1
> Severity: normal
> 
> The virtio 9p filesystem uses a "mount tag" to distinguish between
> multiple filesystems provided to the guest.  The host can provide these
> via the mount_tag=$NAME parameter to kvm's -virtfs option, and the guest
> supplies the mount tag as the device name to mount.  This works fine for
> non-root filesystems.  However, when attempting to use a virtio 9p
> filesystem as the root filesystem (with rootfstype=9p), the kernel
> ignores the "root=$NAME" option on the kernel command line, and always
> uses "/dev/root" as the mount tag.  Making matters worse, kvm itself
> doesn't currently accept "/dev/root" as a mount tag, or anything else
> with a '/' in it (separate bug filed for that).  Hacking kvm to accept
> /dev/root allows this to work, but the kernel really should use the name
> passed to the root= option as the mount tag.
[...]

When using an initramfs, implementation of the 'root' kernel parameter
is the responsibility of the initramfs!

Ben.

-- 
Ben Hutchings
Make three consecutive correct guesses and you will be considered an expert.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: