diff options
author | He Zhe <zhe.he@windriver.com> | 2020-03-27 15:33:11 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-29 20:03:30 +0100 |
commit | 73a54595d8ddf237d685ea9cb46df0cecac0280d (patch) | |
tree | 73fe0dbbbd5b4c68e46b83490c6a385040fa31aa /scripts/runqemu | |
parent | 70713df25b8ae27a21e53b0b9234567d7053800a (diff) | |
download | openembedded-core-contrib-73a54595d8ddf237d685ea9cb46df0cecac0280d.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.
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-x | scripts/runqemu | 2 |
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)): |