Compress the qcow2 file.
[supernested.git] / build-supernested.sh.in
index 7f7f71d..e5e2a49 100644 (file)
@@ -40,7 +40,7 @@ if [[ "$distro" =~ ^fedora- ]]; then
         grep
         qemu
         qemu-kvm-rhev
-        systemd
+        systemd-udev
         util-linux
     "
 elif [[ "$distro" =~ ^debian- ]]; then
@@ -70,8 +70,6 @@ cp excludefiles tmp-supermin.d/
 
 # Run the build step.
 echo "Building the full appliance ..."
-echo "If you see 'Permission denied' errors here, you can probably ignore"
-echo "them, but encourage your distro to stop using security-through-obscurity."
 "$supermin" --build --format ext2 tmp-supermin.d -o tmp-appliance.d
 
 # Add the kernel and initrd to the image.
@@ -90,6 +88,6 @@ EOF
 # Copy out the kernel, initrd and disk image.
 mv tmp-appliance.d/kernel .
 mv tmp-appliance.d/initrd .
-qemu-img convert -f raw tmp-appliance.d/root -O qcow2 "$output"
+qemu-img convert -f raw tmp-appliance.d/root -O qcow2 -c "$output"
 
 #rm -rf tmp-supermin.d tmp-appliance.d