Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to devel-kmod grimoire by Treeve Jelbert (76710692a23594f28537559ed575458d868deffc)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Treeve Jelbert <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to devel-kmod grimoire by Treeve Jelbert (76710692a23594f28537559ed575458d868deffc)
  • Date: Thu, 24 May 2012 12:52:16 -0500

GIT changes to devel-kmod grimoire by Treeve Jelbert <treeve AT sourcemage.org>:

kernels/kmod/BUILD | 2 +
kernels/kmod/CONFLICTS | 1
kernels/kmod/HISTORY | 23 ++++++++++++++++++++
kernels/kmod/INSTALL | 7 ++++++
kernels/kmod/POST_RESURRECT | 5 ++++
kernels/kmod/init.d/modutils | 42
++++++++++++++++++++++++++++++++++++++
kernels/kmod/init.d/modutils.conf | 8 +++++++
7 files changed, 88 insertions(+)

New commits:
commit 76710692a23594f28537559ed575458d868deffc
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Treeve Jelbert <treeve AT sourcemage.org>

kmod - now provides all module-init-tools funtions

Conflicts:

kernels/kmod/BUILD
kernels/kmod/CONFLICTS
kernels/kmod/DETAILS

commit a17d31c37c1fdc96597ada9f51b8b36dd1968972
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Treeve Jelbert <treeve AT sourcemage.org>

kmod - add FINAL

Conflicts:

kernels/kmod/FINAL
kernels/kmod/HISTORY

diff --git a/kernels/kmod/BUILD b/kernels/kmod/BUILD
new file mode 100755
index 0000000..4d6e7de
--- /dev/null
+++ b/kernels/kmod/BUILD
@@ -0,0 +1,2 @@
+OPTS="$OPTS --with-rootlibdir=${INSTALL_ROOT}/lib
--bindir=${INSTALL_ROOT}/sbin" &&
+default_build
diff --git a/kernels/kmod/CONFLICTS b/kernels/kmod/CONFLICTS
index ad9421d..10d7c10 100755
--- a/kernels/kmod/CONFLICTS
+++ b/kernels/kmod/CONFLICTS
@@ -1 +1,2 @@
+conflicts modutils &&
conflicts module-init-tools
diff --git a/kernels/kmod/HISTORY b/kernels/kmod/HISTORY
index 6b97f94..0aba66f 100644
--- a/kernels/kmod/HISTORY
+++ b/kernels/kmod/HISTORY
@@ -26,6 +26,29 @@
* DETAILS: 4
* PRE_BUILD: removed

