damentz / liquorix-package

Liquorix Debian Package
https://liquorix.net
GNU General Public License v2.0
285 stars 23 forks source link

initramfs-tools custom hook fails on liquorix kernel image #159

Closed linuxazo closed 7 months ago

linuxazo commented 7 months ago

Dear Maintainer,

I have a custom initramfs-tools hook on Debian which works on Debian stock kernel images, as well as on Xanmod. However, my omit hook fails to delete/remove the amdgpu.ko or amdgpu.ko.xz kernel module from initrd image in case of Liquorix kernel image.

Please advise. Thank You

Attached is the hook (/etc/initramfs-tools/hooks/omit): omit.zip

damentz commented 7 months ago

Can you show how it fails? Any output, error lines, log files would be appreciated.

But looking at your script, I think I already see the problem. Liquorix recently switched to Zstandard compression over XZ due to a bug that Debian no longer supports XZ compressed kernels in Trixie and beyond. You need to also look for files ending in .zst.

Or rather, replace:

OMIT_DRIVERS="amdgpu.ko amdgpu.ko.xz"

With

OMIT_DRIVERS="amdgpu.ko amdgpu.ko.xz amdgpu.ko.zst"

EDIT: Ideally, you'd want to just look for any variation of extension after the .ko using a wildcard, compression technologies change every 5-10 years.

linuxazo commented 7 months ago

Dear Developer @damentz , yup, this is more than enough. For newer Debian kernels, I use .xz, for Liquorix, I see it's .zst, and ultimately, as you proposed, it is better to use * wildcard for any and all cases.

Thank You so much!