diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 26328e5b51..41b870c9f7 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -784,16 +784,12 @@ class BaseConfig(object): | |||
784 | all_instances.sort(key=int) | 784 | all_instances.sort(key=int) |
785 | self.nfs_instance = int(all_instances.pop()) + 1 | 785 | self.nfs_instance = int(all_instances.pop()) + 1 |
786 | 786 | ||
787 | mountd_rpcport = 21111 + self.nfs_instance | ||
788 | nfsd_rpcport = 11111 + self.nfs_instance | ||
789 | nfsd_port = 3049 + 2 * self.nfs_instance | 787 | nfsd_port = 3049 + 2 * self.nfs_instance |
790 | mountd_port = 3048 + 2 * self.nfs_instance | 788 | mountd_port = 3048 + 2 * self.nfs_instance |
791 | 789 | ||
792 | # Export vars for runqemu-export-rootfs | 790 | # Export vars for runqemu-export-rootfs |
793 | export_dict = { | 791 | export_dict = { |
794 | 'NFS_INSTANCE': self.nfs_instance, | 792 | 'NFS_INSTANCE': self.nfs_instance, |
795 | 'MOUNTD_RPCPORT': mountd_rpcport, | ||
796 | 'NFSD_RPCPORT': nfsd_rpcport, | ||
797 | 'NFSD_PORT': nfsd_port, | 793 | 'NFSD_PORT': nfsd_port, |
798 | 'MOUNTD_PORT': mountd_port, | 794 | 'MOUNTD_PORT': mountd_port, |
799 | } | 795 | } |
@@ -801,7 +797,7 @@ class BaseConfig(object): | |||
801 | # Use '%s' since they are integers | 797 | # Use '%s' since they are integers |
802 | os.putenv(k, '%s' % v) | 798 | os.putenv(k, '%s' % v) |
803 | 799 | ||
804 | self.unfs_opts="nfsvers=3,port=%s,mountprog=%s,nfsprog=%s,udp,mountport=%s" % (nfsd_port, mountd_rpcport, nfsd_rpcport, mountd_port) | 800 | self.unfs_opts="nfsvers=3,port=%s,udp,mountport=%s" % (nfsd_port, mountd_port) |
805 | 801 | ||
806 | # Extract .tar.bz2 or .tar.bz if no nfs dir | 802 | # Extract .tar.bz2 or .tar.bz if no nfs dir |
807 | if not (self.rootfs and os.path.isdir(self.rootfs)): | 803 | if not (self.rootfs and os.path.isdir(self.rootfs)): |
@@ -1006,7 +1002,7 @@ class BaseConfig(object): | |||
1006 | 1002 | ||
1007 | if self.fstype == 'nfs': | 1003 | if self.fstype == 'nfs': |
1008 | self.rootfs_options = '' | 1004 | self.rootfs_options = '' |
1009 | k_root = '/dev/nfs nfsroot=%s:%s,%s' % (self.nfs_server, self.rootfs, self.unfs_opts) | 1005 | k_root = '/dev/nfs nfsroot=%s:%s,%s' % (self.nfs_server, os.path.abspath(self.rootfs), self.unfs_opts) |
1010 | self.kernel_cmdline = 'root=%s rw highres=off' % k_root | 1006 | self.kernel_cmdline = 'root=%s rw highres=off' % k_root |
1011 | 1007 | ||
1012 | if self.fstype == 'none': | 1008 | if self.fstype == 'none': |