mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user