Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

Guenter Roeck
2015-01-21T02:44:47Z

On 01/20/2015 04:41 PM, Al Viro wrote:

> The shit hits the fan earlier - when we end up missing /dev. There are
> two places where it could've been created (depending on CONFIG_BLK_DEV_INITRD);
> sys_mkdir(collected, mode);
> in init/initramfs.c (line 353 in linux-next) and
> err = sys_mkdir((const char __user __force *) "/dev", 0755);
> in init/noinitramfs.c (line 32). The latter would've screamed on failure;
> could you printk of collected (%s), mode (%o) and return value (%d) in the
> former and see what happens?
>

sys_mkdir .:40775 returned -17
sys_mkdir usr:40775 returned 0
sys_mkdir usr/lib:40775 returned -2
sys_mkdir usr/share:40755 returned -2
sys_mkdir usr/share/udhcpc:40755 returned -2
sys_mkdir usr/bin:40775 returned -2
sys_mkdir usr/sbin:40775 returned -2
sys_mkdir mnt:40775 returned 0
sys_mkdir proc:40775 returned 0
sys_mkdir root:40775 returned 0
sys_mkdir lib:40775 returned 0
sys_mkdir lib/modules:40775 returned -2
sys_mkdir lib/modules/3.9.2:40775 returned -2
sys_mkdir lib/modules/3.9.2/kernel:40775 returned -2

with
int err = sys_mkdir(collected, mode);
pr_info("sys_mkdir %s:%o returned %d\n", collected, mode, err);
added in init/initramfs.c.

Guenter