Disable unnecessary services in qubes.postAction()
This commit is contained in:
parent
a56727f8ba
commit
a9795ae4a6
@ -23,6 +23,7 @@ from product import *
|
||||
from meh.filer import *
|
||||
from flags import flags
|
||||
import os
|
||||
import subprocess
|
||||
import types
|
||||
import iutil
|
||||
|
||||
@ -85,6 +86,17 @@ class InstallClass(BaseInstallClass):
|
||||
anaconda.dispatch.skipStep("tasksel")
|
||||
anaconda.dispatch.skipStep("group-selection")
|
||||
|
||||
def postAction(self, anaconda):
|
||||
# First disable all the useless services...
|
||||
whitelisted = ['functions', 'killall', 'halt', 'single',
|
||||
'rsyslog', 'haldaemon', 'messagebus', 'xenstored', 'xend', 'xenconsoled', 'firstboot',
|
||||
'qubes_core', 'qubes_netvm']
|
||||
|
||||
for file in os.listdir(anaconda.rootPath + '/etc/init.d'):
|
||||
if not file in whitelisted:
|
||||
subprocess.check_call(['/usr/sbin/chroot', anaconda.rootPath,
|
||||
'/sbin/chkconfig', '--level', '5', file, 'off'])
|
||||
|
||||
def getBackend(self):
|
||||
if flags.livecdInstall:
|
||||
import livecd
|
||||
|
Loading…
Reference in New Issue
Block a user