[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Fedora-livecd-list] imgcreate/fs.py



 imgcreate/fs.py |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 94d23f008f8f42e0cf93cd8b6cc0a4381d408dfb
Author: Jeremy Katz <katzj redhat com>
Date:   Mon Jul 6 14:51:06 2009 -0400

    Also, don't lose resize2fs output (per request of sandeen)

diff --git a/imgcreate/fs.py b/imgcreate/fs.py
index ae79b1c..563b7a9 100644
--- a/imgcreate/fs.py
+++ b/imgcreate/fs.py
@@ -61,17 +61,12 @@ def resize2fs(fs, size = None, minimal = False):
     os.close(fd)
     subprocess.call(["/sbin/e2image", "-r", fs, saved_image])
 
-    dev_null = os.open("/dev/null", os.O_WRONLY)
     args = ["/sbin/resize2fs", fs]
     if minimal:
         args.append("-M")
     else:
         args.append("%sK" %(size / 1024,))
-    try:
-        ret = subprocess.call(args, stdout = dev_null, stderr = dev_null)
-    finally:
-        os.close(dev_null)
-    
+    ret = subprocess.call(args)
     if ret != 0:
         return ret
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]