Bug#1061712: initramfs-tools: initramfs hooks do not seem to work on kernels above linux 6.5 (e.g. 6.6 or 6.7)

2024-01-28 Thread Safir Secerovic
Yes, this explains it.

I modified my omit kernel module hook and it works like a charm.

Thank You so much Bastian!
This bug report can be closed.

On Mon, Jan 29, 2024 at 12:02 AM Bastian Blank  wrote:

> Hi Safir
>
> On Sun, Jan 28, 2024 at 11:21:05PM +, Safir Secerovic wrote:
> > I have a custom hook that omits a kernel module being built into an
> initrd image.
>
> So it is a bug in your hook itself?
>
> > Until kernels 6.6 and above, the hook does not seem to take effect.
> > The module is not omitted from initrd image...
>
> So it matches modules in filename alone.  And since 6.6 the modules are
> compressed and named "module.ko.xz".
>
> Bastian
>
> --
> It is a human characteristic to love little animals, especially if
> they're attractive in some way.
> -- McCoy, "The Trouble with Tribbles", stardate 4525.6
>


Bug#1061712: initramfs-tools: initramfs hooks do not seem to work on kernels above linux 6.5 (e.g. 6.6 or 6.7)

2024-01-28 Thread Bastian Blank
Hi Safir

On Sun, Jan 28, 2024 at 11:21:05PM +, Safir Secerovic wrote:
> I have a custom hook that omits a kernel module being built into an initrd 
> image.

So it is a bug in your hook itself?

> Until kernels 6.6 and above, the hook does not seem to take effect.
> The module is not omitted from initrd image...

So it matches modules in filename alone.  And since 6.6 the modules are
compressed and named "module.ko.xz".

Bastian

-- 
It is a human characteristic to love little animals, especially if
they're attractive in some way.
-- McCoy, "The Trouble with Tribbles", stardate 4525.6



Bug#1061712: initramfs-tools: initramfs hooks do not seem to work on kernels above linux 6.5 (e.g. 6.6 or 6.7)

2024-01-28 Thread Safir Secerovic
Package: initramfs-tools
Version: 0.142
Severity: important

I have a custom hook that omits a kernel module being built into an initrd 
image.
Until kernels 6.6 and above, the hook does not seem to take effect.
The module is not omitted from initrd image...

On Linux kernel 6.5 and below the behaviour is as expected.

I am willing to provide further information and corroborate further.

Thank You for your efforts.

Cheers,
Safir Secerovic


-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 33M Jan 28 23:10 /boot/initrd.img-6.5.0-5-amd64
-rw-r--r-- 1 root root 37M Jan 28 23:10 /boot/initrd.img-6.6.13-amd64
-rw-r--r-- 1 root root 38M Jan 28 23:10 /boot/initrd.img-6.7-amd64
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-6.6.13-amd64 
root=UUID=c3ff1373-56d5-4688-a11c-6e60091817e4 ro quiet

-- resume
RESUME=UUID=e7f523b6-3618-4f79-ba28-773527575a14
-- /proc/filesystems
fuseblk
ext3
ext2
ext4
vfat

-- lsmod
Module  Size  Used by
ccm20480  3
rfcomm102400  16
snd_seq_dummy  12288  0
snd_hrtimer12288  1
snd_seq   114688  7 snd_seq_dummy
snd_seq_device 16384  1 snd_seq
cmac   12288  3
algif_hash 12288  1
algif_skcipher 12288  1
af_alg 36864  6 algif_hash,algif_skcipher
bnep   36864  2
btusb  86016  0
btrtl  32768  1 btusb
btintel57344  1 btusb
btbcm  24576  1 btusb
btmtk  16384  1 btusb
uvcvideo  147456  0
bluetooth1134592  44 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
videobuf2_vmalloc  20480  1 uvcvideo
uvc12288  1 uvcvideo
videobuf2_memops   16384  1 videobuf2_vmalloc
videobuf2_v4l2 36864  1 uvcvideo
videodev  368640  2 videobuf2_v4l2,uvcvideo
videobuf2_common   77824  4 
videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
mc 94208  4 
videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
cdc_acm49152  0
ecdh_generic   16384  2 bluetooth
iwlmvm589824  0
qrtr   57344  4
mac80211 1392640  1 iwlmvm
intel_rapl_msr 20480  0
intel_rapl_common  36864  1 intel_rapl_msr
edac_mce_amd   40960  0
libarc412288  1 mac80211
kvm_amd   184320  0
iwlwifi   544768  1 iwlmvm
kvm  1363968  1 kvm_amd
snd_hda_codec_realtek   192512  1
snd_hda_codec_generic   114688  1 snd_hda_codec_realtek
ledtrig_audio  12288  1 snd_hda_codec_generic
irqbypass  12288  1 kvm
crc32_pclmul   12288  0
snd_hda_codec_hdmi 90112  2
snd_hda_intel  61440  3
ghash_clmulni_intel16384  0
sha512_ssse3   53248  1
snd_intel_dspcfg   36864  1 snd_hda_intel
snd_intel_sdw_acpi 16384  1 snd_intel_dspcfg
hid_multitouch 32768  0
sha256_ssse3   32768  0
binfmt_misc28672  1
cfg80211 1343488  3 iwlmvm,iwlwifi,mac80211
snd_hda_codec 225280  4 
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
sha1_ssse3 32768  0
snd_hda_core  147456  5 
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep  20480  1 snd_hda_codec
r8169 114688  0
ucsi_acpi  12288  0
snd_pcm   192512  4 
snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
nls_ascii  12288  1
sp5100_tco 16384  0
realtek40960  1
nls_cp437  16384  1
typec_ucsi 61440  1 ucsi_acpi
aesni_intel   360448  6
mdio_devres12288  1 r8169
snd_timer  53248  3 snd_seq,snd_hrtimer,snd_pcm
watchdog   49152  1 sp5100_tco
ideapad_laptop 57344  0
vfat   20480  1
fat   102400  1 vfat
crypto_simd16384  1 aesni_intel
cryptd 28672  3 crypto_simd,ghash_clmulni_intel
rapl   20480  0
pcspkr 12288  0
sparse_keymap  12288  1 ideapad_laptop
typec 110592  1 typec_ucsi
platform_profile   12288  1 ideapad_laptop
thunderbolt   487424  0
wmi_bmof   12288  0
snd   155648  18 
snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
ccp   147456  1 kvm_amd
libphy237568  3 r8169,mdio_devres,realtek
soundcore  16384  1 snd
i2c_piix4  32768  0
k10temp12288  0
rfkill 40960  11 iwlmvm,bluetooth,ideapad_laptop,cfg80211
roles  16384  1 typec_ucsi
battery28672  0
button 24576  0
i2c_hid_acpi   12