| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/initramfs-tools/hooks/ |
Upload File : |
#!/bin/sh -e
# Copy the compatibility symlinks until initramfs-tools will be converted
# to use the kmod program.
if [ "$1" = "prereqs" ]; then exit 0; fi
. /usr/share/initramfs-tools/hook-functions
copy_exec /usr/bin/kmod
cp -aZ /usr/sbin/modprobe /usr/sbin/rmmod "$DESTDIR/usr/sbin/"
mkdir -p "$DESTDIR/usr/lib/modprobe.d/"
if [ "$(echo /usr/lib/modprobe.d/*)" != "/usr/lib/modprobe.d/*" ]; then
cp -aZ /usr/lib/modprobe.d/* "$DESTDIR/usr/lib/modprobe.d/"
fi
kconfig_yes() {
[ -e "/boot/config-$version" ] || return 1
egrep -q "^$1=y$" "/boot/config-$version" || return 1
return 0
}
# If CONFIG_MODULE_DECOMPRESS=n and compressed modules have been copied to
# the initramfs then also copy the library that kmod will use with dlopen(3)
# to uncompress them.
if ! kconfig_yes CONFIG_MODULE_DECOMPRESS; then
if [ "$(find $DESTDIR/lib/modules/ -name "*.xz")" ]; then
copy_exec /usr/lib/*-linux-gnu/liblzma.so.5
fi
if [ "$(find $DESTDIR/lib/modules/ -name "*.zst")" ]; then
copy_exec /usr/lib/*-linux-gnu/libzstd.so.1
fi
fi