#unset ftp_proxy
# Check the files are precreated.
-if [ ! -f 1000-loop-mounting.d/fedora-29.img ]; then
- pushd 1000-loop-mounting.d
+if [ ! -f 2000-loop-mounting.d/fedora-29.img ]; then
+ pushd 2000-loop-mounting.d
virt-builder fedora-29
popd
fi
-if [ ! -f 2000-xz-compressed.d/Fedora-Cloud-Base-29-1.2.x86_64.raw.xz ]; then
- pushd 2000-xz-compressed.d
+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
-if [ ! -f 2200-partitioning.d/boot.img ]; then
- guestfish --ro -a 1000-loop-mounting.d/fedora-29.img -i <<EOF
-download /dev/sda2 2200-partitioning.d/boot.img
-download /dev/sda3 2200-partitioning.d/swap.img
-# Save to hidden file.
-download /dev/sda4 2200-partitioning.d/.root.img
-EOF
-fi
-
-# Restore original root.img before each run.
-if ! cmp -s 2200-partitioning.d/{.root.img,root.img}; then
- cp 2200-partitioning.d/{.root.img,root.img}
-fi
-
# Create mountpoint.
mkdir -p /tmp/mnt
./restore
# Run techtalk.
-#techtalk-pse
-~/d/techtalk-pse/techtalk-pse
+techtalk-pse
+#~/d/techtalk-pse/techtalk-pse
./restore