fai 4.0.5: dracut boot ends with kernel panic

Nicolas Courtel courtel at cena.fr
Thu Jan 24 10:58:41 CET 2013


Le 23/01/2013 20:54, Sven Schumacher a écrit :
> Hello Nicolas,
>
> It looks very similar to my first steps using FAI:
>
> So you tried already adding :vers=3 to your cmdline after the root=a.b.c.d:/srv/fai/nfsroot in your /srv/tftp/fai/pxelinux.cfg/HOSTNAME
> which you created using fai-chboot ?
>
> Is the nfs-server the same as the tftp?
>
> Are you able to mount the nfsroot, when you booted via live-cd that particular client? so /etc/exports is set up correct on the nfs-server?

Yes to both, I used fai-chboot -k nfsopts=-onfsvers=3 to build the tftp 
file, and the FAI server hosts both tftp and NFS services.
The NFS root seems to be mounted, dracut says so (1st line of the log) 
and showmount -a on the server also.

-- 
Nicolas

>> Hello,
>>
>> I'm trying to use dracut in FAI 4.0.5 on a wheezy 64bits server, and the initial boot on nfsroot quickly goes into kernel panic:
>>
>> [   11.578824] dracut: Mounted root filesystem a.b.c.d:/srv/fai/wheezy/nfsroot-amd64
>> [   11.581213] aufs: module is from the staging directory, the quality is unknown, you have been warned
>> [   11.582117] aufs 3.2-20120827
>> warning: can't open /etc/fstab: No such file or directory
>> [   12.010629] aufs test_add:261:mount[366]: uid/gid/perm /live/image 65534/65534/0755, 0/0/01777
>> [   12.015811] type=1702 audit(1358959337.356:2): op=follow_link action=denied pid=371 comm="ls" path="/sysroot/initrd.img" dev="aufs" ino=149
>> [   12.015995] type=1702 audit(1358959337.356:2): op=follow_link action=denied pid=371 comm="ls" path="/sysroot/vmlinuz" dev="aufs" ino=165
>> /init: 42://lib/dracut/hooks/pre-pivot/50mount-usr.sh: cannot open /sysroot/etc/fstab: No such file
>> [   12.260523] dracut: Switching root
>> pcbind: rpcbind terminating on signal. Restart with "rpcbind -u"
>> switch_root: failed to execute /sbin/init: Not a directory
>> [   12.262090] Kernel panic - not syncing: attempting to kill init!
>>
>>
>> nfsroot has been successfully built using fai-chboot -SFv, and only contains an empty /etc/fstab, and no /sysroot directory or link.
>>
>> I initially thought that the problem was caused by nfs4 use of nobody:nogroup to mount the nfsroot, but forcing the use of nfs3 is useless.
>>
>> Could someone help me figure out what I am doing wrong?
>>
>> Thanks,
>>
>> -- 
>> Nicolas



More information about the linux-fai mailing list