ec2: Only enable systemd when grub is the bootloader

Right now we can only properly edit the linux bootparams,
when using grub. This should be fixed so that it works for extlinux
as well.

Fixes #328
This commit is contained in:
Anders Ingemann 2016-06-08 16:53:07 +02:00
parent 70402229c5
commit 96086329e6

View file

@ -90,7 +90,8 @@ def resolve_tasks(taskset, manifest):
taskset.add(tasks.tuning.SetCloudInitMountOptions)
taskset.add(tasks.packages.AddWorkaroundGrowpart)
taskset.add(initd.AdjustGrowpartWorkaround)
taskset.add(grub.EnableSystemd)
if manifest.system['bootloader'] == 'grub':
taskset.add(grub.EnableSystemd)
if manifest.provider.get('install_init_scripts', True):
taskset.add(tasks.initd.AddEC2InitScripts)