Red Hat Bugzilla – Bug 444973
nash nfsmount doesn't respect mount options + proposed patch
Last modified: 2010-10-22 20:40:56 EDT
Created attachment 306802 [details]
A patch which will hopefully fix the issue.
I don't think the patch posted is quite correct; can the customer test with
this attached patch instead?
------- Comment From firstname.lastname@example.org 2008-06-02 14:10 EDT-------
I just applied Peter's patch and I got a undefined variable error.
I'll attach a patch which fixes this small problem.
I applied this patch on top of mkinitrd-220.127.116.11-28.src.rpm
The patch works for comma-separated mount options. But it doesn't work for
proto=tcp nor for proto=udp
proto=tcp,nolock would end up with the following error:
Mounting root filesystem.
unknown nfs mount parameter: proto=0
As a result the nfsroot filesystem cannot be mounted.
The nfs manpage says that both, "proto=tcp" and "tcp" can be used as mount option.
Therefore proto=tcp or proto=udp should also be handled. I'll attach a patch
which fixes this issue.
Created attachment 307544 [details]
patch witch fixes compiler error - undefined variable
Created attachment 307545 [details]
patch to handle nfs "proto=" mount option correctly
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
This should be resolved in mkinitrd-18.104.22.168-29 .
Problem doesn't exist anymore. Bug is fixed. Thanks!
[root@localhost ~]# cat /proc/mounts
rootfs / rootfs rw 0 0
10.0.0.1:/rhel5u3beta / nfs rw,vers=3,rsize=32768,wsize=32768,hard,nolock,proto=tcp,timeo=70,retrans=3,sec=sys,addr=10.64.0.1 0 0
*** Bug 471115 has been marked as a duplicate of this bug. ***
Can you please push the latest fix for this issue (http://git.fedoraproject.org/git/?p=mkinitrd;a=commit;h=069a9a57081706f42cce249837a0619c9b8aa535) to F10? I'd prefer not to have to patch mkinitrd again.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
*** Bug 240745 has been marked as a duplicate of this bug. ***