summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appliance/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/appliance/Makefile.am b/appliance/Makefile.am
index 0abd698e..dec1c156 100644
--- a/appliance/Makefile.am
+++ b/appliance/Makefile.am
@@ -43,6 +43,7 @@ fs_DATA += kmod.whitelist
superminfs_DATA = \
supermin.d/base.img \
supermin.d/daemon.img \
+ supermin.d/init.img \
supermin.d/hostfiles
endif
@@ -101,6 +102,14 @@ supermin.d/daemon.img: $(INITRAMFSIMG)
(cd $(top_builddir)/initramfs && \
echo -e "sbin\nsbin/guestfsd" | cpio --quiet -o -H newc ) > $@-t
mv $@-t $@
+
+supermin.d/init.img: $(INITRAMFSIMG)
+ mkdir -p supermin.d
+ rm -f $@ $@-t
+ (cd $(top_builddir)/initramfs && \
+ echo -e "init\n" | cpio --quiet -o -H newc ) > $@-t
+ mv $@-t $@
+
endif
# Extra symlinks needed by the Debian appliance.