[pykickstart:rhel7/master] Allow recommended flag for non-prexisting logical volumes (#1149718)

mulhern amulhern at redhat.com
Mon Oct 6 15:01:15 UTC 2014


Resolves: rhbz#1149718

Signed-off-by: mulhern <amulhern at redhat.com>
---
 pykickstart/commands/logvol.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pykickstart/commands/logvol.py b/pykickstart/commands/logvol.py
index cca3dd1..7c3c9c9 100644
--- a/pykickstart/commands/logvol.py
+++ b/pykickstart/commands/logvol.py
@@ -485,7 +485,7 @@ class F20_LogVol(F18_LogVol):
             errorMsg = _("The logvol and autopart commands can't be used at the same time")
             raise KickstartParseError(formatErrorMsg(self.lineno, msg=errorMsg))
 
-        if not retval.preexist and not retval.percent and not retval.size:
+        if not retval.preexist and not retval.percent and not retval.size and not retval.recommended:
             errorMsg = _("Size required")
             raise KickstartParseError(formatErrorMsg(self.lineno, msg=errorMsg))
 
-- 
1.9.3



More information about the anaconda-patches mailing list