libguestfs-winsupport/tests/basic-test.sh
Richard W.M. Jones 0f0caa02fe Requires fuse-libs
resolves: RHEL-46563

Try to fix libvirt in the gating test.
2024-07-08 15:47:54 +01:00

19 lines
267 B
Bash
Executable File

#!/bin/bash -
set -e
set -x
# Fix libvirt.
systemctl restart libvirtd
# Create an NTFS filesystem and mount.
guestfish -vx <<EOF
set-program "virt-foo"
sparse test.img 1G
run
part-disk /dev/sda mbr
mkfs ntfs /dev/sda1
mount /dev/sda1 /
touch /tested
umount-all
EOF