kernel.spec: is "Requires: initscripts" really needed?

Kay Sievers kay at vrfy.org
Thu Jul 18 22:52:04 UTC 2013


On Thu, 2013-07-18 at 20:27 +0200, Kay Sievers wrote:
> On Thu, Jul 18, 2013 at 8:14 PM, Bill Nottingham <notting at redhat.com> wrote:
> > Kay Sievers (kay at vrfy.org) said:
> >> when installing a kernel in a minimal system, it pulls in
> >> a bunch of otherwise not needed packages, because
> >> initscripts.rpm has a dependency on them. Any specific
> >> reason to keep that, or can we possibly drop it?
> >
> > The dependency was added for mkkerneldoth back in the day. If you remember
> > what that was, good for you.
> 
> Long before my time, I guess.
> 
> > So, in general, it's not needed.

Here is a patch to remove initscripts and udev from the spec file.

Thanks,
Kay


From: Kay Sievers <kay at vrfy.org>
Subject: [PATCH] Remove historical "Requires: initscrips"

On Thu, Jul 18, 2013 at 8:14 PM, Bill Nottingham <notting at redhat.com> wrote:
>> when installing a kernel in a minimal system, it pulls in
>> a bunch of otherwise not needed packages, because
>> initscripts.rpm has a dependency on them. Any specific
>> reason to keep that, or can we possibly drop it?
>
> The dependency was added for mkkerneldoth back in the day. If you remember
> what that was, good for you. So, in general, it's not needed.

Also remove package dependency on no longer existing udev.
---

 kernel.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel.spec b/kernel.spec
index d1d5a31..b64a999 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -452,7 +452,7 @@ Summary: The Linux kernel
 # problems with the newer kernel or lack certain things that make
 # integration in the distro harder than needed.
 #
-%define package_conflicts initscripts < 7.23, udev < 063-6, iptables < 1.3.2-1, ipw2200-firmware < 2.4, iwl4965-firmware < 228.57.2, selinux-policy-targeted < 1.25.3-14, squashfs-tools < 4.0, wireless-tools < 29-3
+%define package_conflicts iptables < 1.3.2-1, ipw2200-firmware < 2.4, iwl4965-firmware < 228.57.2, selinux-policy-targeted < 1.25.3-14, squashfs-tools < 4.0, wireless-tools < 29-3
 
 # We moved the drm include files into kernel-headers, make sure there's
 # a recent enough libdrm-devel on the system that doesn't have those.
@@ -462,7 +462,7 @@ Summary: The Linux kernel
 # Packages that need to be installed before the kernel is, because the %%post
 # scripts use them.
 #
-%define kernel_prereq  fileutils, module-init-tools >= 3.16-4, initscripts >= 8.11.1-1, systemd >= 203-2
+%define kernel_prereq  fileutils, module-init-tools >= 3.16-4, systemd >= 203-2
 %define initrd_prereq  dracut >= 027
 
 #
-- 
1.8.3.1




More information about the kernel mailing list