summaryrefslogtreecommitdiffstats
path: root/appliance/update.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'appliance/update.sh.in')
-rwxr-xr-xappliance/update.sh.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/appliance/update.sh.in b/appliance/update.sh.in
index 4fbd6517..01e22b60 100755
--- a/appliance/update.sh.in
+++ b/appliance/update.sh.in
@@ -16,8 +16,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-# Update the daemon inside an existing initramfs. Avoids the
-# timeconsuming rebuild.
+# Update the init script or daemon inside an existing initramfs.
+# Avoids the timeconsuming rebuild.
unset CDPATH
@@ -27,6 +27,9 @@ if [ "@DIST@" = "REDHAT" ]; then
cd @top_builddir@
output=appliance/initramfs.@REPO@.@host_cpu@.img
+ # Create the init script.
+ @FEBOOTSTRAP_INSTALL@ initramfs appliance/init /init 0755 root.root
+
# Copy the daemon into the filesystem.
@FEBOOTSTRAP_INSTALL@ initramfs daemon/guestfsd /sbin/guestfsd 0755 root.root