From 8b9060e23d1267624644d99b343cb72c61ea4d0b Mon Sep 17 00:00:00 2001 From: Alvaro Gamez Machado Date: Fri, 21 Sep 2018 09:21:15 +0200 Subject: [PATCH] Add documented but missing initrd.img target --- Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.am b/Makefile.am index 5b416e8..8e9b7eb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,3 +20,9 @@ install-exec-hook: cd $(DESTDIR)$(pkglibexecdir) && \ mv -f tiny_initramfs init endif + +initrd.img: + mkdir -p initramfs/dev initramfs/proc initramfs/target || true + cp tiny_initramfs initramfs/init + strip initramfs/init + cd initramfs && find . | cpio -o --quiet -R 0:0 -H newc | gzip > ../initrd.img