make.sh calls update.sh directly.
authorRichard Jones <rjones@trick.home.annexia.org>
Sat, 13 Jun 2009 09:59:51 +0000 (10:59 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Sat, 13 Jun 2009 09:59:51 +0000 (10:59 +0100)
Combine the common tail of make.sh and update.sh so that make
just calls update at the end directly.  The effect is the same.

appliance/make.sh.in

index b39b13d..cab8813 100755 (executable)
@@ -169,11 +169,8 @@ rm init.new
 # be our script, not the real init.
 #@FEBOOTSTRAP_RUN@ initramfs -- ln -f /init /sbin/init
 
 # 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
 ls -lh $koutput
+
+# Now directly run the update script to copy/update the daemon in the
+# initramfs.
+cd appliance && bash update.sh