Remote NFS share doesn't mount from UCI fstab
|Reported by:||fedel@…||Owned by:||developers|
|Priority:||normal||Milestone:||Barrier Breaker 14.07|
|Component:||base system||Version:||Backfire 10.03.1 RC3|
This section in /etc/config/fstab:
config mount option target /mnt option device 192.168.1.1:/path option fstype nfs option options nolock option enabled 1
would not mount the remote filesystem, even though the equivalent mount command submitted on the command line would work. The reason seems to be in /lib/functions/mount.sh around line 33:
found_device="$(libmount_find_device_by_id "$uuid" "$label" "$device" "$cfgdevice")"
$found_device is empty for remote NFS share names in $cfgdevice.
One way to workaround this would be to extend /lib/functions/mount.sh like this:
if [ "$fstype" = "nfs" ]; then found_device="$cfgdevice" else found_device="$(libmount_find_device_by_id "$uuid" "$label" "$device" "$cfgdevice")" fi
Could this be fixed in the trunk?