[PATCH] Don't call a util we don't have (#824690)

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

 



This furthers the work in 41f9a52d2
---
 pyanaconda/storage/formats/fs.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/storage/formats/fs.py b/pyanaconda/storage/formats/fs.py
index a9abe1a..cc7b4ca 100644
--- a/pyanaconda/storage/formats/fs.py
+++ b/pyanaconda/storage/formats/fs.py
@@ -1412,7 +1412,8 @@ class NTFS(FS):
         if self._minInstanceSize is None:
             # we try one time to determine the minimum size.
             size = self._minSize
-            if self.exists and os.path.exists(self.device):
+            if self.exists and os.path.exists(self.device) and \
+               iutil.find_program_in_path(self.resizefsProg):
                 minSize = None
                 buf = iutil.execWithCapture(self.resizefsProg,
                                             ["-m", self.device],
-- 
1.7.10.1

_______________________________________________
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