p2v: tests: Fix slow test ‘test-virt-p2v-pxe.sh’.

Since virt-builder Fedora 27 templates now use GPT, the root
filesystem has moved from /dev/sda3 to /dev/sda4.  /dev/sda3 is now a
swap device which could not be mounted as the root device, although
systemd unhelpfully hides the error unless you run qemu interactively.

I think this fixes commit a06e50e263.
This commit is contained in:
Richard W.M. Jones
2018-01-26 10:48:27 +00:00
parent ff80f294d3
commit 7021a234aa

View File

@@ -74,7 +74,7 @@ username="$(id -un)"
os="$(cd $d; pwd)"
# The Linux kernel command line.
cmdline="root=/dev/sda3 ro console=ttyS0 printk.time=1 p2v.server=10.0.2.2 p2v.port=$port p2v.username=$username p2v.identity=file:///var/tmp/id_rsa p2v.name=windows p2v.o=local p2v.os=$os"
cmdline="root=/dev/sda4 ro console=ttyS0 printk.time=1 p2v.server=10.0.2.2 p2v.port=$port p2v.username=$username p2v.identity=file:///var/tmp/id_rsa p2v.name=windows p2v.o=local p2v.os=$os"
# Run virt-p2v inside qemu.
$qemu \