Updates for 2014 FOSDEM talk.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 1 Feb 2014 08:40:49 +0000 (09:40 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 1 Feb 2014 08:40:49 +0000 (09:40 +0100)
2014-fosdem/builder.sh
2014-fosdem/rjones-libguestfs-2014-fosdem.odp
2014-fosdem/set-prompt [new file with mode: 0644]

index d767e15..a5cde06 100755 (executable)
@@ -3,7 +3,9 @@
 VIRT_BUILDER_SOURCE=file://$HOME/d/libguestfs/builder/website/index.asc
 export VIRT_BUILDER_SOURCE
 
-guests=( $(virt-builder -l | awk '{print $1}') )
+guests=( $(
+  virt-builder -l | awk '{print $1}'
+) )
 formats=( raw qcow2 )
 count=0
 
@@ -11,14 +13,16 @@ while true; do
     guest=${guests[$(($RANDOM % ${#guests[*]}))]}
     format=${formats[$(($RANDOM % ${#formats[*]}))]}
 
-    ((count++)); echo -e "\n*** Building guest # $count\n"
+    ((count++))
+    echo -e "\n*** Building guest # $count\n"
 
     virt-builder $guest --output $guest.img \
         --format $format \
         --no-sync \
         --hostname test$count.example.com \
         --timezone Europe/Brussels \
-        --write '/etc/motd:Welcome to FOSDEM 2014'
+        --write '/etc/motd:
+            Welcome to FOSDEM 2014'
 
     rm $guest.img; # Save space!
 done
index 6f84ef9..3feb959 100644 (file)
Binary files a/2014-fosdem/rjones-libguestfs-2014-fosdem.odp and b/2014-fosdem/rjones-libguestfs-2014-fosdem.odp differ
diff --git a/2014-fosdem/set-prompt b/2014-fosdem/set-prompt
new file mode 100644 (file)
index 0000000..d1db9b6
--- /dev/null
@@ -0,0 +1 @@
+export PS1='\$ '