Make the supermin appliance include local augeas lenses
authorMatthew Booth <mbooth@redhat.com>
Thu, 27 May 2010 14:47:51 +0000 (15:47 +0100)
committerRichard Jones <rjones@redhat.com>
Thu, 27 May 2010 15:30:30 +0000 (16:30 +0100)
appliance/Makefile.am

index e1c9ef6..2df8a2b 100644 (file)
@@ -90,6 +90,9 @@ stamp-supermin: $(INITRAMFSIMG)
        mkdir -p supermin.d
        rm -f $@ supermin.d/base.img supermin.d/hostfiles
        febootstrap-to-supermin $(top_builddir)/initramfs supermin.d/base.img supermin.d/hostfiles
        mkdir -p supermin.d
        rm -f $@ supermin.d/base.img supermin.d/hostfiles
        febootstrap-to-supermin $(top_builddir)/initramfs supermin.d/base.img supermin.d/hostfiles
+       if grep -q /usr/share/augeas/lenses supermin.d/hostfiles; then \
+               echo "./usr/share/augeas/lenses/*.aug" >> supermin.d/hostfiles; \
+       fi
        touch $@
 
 supermin.d/daemon.img: $(INITRAMFSIMG)
        touch $@
 
 supermin.d/daemon.img: $(INITRAMFSIMG)