Hi all,

I've used the UYOK feature with a SLES9 distro on Dell 1850.

Unfortunately the following command cause a modprobe of all modules present in the initrd staging dir!!!

run_cmd("find $staging_dir -depth -exec touch -t 196912311900 '{}' ';'");

I've to verify closely the problem, but it suppose it is due to the touch performed on the special block/char files, causing an automatic modprobe of the required modules to manage the opportune devices...

This is very very bad... in particular because when it loads the watchdog module the machine reboot after few minutes... :-(

I've resolved performing the touch command only for the regular files.

Attached is the patch. Brian what do you think, can I freely commit it into the trunk?

Regards,
-Andrea

--
Andrea Righi
System Management Group - CINECA - http://www.cineca.it
Via Magnanelli 6/3
40033 Casalecchio di Reno (BO) - Italy
--- lib/SystemImager/UseYourOwnKernel.pm        (revision 3259)
+++ lib/SystemImager/UseYourOwnKernel.pm        (working copy)
@@ -442,7 +442,7 @@
         print ">>> Creating new initrd from:   $staging_dir\n" if( $verbose );

         # Sean Dague's little jewel that helps keep the size down. -BEF-
-        run_cmd("find $staging_dir -depth -exec touch -t 196912311900 '{}' ';'");
+        run_cmd("find $staging_dir -depth -type f -exec touch -t 196912311900 '{}' ';'");

         switch ($fs) {                                             # Sizes from a sample run with the same data
                 case 'cramfs'   { _create_initrd_cramfs(   $staging_dir, $boot_dir) }       # 1107131 bytes

Reply via email to