From: Vivek Goyal <vgoyal@redhat.com>
To: "Harry G. Coin" <hgcoin@gmail.com>
Cc: virtio-fs-list <virtio-fs@redhat.com>
Subject: Re: [Virtio-fs] Virtiofs Kernel Boot howto
Date: Fri, 4 Jun 2021 16:58:17 -0400 [thread overview]
Message-ID: <20210604205817.GA323260@redhat.com> (raw)
In-Reply-To: <756d5044-e567-b403-b4b2-784b3c284ed6@gmail.com>
On Fri, Jun 04, 2021 at 11:28:42AM -0500, Harry G. Coin wrote:
> Mentioned up-list, here's a further little helper to allow virtio-fs root.
Hi Harry,
Thanks for posting instructions on how to boot with virtiofs as rootfs.
[..]
> and as 'kernel args' (presuming you've built dracut with the added conf
> files I published on this list previously):
>
> root=virtiofs:myfs rd.shell rd.fstab
Ok, this is interesting bit that how virtiofs root should be specified
so that it can be parsed both by kernel as well as initramfs module.
I don't think "root=virtiofs:myfs" is recognized by kernel. So you must
have coded dracut module to parse it appropriately.
I just want to make sure that we have a common agreed upon format
to specify virtiofs as root device. Stefan had posted some pathces
to kernel in the past but I think review suggested more work and
things did not progress after that.
https://lore.kernel.org/linux-fsdevel/20190906100324.8492-1-stefanha@redhat.com/
Stefan had suggested syntax "rootfstype=virtiofs root=myfs rw".
Now various kind of hacks are being used. Atleast I am aware of two.
- For vhost-user-fs-pci device use "tag=mtdmyfs" and pass following in
kernel command line. This hack was proposed by stefan.
"root=mtdmyfs rootfstype=virtiofs rw"
- For vhost-user-fs-pci device use "tag=/dev/root" and pass following in
kernel command line.
"rootfstype=virtiofs rw"
Anyway, point being that instead of using hacks, will be good if we
can fix kernel to accept an option for virtiofs and then fix
dracut accordingly. Don't want two different ways of doing things
for dracut and kernel.
Thanks
Vivek
next prev parent reply other threads:[~2021-06-04 20:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-04 16:28 [Virtio-fs] Virtiofs Kernel Boot howto Harry G. Coin
2021-06-04 20:58 ` Vivek Goyal [this message]
2021-06-04 21:53 ` Harry G. Coin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210604205817.GA323260@redhat.com \
--to=vgoyal@redhat.com \
--cc=hgcoin@gmail.com \
--cc=virtio-fs@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.