virt-v2v 2024: Images of news headlines
[libguestfs-talks.git] / 2021-pipelines / run
index 4fadab1..c7a1959 100755 (executable)
@@ -12,14 +12,29 @@ unset http_proxy
 unset https_proxy
 unset ftp_proxy
 
+# Don't use libvirt.
+export LIBGUESTFS_BACKEND=direct
+
+# Pre-cache libguestfs appliance.
+guestfish -a /dev/null run &
+
 # Clean up after previous run.
 talkdir=$PWD ./restore
 
 # Check environment.
-#(nothing)
+if [ ! -d /mnt/scratch/pipes ]; then
+    echo "Error: no remote server."
+    exit 1
+fi
+if [ ! -f /mnt/scratch/pipes/fedora-33.img ]; then
+    echo "Error: no remote file."
+    exit 1
+fi
 
 # Precreate any files necessary.
-#(nothing)
+if [ ! -f fedora-33.img ]; then
+    virt-builder fedora-33
+fi
 
 # Run techtalk.
 #techtalk-pse "$@"