File project.diff of Package static-initrd
--- packages-base.orig
+++ packages-base
@@ -1,16 +1,10 @@
base
btrfs
-crypt
-dm
dracut-systemd
fs-lib
i18n
kernel-modules
kernel-modules-extra
-lvm
-nvdimm
-qemu
-qemu-net
resume
rngd
rootfs-block
@@ -23,5 +17,3 @@ systemd
systemd-initrd
terminfo
udev-rules
-usrmount
-virtiofs
\ No newline at end of file
--- static-initrd.changes.orig
+++ static-initrd.changes
@@ -1,4 +1,14 @@
-------------------------------------------------------------------
+Wed Jun 25 07:07:23 UTC 2025 - Valentin Lefebvre <valentin.lefebvre@suse.com>
+
+- Add kernel drivers in the configuration file for vanilla.
+
+-------------------------------------------------------------------
+Wed Jun 25 06:26:08 UTC 2025 - Valentin Lefebvre <valentin.lefebvre@suse.com>
+
+- Remove some unecessary packages from the base static initrd.
+
+-------------------------------------------------------------------
Fri May 23 22:01:38 UTC 2025 - Valentin Lefebvre <valentin.lefebvre@suse.com>
- Build all static dedicated initrd against each kernel flavors.
--- static-initrd.spec.orig
+++ static-initrd.spec
@@ -280,6 +280,7 @@ touch $conf_file
flavors=$(echo "%kernel_flavors" | tr "\n" " ")
for k_flavor in $flavors; do
uname="$(ls /usr/lib/modules/ | grep "${k_flavor}" | tail -n1)"
+ # Add modules to include in conf file
if [[ "$list_packages" != "" ]]; then
echo "dracutmodules+=\" \\" > "$conf_file"
while IFS= read -r line; do
@@ -295,6 +296,12 @@ for k_flavor in $flavors; do
echo "systemd-pcrphase \\" >> "$conf_file"
echo "tpm2-tss \\" >> "$conf_file"
fi
+ if [ "${k_flavor}" == "vanilla" ]; then
+ echo "\"" >> "$conf_file"
+ # Add drivers to include in conf file
+ echo "add_drivers+=\" \\" >> "$conf_file"
+ echo "sunrpc \\" >> "$conf_file"
+ fi
echo "\"" >> "$conf_file"
# Build the initramfs for each kernel flavor
dracut \