From a67c46b4b2ff5a2c4305e39d1bb105b658ca5f89 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 3 Jul 2009 10:47:10 +0100 Subject: [PATCH] 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). --- appliance/Makefile.am | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) 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. -- 1.8.3.1