Brian,

I think the gzip at the end of UYOK initrd generation should be not
interactive... since I can run si_prepareclient with '--yes' option for
example... what do you think about this patch?

Cheers,
-Andrea

Index: lib/SystemImager/UseYourOwnKernel.pm
===================================================================
--- lib/SystemImager/UseYourOwnKernel.pm        (revision 3297)
+++ lib/SystemImager/UseYourOwnKernel.pm        (working copy)
@@ -472,7 +472,7 @@
         run_cmd("$mkfs $staging_dir $new_initrd", $verbose, 1);

         # gzip up
-        run_cmd("gzip -9 -S .img $new_initrd", $verbose);
+        run_cmd("gzip -f -9 -S .img $new_initrd", $verbose);
         run_cmd("ls -l $new_initrd.img", $verbose, 1) if($verbose);

         return 1;
@@ -514,7 +514,7 @@

         # umount and gzip up
         run_cmd("umount $new_initrd_mount_dir", $verbose);
-        run_cmd("gzip -9 -S .img $new_initrd", $verbose);
+        run_cmd("gzip -f -9 -S .img $new_initrd", $verbose);
         run_cmd("ls -l $new_initrd.img", $verbose, 1) if($verbose);

         return 1;
@@ -569,7 +569,7 @@

         # umount and gzip up
         run_cmd("umount $new_initrd_mount_dir", $verbose);
-        run_cmd("gzip -9 -S .img $new_initrd", $verbose);
+        run_cmd("gzip -f -9 -S .img $new_initrd", $verbose);
         run_cmd("ls -l $new_initrd.img", $verbose, 1) if($verbose);

         # cleanup the temporary mount dir
@@ -638,7 +638,7 @@

         # umount and gzip up
         run_cmd("umount $new_initrd_mount_dir", $verbose);
-        run_cmd("gzip -9 -S .img $new_initrd", $verbose);
+        run_cmd("gzip -f -9 -S .img $new_initrd", $verbose);
         run_cmd("ls -l $new_initrd.img", $verbose, 1) if($verbose);

         return 1;


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Sisuite-devel mailing list
Sisuite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to