Hi.
Attached is a proposed solution to bug #10906: nfs filesystem entries do
not propagate from /etc/config/fstab to /etc/fstab making it difficult
or impossible to permanently add NFS file systems.
For lack of imagination the patch only copies the proposed solution by
the reporter of the bug. This issue could be handled in many other (and
more general ways), so if an other solution is desired please let me
know.
This is my first patch to OpenWRT, so please bare with me if I'm not
following etiquette here. I've tried to follow the patch submission
schema as well as I could, but if I've fallen short - just let me know.
Cheers,
Martin
--
Martin Leopold
http://www.leopold.dk/~martin
+45 2836 1438
Index: package/block-mount/files/mount.sh
===================================================================
--- package/block-mount/files/mount.sh (revision 36115)
+++ package/block-mount/files/mount.sh (working copy)
@@ -29,7 +29,11 @@
shift
local found_device=""
- found_device="$(libmount_find_device_by_id "$uuid" "$label" "$device" "$cfgdevice")"
+ if [ "$fstype" = "nfs" ]; then
+ found_device="$cfgdevice"
+ else
+ found_device="$(libmount_find_device_by_id "$uuid" "$label" "$device" "$cfgdevice")"
+ fi
if [ -n "$found_device" ]; then
if [ "$find_rootfs" != "1" ] || ( [ "$is_rootfs" -eq 1 ] || [ "$target" = "/" ] || [ "$target" = "/overlay" ] ); then
[ "$enabled_fsck" -eq 1 ] && {
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel