You are not logged in.
Pages: 1
How can the /lib/modules Slitaz kernel modules be uncompressed?
They are definitely not gzipped and unlzma doesn't seem to work,
so how do I uncompress them?
Offline
# busybox unlzma -c /pathto/module.ko.gz > module.ko
Offline
Thank you Pascal.....how can you go about uncompressing the whole /lib/modules/ sudirectories
in one shot? how do you do it recursively?
Offline
And the purpose behind this is...? They work perfectly fine with modprobe compressed.
Offline
@Trixar-za
I'm experimenting with linux live scripts creating a system that lives on aufs compressed by squashfs, which is why I need to uncompress these modules. I have just a few left in there anyway, as I'm customizing my slitaz specifically for my system only. There is usually a good reason for doing things, T..., try to keep an open mind.
Offline
Not that you'll get a better compression except with xz, but you could try reverse engineering this:
http://murga-linux.com/puppy/viewtopic.php?t=63971&sid=c6eb885e3cb7b2452e6df437b9b85acf
Since my find-fu isn't that good I can't help you generate the right one for it (could probably be done with sed or a perl script too)
Offline
Thanks....interesting thread.
I've tried renaming them all to *.ko.lzma with the intention of later using unlzma on them recursively with:
find /path/to/lib/modules/2.6.30.6-slitaz/kernel -type f -name '*.gz' -print0 | xargs -0 rename 's/.gz$/.lzma/'
(all in one line, one command)
to no avail....the command seems to work without error but nothing happens to the file extensions...
heck, not even a direct 'mv module.ko.gz module.ko.lzma' works there.....(why is that?)
I guess we'll have to wait for Pascal....he knows....I'm not in a rush with this anyway...
Offline
# find /path/to/lib/modules/2.6.30.6-slitaz/kernel -type f -name '*.ko.gz' | while read m; do busybox unlzma -c $m > ${m%.gz} && rm -f $m; done; depmod -a -b /path/to
Offline
Thank you so very much, Pascal! 
And can you also give the command for recompressing them back to their original form recursively?
This is very much appreciated.
Offline
Why not just use the script in the puppy linux thread?
Offline
http://hg.slitaz.org/wok/raw-file/f7460b4117e7/linux/stuff/gztazmod.sh
Offline
Thank you! This is excellent!

Offline
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]