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

Jeremy Katz katzj at fedoraproject.org
Thu Apr 10 20:47:29 UTC 2008


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

New commits:
commit 21609df66b47bf1ae2d6e930ed7a994c59a9aa19
Author: Jeremy Katz <katzj at redhat.com>
Date:   Thu Apr 10 16:35:51 2008 -0400

    Fix creation of minimal sized snapshot
    
    Creating the minimal sized snapshot has been broken for a while which then
    breaks the ability to do an install on something with only 4 gigs of
    flash like the eeePC

diff --git a/imgcreate/fs.py b/imgcreate/fs.py
index 9ca3a3e..98c0db4 100644
--- a/imgcreate/fs.py
+++ b/imgcreate/fs.py
@@ -285,8 +285,8 @@ class SparseExtLoopbackMount(SparseLoopbackMount):
         minsize = self.__resize_to_minimal()
 
         self.truncate(minsize)
-
-        return self.resize(size)
+        self.resize(size)
+        return minsize
 
 class DeviceMapperSnapshot(object):
     def __init__(self, imgloop, cowloop):
@@ -299,7 +299,7 @@ class DeviceMapperSnapshot(object):
     def get_path(self):
         if self.__name is None:
             return None
-        return "/dev/mapper" + self.__name
+        return os.path.join("/dev/mapper", self.__name)
     path = property(get_path)
 
     def create(self):





More information about the Fedora-livecd-list mailing list