+2012-01-17 Treeve Jelbert <treeve AT sourcemage.org>
+ * FINAL: added, to inform of changes
+
+2012-01-16 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: PATCHLEVEL=2
+ * POST_RESURRECT, CONFLICTS: added
+ * BUILD: build the tools which replace module_init_tools
+ put tools in /sbin, for compatabilty with module_init_tools
+ * INSTALL: added, symlinks to /sbin/kmod for all module_init_tools
programs
+ * init.d/modutils: added
+
+2012-01-16 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: PATCHLEVEL=2
+ * POST_RESURRECT, CONFLICTS: added
+ * BUILD: build the tools which replace module_init_tools
+ put tools in /sbin, for compatabilty with module_init_tools
+ * INSTALL: added, symlinks to /sbin/kmod for all module_init_tools
programs
+ * init.d/modutils: added
+
+2012-01-16 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: PATCHLEVEL=1
+ * BUILD: added, lib and bin should be in /, as they are needed at
boot time
+
2012-01-13 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 3
using key 30CBEA53: public key "Lucas De Marchi
<lucas.demarchi AT profusion.mobi>"
diff --git a/kernels/kmod/INSTALL b/kernels/kmod/INSTALL
new file mode 100755
index 0000000..a8d48a9
--- /dev/null
+++ b/kernels/kmod/INSTALL
@@ -0,0 +1,7 @@
+default_install &&
+ln -sf "$TRACK_ROOT/sbin/kmod" "$INSTALL_ROOT/bin/lsmod"
+ln -sf "$TRACK_ROOT/sbin/kmod" "$INSTALL_ROOT/sbin/depmod"
+ln -sf "$TRACK_ROOT/sbin/kmod" "$INSTALL_ROOT/sbin/rmmod"
+ln -sf "$TRACK_ROOT/sbin/kmod" "$INSTALL_ROOT/sbin/insmod"
+ln -sf "$TRACK_ROOT/sbin/kmod" "$INSTALL_ROOT/sbin/modprobe"
+ln -sf "$TRACK_ROOT/sbin/kmod" "$INSTALL_ROOT/sbin/modinfo"
diff --git a/kernels/kmod/POST_RESURRECT b/kernels/kmod/POST_RESURRECT
new file mode 100755
index 0000000..ee18dc6
--- /dev/null
+++ b/kernels/kmod/POST_RESURRECT
@@ -0,0 +1,5 @@
+#run depmod on all current kernel trees
+for i in `ls ${INSTALL_ROOT}/lib/modules/`; do
+ message "${MESSAGE_COLOR}Rebuilding module dependencies for
$i...${DEFAULT_COLOR}"
+ $INSTALL_ROOT/sbin/depmod -ae $i -b /$INSTALL_ROOT
+done 2> /dev/null
diff --git a/kernels/kmod/init.d/modutils b/kernels/kmod/init.d/modutils
new file mode 100644
index 0000000..e7e6dd4
--- /dev/null
+++ b/kernels/kmod/init.d/modutils
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+RUNLEVEL=S
+PROVIDES=modules
+NEEDS="+root_fs"
+RECOMMENDED=yes
+
+. /etc/init.d/smgl_init
+. /etc/sysconfig/modutils
+
+test -x /sbin/depmod || exit 5
+test -x /sbin/modprobe || exit 5
+
+case $1 in
+ start) ;; # Fall through
+ stop) exit 0 ;;
+ *) echo "Usage: $0 {start|stop}"
+ exit 1
+ ;;
+esac
+
+# Handle start action
+
+if [ -x /sbin/depmod ] && [ "$PERFORM_DEPMOD" = "y" ] ; then
+ if [ "$ENABLE_SWAP_BEFORE_DEPMOD" = "y" ] ; then
+ echo "Enabling swap..."
+ loadproc swapon -a
+ fi
+ echo "Running depmod..."
+ loadproc depmod -a
+fi
+
+if [ -e /etc/modules ] && [ -x /sbin/modprobe ] ; then
+ ( cat /etc/modules; builtin echo ) |
+ while read MODULE ARGS; do
+ case $MODULE in
+ \#*|"") continue ;;
+ esac
+ echo "Loading module $MODULE..."
+ loadproc modprobe $MODULE $ARGS
+ done
+fi
diff --git a/kernels/kmod/init.d/modutils.conf
b/kernels/kmod/init.d/modutils.conf
new file mode 100644
index 0000000..e903eb0
--- /dev/null
+++ b/kernels/kmod/init.d/modutils.conf
@@ -0,0 +1,8 @@
+# Perform depmod -a on boot or not.
+# Probably don't want to do this if you are on a laptop and running on
battery.
+PERFORM_DEPMOD=y
+
+# Sometimes low memory machines and with kernels with lots of modules depmod
+# will cause an Out Of Memory (oom) kernel panic. Say yes here if you want to
+# enable swap so the oom error won't happen.
+#ENABLE_SWAP_BEFORE_DEPMOD=y



  • [SM-Commit] GIT changes to devel-kmod grimoire by Treeve Jelbert (76710692a23594f28537559ed575458d868deffc), Treeve Jelbert, 05/24/2012

Archive powered by MHonArc 2.6.24.

Top of Page