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

[PATCH 2/2] Use fs with largest amount of freespace to store install.img



We are currently using the fs/mounpoint with the smallest amount of
freespace when install.img needs to be transferred to the harddisk. Use the
fs with the largest amount of freespace instead.
---
 backend.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/backend.py b/backend.py
index 5501ac8..b9c4e62 100644
--- a/backend.py
+++ b/backend.py
@@ -164,8 +164,7 @@ class AnacondaBackend:
 
         free = anaconda.id.storage.fsFreeSpace
         self._loopbackFile = "%s%s/rhinstall-install.img" % (anaconda.rootPath,
-                                                             free[0][0])
-
+                                                          free[len(free)-1][0])
         try:
             win = anaconda.intf.waitWindow(_("Copying File"),
                     _("Transferring install image to hard drive"))
-- 
1.6.5.2


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