Re: [PATCH v2] init/main.c: add warning when file specified in rdinit is inaccessible

From: Lillian Berry
Date: Mon Jul 07 2025 - 03:47:47 EST


On Sun, Jul 6, 2025, at 6:32 PM, Andrew Morton wrote:
>> + if (ramdisk_command_access != 0) {
>> + pr_warn("rdinit=%s is inaccessible or does not exist (errno %i), ignoring\n",
>> + ramdisk_execute_command, ramdisk_command_access);
>
> Again, I don't think we should assume (or say) "inaccessible or does not
> exist". After all, init_eaccess() could have returned -ENOMEM.
> Something like "access(%s) failed: %d", maybe.

Sorry, I must've misunderstood your previous mail. I'll change the
message to be more generic.

Kindly,
Lillian