OSMC NFS mount
It looks like you need some systemd "magic" to successfully mount an NFS share on OSMC. Adding "x-systemd.automount,noauto" to the mount options in /etc/fstab did the trick for me.
sudo su -
mkdir /mnt/tmp
mkdir /mnt/nfs
mount /dev/sda1 /mnt/tmp
mount 10.0.0.10:/diskless/ubuntu /mnt/nfs
cp -a /mnt/tmp/* /mnt/nfs/
chroot /mnt/nfs
mount -t proc proc proc
vi etc/initramfs-tools/initramfs.conf
BOOT=nfs
update-initramfs -u
default 0
timeout 10
title=Diskless Ubuntu
root (nd)
kernel /diskless/tv/boot/vmlinuz-2.6.20-15-generic ip=dhcp root=/dev/nfs nfsroot=10.0.0.10:/diskless/tv ro quiet splash
initrd /diskless/tv/boot/initrd.img-2.6.20-15-generic
# /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
/dev/nfs / nfs defaults 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.30
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.1
[*] Default bootloader kernel arguments (ip=dhcp root=/dev/nfs nfsroot=10.0.0.10:/diskless/sunblade)
[*] IP: kernel level autoconfiguration
[*] IP: DHCP support
[*] IP: BOOTP support
[*] IP: RARP support
<*> NFS file system support
[*] Provide NFSv3 client support
[*] Root file system on NFS
make(the resulting tftpboot.img will be in arch/sparc64/boot/tftpboot.img)
make modules_install
make tftpboot.img ROOT_IMG=/dev/null
host sunblade {
hardware ethernet 00:03:BA:08:12:34;
fixed-address 10.0.0.30;
always-reply-rfc1048 on;
filename "sunblade/boot/tftpimage-2.6.16.16";
}
boot net:dhcpin the Open Boot prompt. When you are happy with it, you can set it as default:
setenv boot-device net:dhcp cdrom disk net