]> www.infradead.org Git - users/hch/block.git/commit
init: handle ubi/mtd root mounting like all other root types
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Apr 2023 08:14:41 +0000 (10:14 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 31 May 2023 08:00:56 +0000 (10:00 +0200)
commitf227ccee4f257ece5bf94fa57739f38443558d35
tree8cd5eeed728751987ec5c1611e5d38655b9b655e
parent87f316d30f3ecaa2a01a26a9b7f098a6f131eef3
init: handle ubi/mtd root mounting like all other root types

Assign a Root_Generic magic value for UBI/MTD root and handle the root
mounting in mount_root like all other root types.  Besides making the
code more clear this also means that UBI/MTD root can be used together
with an initrd (not that anyone should care).

Also factor parsing of the root name into a helper now that it can
be easily done and will get more complicated with subsequent patches.

Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/root_dev.h
init/do_mounts.c