flamegraphs: Improve the title page
[libguestfs-talks.git] / 2019-fosdem / 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 # Check the files are precreated.
16 if [ ! -f 2000-loop-mounting.d/fedora-29.img ]; then
17     pushd 2000-loop-mounting.d
18     virt-builder fedora-29
19     popd
20 fi
21
22 if [ ! -f 3000-xz-compressed.d/Fedora-Cloud-Base-29-1.2.x86_64.raw.xz ]; then
23     pushd 3000-xz-compressed.d
24     wget https://download.fedoraproject.org/pub/fedora/linux/releases/29/Cloud/x86_64/images/Fedora-Cloud-Base-29-1.2.x86_64.raw.xz
25     popd
26 fi
27
28 # Create mountpoint.
29 mkdir -p /tmp/mnt
30
31 # Check nbd module is loaded.
32 sudo modprobe nbd
33
34 # Remove any old mounts, nbdkit processes etc.
35 ./restore
36
37 # Run techtalk.
38 techtalk-pse
39 #~/d/techtalk-pse/techtalk-pse
40
41 ./restore