void-mklive icon indicating copy to clipboard operation
void-mklive copied to clipboard

Custom kernel version

Open DBLouis opened this issue 5 years ago • 4 comments
trafficstars

The custom kernel version option -v linux<version> is not working as expected. To use the linux-lts package, I had to pass -p linux4.14 and -v linux4.14. Is this expected?

DBLouis avatar Aug 16 '20 14:08 DBLouis

it does work as expected: https://github.com/void-linux/void-mklive/blob/master/mklive.sh.in#L377 see how it's appended to PACKAGE_LIST

i use this feature and it works

q66 avatar Aug 16 '20 15:08 q66

I just tried again:

sudo ./mklive.sh -b "base-minimal" -p "linux-lts" -v linux-lts
...
[4/9] Generating initramfs image (xz)...
dracut: Cannot find module directory /lib/modules/4.14_2/
dracut: and --no-kernel was not specified
ERROR: Failed to generate the initramfs

What am I doing wrong?

DBLouis avatar Aug 16 '20 15:08 DBLouis

hm, not quite sure

it shouldn't even let you proceed this far since the script expects a kernel package in format linux<numerical version>

q66 avatar Aug 16 '20 15:08 q66

oh, i see why - it's because the check uses * so it technically matches as long as there is linux in the name

in your case, it doesn't work because if you pass linux-lts, which is a metapackage, it'll break, because it doesn't have a specific kernel version (say, 4.14.192), but only 4.14, and the script attempts using that to generate the initramfs and it won't work

q66 avatar Aug 16 '20 15:08 q66

fixed by 68a35230cc2ab226646ba0f07a7d0e08b1bf586e

classabbyamp avatar Apr 08 '23 01:04 classabbyamp