summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHe Zhe <zhe.he@windriver.com>2020-03-27 15:33:11 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-29 20:03:30 +0100
commit73a54595d8ddf237d685ea9cb46df0cecac0280d (patch)
tree73fe0dbbbd5b4c68e46b83490c6a385040fa31aa
parent70713df25b8ae27a21e53b0b9234567d7053800a (diff)
downloadopenembedded-core-contrib-73a54595d8ddf237d685ea9cb46df0cecac0280d.tar.gz
openembedded-core-contrib-73a54595d8ddf237d685ea9cb46df0cecac0280d.tar.bz2
openembedded-core-contrib-73a54595d8ddf237d685ea9cb46df0cecac0280d.zip
runqemu: Change nfs to mount via TCP
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>
-rwxr-xr-xscripts/runqemu2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 6f24093d77..6a77e3db9a 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -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)):