Re: wait_for_initramfs warning from kernel_init_freeable()

From: Heiner Kallweit
Date: Thu Apr 29 2021 - 03:16:33 EST


On 29.04.2021 08:46, Heiner Kallweit wrote:
> Since 97f8172f9a98 ("init/initramfs.c: do unpacking asynchronously") I get
> the following warning early in the boot process from umh:
> "wait_for_initramfs() called before rootfs_initcalls"
> Some debugging lead me to the following call chain:
>
> kernel_init_freeable()
> -> do_basic_setup()
> -> driver_init()
> -> platform_bus_init()
> -> bus_register()
> -> kset_register()
> -> kobject_uvent()
>

Sorry, this is the first umh call, but at this time UMH_DISABLED is still set.
The first umh call where UMH is enabled is the following:

kernel_init_freeable()
-> do_basic_setup()
-> do_initcalls()
-> do_one_initcall()
-> wq_sysfs_init() <- core_initcall()
-> subsys_virtual_register()
-> bus_register()