# Anaconda? JPEG images?
@FEBOOTSTRAP_RUN@ initramfs -- rm -rf /usr/lib/anaconda-runtime
+# Don't need any firmware.
+@FEBOOTSTRAP_RUN@ initramfs -- rm -rf /lib/firmware
+
+# Don't need any keyboard maps.
+@FEBOOTSTRAP_RUN@ initramfs -- rm -rf /lib/kbd
+
# Modules take up nearly half of the image. It's a rough guess that
# we don't need many drivers (which take up most of the space).
(cd initramfs && find lib/modules/*/kernel \
# be our script, not the real init.
#@FEBOOTSTRAP_RUN@ initramfs -- ln -f /init /sbin/init
-# Copy the daemon into the filesystem.
-@FEBOOTSTRAP_INSTALL@ initramfs daemon/guestfsd /sbin/guestfsd 0755 root.root
-
-# Generate final image.
-@FEBOOTSTRAP_TO_INITRAMFS@ initramfs > $output-t
-mv $output-t $output
-ls -lh $output
ls -lh $koutput
+
+# Now directly run the update script to copy/update the daemon in the
+# initramfs.
+cd appliance && bash update.sh