SOURCES: linux-live-package.patch - better way of finding unused modules ne...

tommat tommat at pld-linux.org
Sat Nov 8 15:44:12 CET 2008


Author: tommat                       Date: Sat Nov  8 14:44:12 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- better way of finding unused modules needed

---- Files affected:
SOURCES:
   linux-live-package.patch (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SOURCES/linux-live-package.patch
diff -u SOURCES/linux-live-package.patch:1.16 SOURCES/linux-live-package.patch:1.17
--- SOURCES/linux-live-package.patch:1.16	Sat Nov  8 15:06:22 2008
+++ SOURCES/linux-live-package.patch	Sat Nov  8 15:44:06 2008
@@ -493,3 +493,21 @@
  
  # pci modules
  rcopy_ex $ROOT/$LMK/kernel/drivers/scsi $INITRD_TREE 2>>$DEBUG
+diff -Nur linux-live-6.2.4.orig/tools/liblinuxlive linux-live-6.2.4/tools/liblinuxlive
+--- linux-live-6.2.4.orig/tools/liblinuxlive	2008-11-08 09:24:23.000000000 +0100
++++ linux-live-6.2.4/tools/liblinuxlive	2008-11-08 15:42:06.000000000 +0100
+@@ -854,9 +854,11 @@
+ rmmod_unused_modules()
+ {
+    debug_log "rmmod_unused_modules" "$*"
+-   rmmod usb-storage uhci-hcd ohci-hcd ehci-hcd 2>/dev/null
+-   rmmod yenta_socket rsrc_nonstatic pcmcia pcmcia_core 2>/dev/null
+-   rmmod $(cat /proc/modules | cut -d " " -f 1) 2>/dev/null
++# Do not force removing modules, or invent some way of finding real unused modules
++# Such way breaks booting from USB CD
++#   rmmod usb-storage uhci-hcd ohci-hcd ehci-hcd 2>/dev/null
++#   rmmod yenta_socket rsrc_nonstatic pcmcia pcmcia_core 2>/dev/null
++#   rmmod $(cat /proc/modules | cut -d " " -f 1) 2>/dev/null
+ }
+ 
+ # kill all unneeded processes, which have bigger PID then the PID of
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/linux-live-package.patch?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list