diff --git a/Makefile.inc b/Makefile.inc index 3a721d2..930c8fc 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -10,6 +10,7 @@ MODULESDIR = $(DESTDIR)$(PREFIX)/lib/modules LIBEXECDIR = $(DESTDIR)$(PREFIX)/libexec/kpatch DATADIR = $(DESTDIR)$(PREFIX)/share/kpatch MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1 +DRACUTDIR = $(DESTDIR)$(PREFIX)/lib/dracut/modules.d/99kpatch .PHONY: all install clean .DEFAULT: all diff --git a/contrib/Makefile b/contrib/Makefile index 912a3ee..1d72d6d 100644 --- a/contrib/Makefile +++ b/contrib/Makefile @@ -1,7 +1,5 @@ include ../Makefile.inc -DRACUTDIR=/usr/lib/dracut/modules.d/99kpatch - all: install: all diff --git a/contrib/kpatch.spec b/contrib/kpatch.spec index 59966f7..74a0d6b 100644 --- a/contrib/kpatch.spec +++ b/contrib/kpatch.spec @@ -4,7 +4,7 @@ Version: 0.0.1 License: GPLv2 Group: System Environment/Kernel URL: http://github.com/dynup/kpatch -Release: 2%{?dist} +Release: 3%{?dist} Source0: %{name}-%{version}.tar.gz Requires: kmod bash @@ -80,6 +80,8 @@ rm -rf %{buildroot} %doc COPYING README.md %{_sbindir}/kpatch %{_mandir}/man1/kpatch.1* +%{_usr}/lib/dracut/modules.d/99%{name}/* + %files %{KVER} %defattr(-,root,root,-)