qemu-img create -f qcow2 -o backing_file=../images/fedora.img test.img
-cat <<'EOF' > guestfish
+# Provide alternate 'virt-inspector' and 'guestmount' binaries
+# that run the just-built programs.
+
+cat <<'EOF' > virt-inspector
+#!/bin/sh -
+../run ../inspector/virt-inspector "$@"
+EOF
+chmod +x virt-inspector
+cat <<'EOF' > guestmount
#!/bin/sh -
-../run ../fish/guestfish "$@"
+../run ../fuse/guestmount "$@"
EOF
-chmod +x guestfish
+chmod +x guestmount
+
PATH=.:$PATH
./virt-sysprep -a test.img
-rm -f test.img guestfish
+rm -f test.img virt-inspector guestmount