From c72c6fcebbd2df4ac9985011787509e98c85eb62 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Oct 19 2021 09:31:07 +0000 Subject: rpm/kernel-obs-build.spec.in: reduce initrd functionality For building in OBS, we always build inside a virtual machine that gets a new, freshly created scratch filesystem image. So we do not need to handle fscks because that ain't gonna happen, as well as not we do not need to handle microcode update in the initrd as these only can be run on the host system anyway. We can also strip and hardlink as an additional optimisation that should not significantly hurt. --- diff --git a/rpm/kernel-obs-build.spec.in b/rpm/kernel-obs-build.spec.in index 6d1353c..e4c4cf2 100644 --- a/rpm/kernel-obs-build.spec.in +++ b/rpm/kernel-obs-build.spec.in @@ -149,6 +149,7 @@ ROOT="" -k /boot/%{kernel_name}-*-default -M /boot/System.map-*-default -i /tmp/initrd.kvm -B %else dracut --reproducible --host-only --no-hostonly-cmdline \ + --no-early-microcode --nofscks --strip --hardlink \ --drivers="$KERNEL_MODULES" --force /tmp/initrd.kvm \ `echo /boot/%{kernel_name}-*%{kernel_flavor} | sed -n -e 's,[^-]*-\(.*'%{kernel_flavor}'\),\1,p'` %endif