summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
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:04:10 +0100
commit2b8dd4ab6dd1d9b2ba791fe346098554613b91d1 (patch)
treeaa0bed4b655d7fe605cc34c934055e41f58dd814 /scripts/runqemu
parent5cd9d19813d8cbe2e74d4fdbd424b6a15ca828c8 (diff)
downloadpoky-2b8dd4ab6dd1d9b2ba791fe346098554613b91d1.tar.gz
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. (From OE-Core rev: 73a54595d8ddf237d685ea9cb46df0cecac0280d) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-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):
990 # Use '%s' since they are integers 990 # Use '%s' since they are integers
991 os.putenv(k, '%s' % v) 991 os.putenv(k, '%s' % v)
992 992
993 self.unfs_opts="nfsvers=3,port=%s,udp,mountport=%s" % (nfsd_port, mountd_port) 993 self.unfs_opts="nfsvers=3,port=%s,tcp,mountport=%s" % (nfsd_port, mountd_port)
994 994
995 # Extract .tar.bz2 or .tar.bz if no nfs dir 995 # Extract .tar.bz2 or .tar.bz if no nfs dir
996 if not (self.rootfs and os.path.isdir(self.rootfs)): 996 if not (self.rootfs and os.path.isdir(self.rootfs)):