[Libguestfs] [p2v PATCH 2/4] make-physical-machine.sh: set root password to "p2v-phys"

Laszlo Ersek lersek at redhat.com
Fri Aug 26 11:39:06 UTC 2022


It helps with testing if we set the fake physical machine's password to a
simple known string, rather than letting virt-builder generate a complex,
random password.

Signed-off-by: Laszlo Ersek <lersek at redhat.com>
---
 make-physical-machine.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/make-physical-machine.sh b/make-physical-machine.sh
index fb42cda34fca..ff6db4940b51 100755
--- a/make-physical-machine.sh
+++ b/make-physical-machine.sh
@@ -32,6 +32,6 @@ trap cleanup EXIT
 output=$1
 outdir=$(dirname -- "$output")
 disk=$(mktemp -p "$outdir" physical-machine.tmp.XXXXXXXXXX)
-virt-builder --format raw -o "$disk" fedora-35
+virt-builder --format raw -o "$disk" --root-password password:p2v-phys fedora-35
 mv -- "$disk" "$output"
 disk=



More information about the Libguestfs mailing list