commit 09a6f3da1cc095f61023440f72dc08957e15e939
parent 34d6cb0b930b7852acd89ea93464345b47361487
Author: Jan Pobrislo <ccx@te2000.cz>
Date: Wed, 31 Dec 2025 07:01:09 +0000
setup kernel path to modprobe in postinstall
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/postinstall b/postinstall
@@ -124,6 +124,12 @@ setup_containers() {
execlineb -P ./config/s6-rc-source/containers/up || return $?
}
+setup_modprobe() {
+ if [[ -x "$current/command/modprobe" ]]
+ realpath "$current/command/modprobe" >/proc/sys/kernel/modprobe || return $?
+ fi
+}
+
# main function
postinstall() {
- cd $current
@@ -136,11 +142,13 @@ postinstall() {
- zf_mkdir -p $SETUP_DIR
- setup_fileset
+ - setup_modprobe
if (( $# )); then
- setup_rc
- setup_containers
fi
+ if [[ -x ./command/modprobe ]]
exit 0
}
typeset -ft postinstall