From: He Zhe Date: Fri, 27 Mar 2020 07:33:11 +0000 (+0800) Subject: runqemu: Change nfs to mount via TCP X-Git-Tag: 2020-04-dunfell~81 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=73a54595d8ddf237d685ea9cb46df0cecac0280d;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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)):