diff options
author | Christoph Hellwig <hch@lst.de> | 2021-07-14 22:23:20 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-08-23 07:25:40 +0200 |
commit | f9259be6a9e7c22d92e5a5000913147ae17e8321 (patch) | |
tree | 6452f96496ca16dcbfd766126489729ca9832125 /init/do_mounts_rd.c | |
parent | init: split get_fs_names (diff) | |
download | linux-f9259be6a9e7c22d92e5a5000913147ae17e8321.tar.xz linux-f9259be6a9e7c22d92e5a5000913147ae17e8321.zip |
init: allow mounting arbitrary non-blockdevice filesystems as root
Currently the only non-blockdevice filesystems that can be used as the
initial root filesystem are NFS and CIFS, which use the magic
"root=/dev/nfs" and "root=/dev/cifs" syntax that requires the root
device file system details to come from filesystem specific kernel
command line options.
Add a little bit of new code that allows to just pass arbitrary
string mount options to any non-blockdevice filesystems so that it can
be mounted as the root file system.
For example a virtiofs root file system can be mounted using the
following syntax:
"root=myfs rootfstype=virtiofs rw"
Based on an earlier patch from Vivek Goyal <vgoyal@redhat.com>.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'init/do_mounts_rd.c')
0 files changed, 0 insertions, 0 deletions