[anaconda:master] Check for storage required services too, when enabling services.

mulhern amulhern at redhat.com
Mon Mar 2 18:07:03 UTC 2015


This was being done up until anaconda 374761910be654941c826f865249eacb5218b379
but went away then.

It happens to be the case that there is nowhere currently in blivet where
services value is updated. This never made it to blivet during the split
(I think), and was eventually killed off completely in anaconda
068173b4fd972fae4b2cd3398ae0de2d46d5b11f.

Blivet services were introduced in anaconda
924de431101c38d5145a354e3e2df07f7ec053cc to fix a bug (#615040).

Signed-off-by: mulhern <amulhern at redhat.com>
---
 pyanaconda/kickstart.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 756eb81..e3457e4 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -1562,7 +1562,9 @@ class Services(commands.services.FC6_Services):
 
             iutil.execInSysroot("systemctl", ["disable", svc])
 
-        for svc in self.enabled:
+        enable_services = storage.services
+        enable_services.update(self.enabled)
+        for svc in enable_services:
             if not svc.endswith(".service"):
                 svc += ".service"
 
-- 
1.9.3



More information about the anaconda-patches mailing list