summaryrefslogtreecommitdiff
path: root/fs/filesystems.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-07-14 16:23:20 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2021-08-23 01:25:40 -0400
commitf9259be6a9e7c22d92e5a5000913147ae17e8321 (patch)
tree6452f96496ca16dcbfd766126489729ca9832125 /fs/filesystems.c
parente24d12b7442afa9d41331a951fca467449ff1488 (diff)
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 'fs/filesystems.c')
0 files changed, 0 insertions, 0 deletions