21
General TC Talk / Re: Bulding the kernel from source and making an ISO?
« Last post by Juanito on February 28, 2026, 06:37:06 AM »You don't particularly need to rename bzImage to vmlinuz as long as your boot loader references bzImage.
To unpack modules.gz:
replace the modules under /tmp/extract/lib/modules with your newly compiled modules and add the additional ones
Move your original modules.gz from /tmp to a safe place
Pack things up again:
To unpack modules.gz:
Code: [Select]
cp modules.gz /tmp
cd /tmp
mkdir extract
cd extract
zcat /tmp/modules.gz | sudo cpio -i -H newc -dreplace the modules under /tmp/extract/lib/modules with your newly compiled modules and add the additional ones
Move your original modules.gz from /tmp to a safe place
Pack things up again:
Code: [Select]
find | sudo cpio -o -H newc | gzip -2 > ../modules.gz
cd /tmp
advdef -z4 modules.gz
Recent Posts