summaryrefslogtreecommitdiff
path: root/lx-trainer-vm
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-03-19 09:12:36 +0100
committerJohn Ogness <john.ogness@linutronix.de>2018-03-19 09:12:36 +0100
commitf673240abc9a8602ae08095358d37750aa7143f0 (patch)
treeec6f019c4a01ac8385c1baa85e8525259d41a3d6 /lx-trainer-vm
parentcf3c6806c45788d299a3d177f50def20eb2701b6 (diff)
lx-trainer.img: force nfs server to version 2
In order for the qemu arm vm's to nfs root out-of-the-box, either the client must specify v3 or the server must restrict itself to version 2. Rather than expecting special arguments from the client, force the lx-trainer image to use nfs server version 2. Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'lx-trainer-vm')
-rw-r--r--lx-trainer-vm/lx-trainer-vm.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/lx-trainer-vm/lx-trainer-vm.xml b/lx-trainer-vm/lx-trainer-vm.xml
index 201a0b5..b0a5910 100644
--- a/lx-trainer-vm/lx-trainer-vm.xml
+++ b/lx-trainer-vm/lx-trainer-vm.xml
@@ -112,6 +112,8 @@
<command>echo 'GRUB_GFXPAYLOAD_LINUX=text' | tee -a /etc/default/grub</command>
<!-- disable tomoyo or else the system won't boot -->
<command>sed -i -e 's/security=tomoyo/security=no-tomoyo/' /etc/default/grub</command>
+ <!-- force nfsver 2 for nfsboot via qemu -->
+ <command>sed -i -e 's/RPCNFSDCOUNT=8/RPCNFSDCOUNT="8 --nfs-version 2"/' /etc/default/nfs-kernel-server</command>
<!-- setup german timezone, locale, keyboard -->
<command>echo 'Europe/Berlin' | tee /etc/timezone</command>
<command>cp -f /usr/share/zoneinfo/Europe/Berlin /etc/localtime</command>