- add dracut post script, to generate initrd.
authorRonan Le Martret <ronan@fridu.net>
Tue, 17 Dec 2013 10:41:25 +0000 (11:41 +0100)
committerRonan Le Martret <ronan@fridu.net>
Tue, 17 Dec 2013 10:41:25 +0000 (11:41 +0100)
Change-Id: I1916a9723eb078acbbe99a8e64ccca31c8918656

packaging/kernel-x86-generic.spec

index 9b0a2e5..93173ba 100644 (file)
@@ -56,6 +56,11 @@ Provides: kernel-uname-r = %{kernel_full_version}
 Requires(post): /usr/bin/ln
 Requires(post): /usr/bin/sort
 Requires(post): rpm
+
+Requires(post): /usr/sbin/depmod
+Requires(post): /usr/bin/dracut
+Requires(post): /usr/bin/kmod
+
 Requires(postun): /usr/bin/ln
 Requires(postun): /usr/bin/sed
 Requires(postun): rpm
@@ -228,6 +233,8 @@ else
        fi
 fi
 
+/usr/bin/dracut /boot/initrd-%{kernel_full_version}.img %{kernel_full_version}
+
 %post devel
 if [ -x /usr/sbin/hardlink ]; then
        cd /usr/src/kernels/%{kernel_full_version}