Reduce size of title page.
[libguestfs-talks.git] / 2021-pipelines / run
1 #!/bin/bash -
2 # Run the talk.
3
4 set -e
5
6 # Avoid GNOME keyring stupidity
7 export GNOME_KEYRING_CONTROL=
8 export GNOME_KEYRING_PID=
9
10 # No proxy.
11 unset http_proxy
12 unset https_proxy
13 unset ftp_proxy
14
15 # Don't use libvirt.
16 export LIBGUESTFS_BACKEND=direct
17
18 # Pre-cache libguestfs appliance.
19 guestfish -a /dev/null run &
20
21 # Clean up after previous run.
22 talkdir=$PWD ./restore
23
24 # Check environment.
25 if [ ! -d /mnt/scratch/pipes ]; then
26     echo "Error: no remote server."
27     exit 1
28 fi
29 if [ ! -f /mnt/scratch/pipes/fedora-33.img ]; then
30     echo "Error: no remote file."
31     exit 1
32 fi
33
34 # Precreate any files necessary.
35 if [ ! -f fedora-33.img ]; then
36     virt-builder fedora-33
37 fi
38
39 # Run techtalk.
40 #techtalk-pse "$@"
41 ~/d/techtalk-pse/techtalk-pse "$@"