qubes-anaconda-addon: Disable rdisc and kdump at first boot

This commit is contained in:
M. Vefa Bicakci 2016-04-10 00:00:00 -04:00
parent 9fdff6c906
commit 1cda66e1ee
No known key found for this signature in database
GPG Key ID: 1DF87CE3B3A5DFAF
2 changed files with 13 additions and 0 deletions

View File

@ -91,6 +91,11 @@ done
set -e
for service in rdisc kdump; do
systemctl disable ${service}.service || :
systemctl stop ${service}.service || :
done
if [ "$vms_template" == "yes" ]; then
for template in `ls /var/lib/qubes/vm-templates`; do
echo "-> Configuring template $template..."

View File

@ -423,6 +423,7 @@ class QubesOsSpoke(FirstbootOnlySpokeMixIn, NormalSpoke):
except Exception as e:
errors.append((self.stage, str(e)))
self.configure_dom0()
self.configure_default_template()
self.configure_qubes()
self.configure_network()
@ -480,6 +481,13 @@ class QubesOsSpoke(FirstbootOnlySpokeMixIn, NormalSpoke):
return (stdout, stderr)
def configure_dom0(self):
self.set_stage("Setting up administration VM (dom0)")
for service in [ 'rdisc', 'kdump' ]:
self.run_command(['systemctl', 'disable', '{}.service'.format(service) ], ignore_failure=True)
self.run_command(['systemctl', 'stop', '{}.service'.format(service) ], ignore_failure=True)
def configure_qubes(self):
self.set_stage('Executing qubes configuration')