Re: [PATCH] init/mount: print pretty name of root device when panics

From: Christian Brauner
Date: Mon Sep 11 2023 - 18:45:44 EST


On Thu, 07 Sep 2023 09:10:25 +0000, Jianyong Wu wrote:
> Given a wrong root device, current log may not give the pretty name
> which is useful to locate root cause.
>
> For example, there are 2 blk devs in a VM, /dev/vda which has 2 partitials
> /dev/vda1 and /dev/vda2 and /dev/vdb which is blank. /dev/vda2 is the
> right root dev. When set "root=/dev/vdb", we get error log:
>
> [...]

Applied to the vfs.misc branch of the vfs/vfs.git tree.
Patches in the vfs.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.misc

[1/1] init/mount: print pretty name of root device when panics
https://git.kernel.org/vfs/vfs/c/fae8adf5208d