[prev in list] [next in list] [prev in thread] [next in thread]
List: ipcop-svn
Subject: [Ipcop-svn] SF.net SVN: ipcop: [1319] ipcop/trunk
From: chepati () users ! sourceforge ! net
Date: 2008-04-20 18:10:23
Message-ID: E1Jndzb-0000EP-Oj () sc8-pr-svn4 ! sourceforge ! net
[Download RAW message or body]
Revision: 1319
http://ipcop.svn.sourceforge.net/ipcop/?rev=1319&view=rev
Author: chepati
Date: 2008-04-20 11:10:23 -0700 (Sun, 20 Apr 2008)
Log Message:
-----------
Commiting this so we can test it. The idea is to include modules.dep but only to use \
it on Pentium machines and older ( < i686) and run depmod and newer machines (> \
i686). Let me know if you don't like the logic. One problem is that we're actually \
increasing the initramfs size, but we'll see if we can somehow squeeze the extra \
kilobytes in.
Modified Paths:
--------------
ipcop/trunk/config/install/init
ipcop/trunk/lfs/initramfs
Modified: ipcop/trunk/config/install/init
===================================================================
--- ipcop/trunk/config/install/init 2008-04-20 17:11:56 UTC (rev 1318)
+++ ipcop/trunk/config/install/init 2008-04-20 18:10:23 UTC (rev 1319)
@@ -93,6 +93,17 @@
# Create a link from /proc/mounts to /etc/mtab so mke2fs doesn't fail
ln -sf /proc/mounts /etc/mtab
+# Run depmod to build modules.alias file for hardware detection
+# We only do this on fairly modern machines. For older machines we fall back to \
using the +# included static modules dependencies files.
+case ${MACHINE} in
+ i686|x86_64|ppc|ppc64|sparc64)
+ echo -ne "Generating module dependencies. This may take some time ... "
+ depmod -a
+ echo "Done"
+ ;;
+esac
+
# This is important and it eliminates the need to use udevstart to discover new
# devices after we've loaded a module. And since we're including LFS udev rules
# in the initramfs, then pretty much any device is supported.
Modified: ipcop/trunk/lfs/initramfs
===================================================================
--- ipcop/trunk/lfs/initramfs 2008-04-20 17:11:56 UTC (rev 1318)
+++ ipcop/trunk/lfs/initramfs 2008-04-20 18:10:23 UTC (rev 1319)
@@ -90,6 +90,9 @@
cp -a /dev/console $(INITRAMFS_DIR)/dev/
cp -a /dev/null $(INITRAMFS_DIR)/dev/
+ # depmod is needed to build modules.alias for hardware detection
+ install -D /sbin/depmod $(INITRAMFS_DIR)/bin
+
# Install udev
install -D /sbin/udevd $(INITRAMFS_DIR)/bin
install -D /sbin/udevadm $(INITRAMFS_DIR)/bin
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic