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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux