Comment 4 for bug 668429

Revision history for this message
maxim (maximn) wrote :

This is so close to working.

Using releases such as 12.04, and the daily build of quantal (http://cdimage.ubuntu.com/daily-live/current/) as of today, the mount.cifs application is present in the initramfs.

However, there is an authentication error that presents itself and prevents a mount from occurring. This message appears just before casper tries to mount the CIFS share:

FS-Cache: Netfs 'cifs' registered for caching
CIFS VFS: default security mechanism requested. The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3
CIFS VFS: Error -2 during NTLM authentication
CIFS VFS: Send error in SessSetup= -2
CIFS VFS: cifs_mount failt w/return code= -2

The mount that happens shortly after is not successful, and mount.cifs reports "No such file or directory." The error is misleading as to the true cause.

After being dumped to the initramfs shell, manual attempts to mount.cifs the share return the error:
CIFS VFS: mdfour: Crypto md4 allocation error -2

CIFS VFS: Error -2 during NTLM authentication
CIFS VFS: Send error in SessSetup = -2
CIFS VFS: cifs_mount failed w/return code = -2

This error appears to be hidden during the attempt that the casper script makes and isn't displayed on the screen.

Looking up md4 crypto on the net it seems to be a kernel module (md4.ko). I'm not familiar with it so I'm not sure what needs to be done in order to get it to work.

Here is the kernel/append line that I'm using with PXELINUX:
LABEL Ubuntu 12.10 desktop-amd64 (Live)
  kernel boot/ubuntu/12.10/desktop-amd64/vmlinuz
  append initrd=boot/ubuntu/12.10/desktop-amd64/initrd.lz boot=casper netboot=cifs nfsroot=//192.168.1.1/netboot$/ubuntu/12.10/desktop-amd64 --