Revision: 2803
          http://ipcop.svn.sourceforge.net/ipcop/?rev=2803&view=rev
Author:   owes
Date:     2009-05-06 18:06:00 +0000 (Wed, 06 May 2009)

Log Message:
-----------
Without running depmod (to create full modules.*) files it is not possible to 
load some modules, especially ipsec.
Running depmod once while filling the target disk seems like the best solution.

Modified Paths:
--------------
    ipcop/trunk/src/installer/partition.c

Modified: ipcop/trunk/src/installer/partition.c
===================================================================
--- ipcop/trunk/src/installer/partition.c       2009-05-06 18:03:59 UTC (rev 
2802)
+++ ipcop/trunk/src/installer/partition.c       2009-05-06 18:06:00 UTC (rev 
2803)
@@ -576,6 +576,14 @@
 
     statuswindow(72, 5, ipcop_gettext("TR_TITLE_DISK"), 
ipcop_gettext("TR_BUILDING_INITRD"));
 
+    // run depmod to have complete modules.* files on target system
+    snprintf(bigstring, STRING_SIZE, "/bin/chroot /harddisk /sbin/depmod -a 
%s", utsbuf.release);
+    if (mysystem(bigstring)) {
+        errorbox(ipcop_gettext("TR_UNABLE_TO_BUILD_INITRD"));
+        newtPopWindow();
+        return FAILURE;
+    }
+
     //pivot_root for initrd
     mkdir("/harddisk/initrd", S_IRWXU | S_IRWXG | S_IRWXO);
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to