mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
ec2: Enable systemd on >=jessie
This commit is contained in:
parent
cf6234bafd
commit
9d2ad17d09
2 changed files with 11 additions and 0 deletions
|
@ -280,6 +280,16 @@ class DisableGrubRecovery(Task):
|
|||
info.grub_config['GRUB_DISABLE_RECOVERY'] = True
|
||||
|
||||
|
||||
class EnableSystemd(Task):
|
||||
description = 'Enabling systemd'
|
||||
phase = phases.system_modification
|
||||
successors = [WriteGrubConfig]
|
||||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('init=/bin/systemd')
|
||||
|
||||
|
||||
class InstallGrub_1_99(Task):
|
||||
description = 'Installing grub 1.99'
|
||||
phase = phases.system_modification
|
||||
|
|
|
@ -84,6 +84,7 @@ def resolve_tasks(taskset, manifest):
|
|||
if manifest.release >= jessie:
|
||||
taskset.add(tasks.packages.AddWorkaroundGrowpart)
|
||||
taskset.add(initd.AdjustGrowpartWorkaround)
|
||||
taskset.add(tasks.grub.EnableSystemd)
|
||||
|
||||
if manifest.provider.get('install_init_scripts', True):
|
||||
taskset.add(tasks.initd.AddEC2InitScripts)
|
||||
|
|
Loading…
Add table
Reference in a new issue