#!/bin/bash - # Run the talk. set -e # Avoid GNOME keyring stupidity export GNOME_KEYRING_CONTROL= export GNOME_KEYRING_PID= # No proxy. #unset http_proxy #unset https_proxy #unset ftp_proxy # Check the files are precreated. if [ ! -f 2000-loop-mounting.d/fedora-29.img ]; then pushd 2000-loop-mounting.d virt-builder fedora-29 popd fi if [ ! -f 3000-xz-compressed.d/Fedora-Cloud-Base-29-1.2.x86_64.raw.xz ]; then pushd 3000-xz-compressed.d wget https://download.fedoraproject.org/pub/fedora/linux/releases/29/Cloud/x86_64/images/Fedora-Cloud-Base-29-1.2.x86_64.raw.xz popd fi # Create mountpoint. mkdir -p /tmp/mnt # Check nbd module is loaded. sudo modprobe nbd # Remove any old mounts, nbdkit processes etc. ./restore # Run techtalk. techtalk-pse #~/d/techtalk-pse/techtalk-pse ./restore