summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-09-26 15:15:20 +0200
committerDave Reisner <dreisner@archlinux.org>2013-09-26 19:29:53 +0200
commit344c27a8b56a4aa8bd168f98285165c3fc87cba3 (patch)
tree418302b00acb9316fd6a5268b753bd5965342b2e /Makefile
parent45f176893593aca61f2191b41b24971469f13fce (diff)
downloadmkinitcpio-344c27a8b56a4aa8bd168f98285165c3fc87cba3.tar.gz
mkinitcpio-344c27a8b56a4aa8bd168f98285165c3fc87cba3.tar.xz
kernel-install: add hook
This will allow systemd's kernel-install script to generate and install an initrd as per the freedesktop boot loader specs. See kernel-install(8) for details. Notice that 'profiles' are not used. This will eventually be hooked up so that calling "make install" from a kernel build will do the right thing. Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 633dd63..1b933c9 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ DIRS = \
/usr/lib/initcpio/hooks \
/usr/lib/initcpio/install \
/usr/lib/initcpio/udev \
+ /usr/lib/kernel/install.d \
/usr/share/man/man8 \
/usr/share/man/man5 \
/usr/share/man/man1 \
@@ -48,6 +49,8 @@ install: all
cp -at $(DESTDIR)/usr/lib/initcpio hooks install
install -m644 -t $(DESTDIR)/usr/share/mkinitcpio mkinitcpio.d/*
+ install -m755 50-mkinitcpio.install $(DESTDIR)/usr/lib/kernel/install.d/50-mkinitcpio.install
+
install -m644 man/mkinitcpio.8 $(DESTDIR)/usr/share/man/man8/mkinitcpio.8
install -m644 man/mkinitcpio.conf.5 $(DESTDIR)/usr/share/man/man5/mkinitcpio.conf.5
install -m644 man/lsinitcpio.1 $(DESTDIR)/usr/share/man/man1/lsinitcpio.1