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

[PATCH 1/2] Install dracut-fips package when fips=1 is specified (#692350)



Required for FIPS certification.
---
 platform.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/platform.py b/platform.py
index 8772b57..7871133 100644
--- a/platform.py
+++ b/platform.py
@@ -23,6 +23,7 @@
 import iutil
 import parted
 import storage
+from flags import flags
 from storage.errors import *
 from storage.formats import *
 from storage.partspec import *
@@ -157,6 +158,8 @@ class Platform(object):
 
     @property
     def packages (self):
+        if flags.cmdline.get('fips', None) == '1':
+            return self._packages + ['dracut-fips']
         return self._packages
 
     def setDefaultPartitioning(self):
-- 
1.7.1


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