[blivet-f21/master v2] Run dosfsck in non-interactive mode (#1167959)

Brian C. Lane bcl at redhat.com
Tue Nov 25 21:40:25 UTC 2014


Also skip running updateSizeInfo in FS.__init__ if there is no resize
program available for the format.
---
 blivet/formats/fs.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index 33a2489..b20a252 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -119,7 +119,7 @@ class FS(DeviceFormat):
         # Resize operations are limited to error-free filesystems whose current
         # size is known.
         self._resizable = False
-        if flags.installer_mode:
+        if flags.installer_mode and self.resizefsProg:
             # if you want current/min size you have to call updateSizeInfo
             try:
                 self.updateSizeInfo()
@@ -1100,6 +1100,7 @@ class FATFS(FS):
     _maxSize = Size("1 TiB")
     _packages = [ "dosfstools" ]
     _defaultMountOptions = ["umask=0077", "shortname=winnt"]
+    _defaultCheckOptions = ["-n"]
     # FIXME this should be fat32 in some cases
     partedSystem = fileSystemType["fat16"]
 
-- 
1.9.3



More information about the anaconda-patches mailing list