]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: Change nfs to mount via TCP
authorHe Zhe <zhe.he@windriver.com>
Fri, 27 Mar 2020 07:33:11 +0000 (15:33 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Mar 2020 19:03:30 +0000 (20:03 +0100)
Since kernel commit b24ee6c64ca7 ("NFS: allow deprecation of NFS UDP protocol"),
NFS UDP has been disabled by default due to the potential data corruption caused
by fragmentation during high loads. So now we cannot boot up with nfs mode and
default kernel.

We'd better turn to use TCP accordingly.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu

index 6f24093d77c7ff3a32cecaf72e941e91773b5a5c..6a77e3db9a07121f55241e1d343108938b51ec25 100755 (executable)
@@ -990,7 +990,7 @@ class BaseConfig(object):
             # Use '%s' since they are integers
             os.putenv(k, '%s' % v)
 
-        self.unfs_opts="nfsvers=3,port=%s,udp,mountport=%s" % (nfsd_port, mountd_port)
+        self.unfs_opts="nfsvers=3,port=%s,tcp,mountport=%s" % (nfsd_port, mountd_port)
 
         # Extract .tar.bz2 or .tar.bz if no nfs dir
         if not (self.rootfs and os.path.isdir(self.rootfs)):