So, after reading the scripts that LTSP 5 is using to generate its initrd.img file, I've figured out that it copies most of its binaries from
/usr/lib/klibc.
That's a nice collection of vitally necessary applications, but the "rpc failed: 2" problem can locally be reproduced on the LTSP 5 host, by trying to use the klibc's nfsmount. For example:
Code: Select all
/usr/lib/klibc/bin/nfsmount $NFS_SOURCE $NFS_TARGET
Spits out the same error. great. Nice to reproduce and check *if* the LTSP client would even remotely be able to mount NFS with the binaries it has in its initrd image.
things I've tried:
1) don't use bin/nfsmount, but bin/mount with "-t nfs" argument:
Won't work, because klibc's mount is too slim to support non-native filesystems. *sigh*
2) Use the host's /bin/mount instead of klibc's:
Also fails, because for "mount -t nfs" calls external binaries in "/sbin/" for the filesystem you're trying to mount.
e.g.:
"/bin/mount -t nfs" calls "/sbin/mount.nfs" and forwards some arguments.
3) So I've copied "/sbin/mount.nfs*" from the host to the /sbin/ folder of the initrd image:
Now that worked, but in the end I've used "/sbin/mount.nfs" directly to avoid further troubles with "/bin/mount" on the client.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!