gztazmod.sh: Compress Linux kernel modules for SliTaz GNU/Linux.
kernel Linux 5.13.7-xanmod1 - CPU-X
XanMod Kernel
XanMod is a general-purpose Linux kernel distribution with custom settings and new features.
https://xanmod.org/
https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa#post-50214
$ modinfo ntfs3
filename: /lib/modules/5.15.94/kernel/fs/ntfs3/ntfs3.ko.xz
[..]
name: ntfs3
vermagic: 5.15.94 SMP preempt mod_unload
1.
linux/stuff/gztazmod.sh
#!/bin/sh
# gztazmod.sh: Compress Linux kernel modules for SliTaz GNU/Linux.
# 2007-2014 <pankso@slitaz.org> - GNU General Public License.
#
. /lib/libtaz.sh# We do our work in the kernel version modules directory.
if [ -z "$1" ] ; then
newline
echo "Usage: $(basename $0) path/to/kernel-version"
newline && exit 1
fi
https://cook.slitaz.org/index.cgi?stuff=linux/stuff/gztazmod.sh
2.
kernel-modules-5.15.94-x86_64-1.txz 2023-02-18 02:51 49M
kernel-generic-5.15.94-x86_64-1.txz 2023-02-18 02:30 8.1M
kernel-headers-5.15.94-x86-1.txz 2023-02-18 02:52 1.0M
kernel-huge-5.15.94-x86_64-1.txt 2023-02-18 02:27 636
kernel-huge-5.15.94-x86_64-1.txz 2023-02-18 02:27 12M
kernel-source-5.15.94-noarch-1.txz 2023-02-18 02:22 118M
http://slackware.nl/slackware/slackware64-15.0/patches/packages/linux-5.15.94
3.
# du -sh /lib/modules/5.15.94
308.8M /lib/modules/5.15.94
# ls /lib/modules/5.15.94/kernel/fs/ntfs3
ntfs3.ko
4.
# gztazmod.sh /lib/modules/5.15.94
Starting gztazmod.sh to build compressed kernel modules...
Searching all modules to compress them... [ Done ]
Building tmp.dep... [ Done ]
Destroying modules.dep... [ Done ]
Removing tmp.dep to modules.dep... [ Done ]
Kernel modules 5.15.94 are ready.
5.
# du -sh /lib/modules/5.15.94
71.8M /lib/modules/5.15.94
# ls /lib/modules/5.15.94/kernel/fs/ntfs3
ntfs3.ko.xz
# modinfo /lib/modules/5.15.94/kernel/fs/ntfs3/ntfs3.ko.xz
filename: /lib/modules/5.15.94/kernel/fs/ntfs3/ntfs3.ko.xz
alias: fs-ntfs3
author: Konstantin Komarov
compression: Read-only lzx/xpress compression included
behaviour: Enabled Linux POSIX ACLs support
description: ntfs3 read/write filesystem
license: GPL
depends:
retpoline: Y
intree: Y
name: ntfs3
vermagic: 5.15.94 SMP preempt mod_unload
# cat /lib/modules/5.15.94/modules.builtin | wc -l
338
# cat /lib/modules/5.15.94/modules.dep | wc -l
4659