From: Richard W.M. Jones Date: Fri, 3 Jul 2009 09:47:10 +0000 (+0100) Subject: Add Debian appliance directory to the distfile. X-Git-Tag: 1.0.56~8^2~24 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=a67c46b4b2ff5a2c4305e39d1bb105b658ca5f89;p=libguestfs.git Add Debian appliance directory to the distfile. 'make dist' won't copy symlinks into the output file, so we have to add a rule to the Makefile to copy these. (Issue reported by Guido Gunther). --- diff --git a/appliance/Makefile.am b/appliance/Makefile.am index 03b2a7b..9de11cd 100644 --- a/appliance/Makefile.am +++ b/appliance/Makefile.am @@ -21,7 +21,11 @@ EXTRA_DIST = \ kmod.whitelist \ kmod.whitelist.in \ packagelist.in \ - init + init \ + debian/modules/install_kernel \ + debian/modules/y0_install-guestfsd \ + debian/modules/z99_final-cleanups \ + debian/debirf.conf.in # Build the root filesystem (appliance). # Currently this is arch-dependent, so it seems like putting it in @@ -92,6 +96,23 @@ $(SUPERMINIMG): supermin.incfiles supermin-make.sh endif +# Extra symlinks needed by the Debian appliance. +debirf_symlinks = \ + a0_motd \ + a0_prep-root \ + network \ + root-bashrc \ + serial-terminal \ + z0_remove-aptitude \ + z0_remove-locales \ + z1_clean-root +noinst_DATA = $(debirf_symlinks:%=debian/modules/%) +$(debirf_symlinks:%=debian/modules/%): stamp-debirf-modules +stamp-debirf-modules: + for f in $(debirf_symlinks); do \ + ln -sf /usr/share/debirf/modules/$$f debian/modules/$$f; \ + done + #---------------------------------------------------------------------- # Extra rules for testing the appliance.