mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Merge pull request #487 from john-pierce/ec2_extlinux
EC2: Only add grub specific tasks if using grub
This commit is contained in:
commit
2d64ddb867
1 changed files with 5 additions and 4 deletions
|
@ -65,14 +65,10 @@ def resolve_tasks(taskset, manifest):
|
||||||
connection.GetCredentials,
|
connection.GetCredentials,
|
||||||
ami.AMIName,
|
ami.AMIName,
|
||||||
connection.Connect,
|
connection.Connect,
|
||||||
|
|
||||||
tuning.TuneSystem,
|
tuning.TuneSystem,
|
||||||
tuning.BlackListModules,
|
tuning.BlackListModules,
|
||||||
bootstrapvz.common.tasks.boot.BlackListModules,
|
bootstrapvz.common.tasks.boot.BlackListModules,
|
||||||
bootstrapvz.common.tasks.boot.DisableGetTTYs,
|
bootstrapvz.common.tasks.boot.DisableGetTTYs,
|
||||||
boot.AddXenGrubConsoleOutputDevice,
|
|
||||||
bootstrapvz.common.tasks.grub.WriteGrubConfig,
|
|
||||||
boot.UpdateGrubConfig,
|
|
||||||
bootstrapvz.common.tasks.initd.AddExpandRoot,
|
bootstrapvz.common.tasks.initd.AddExpandRoot,
|
||||||
bootstrapvz.common.tasks.initd.RemoveHWClock,
|
bootstrapvz.common.tasks.initd.RemoveHWClock,
|
||||||
bootstrapvz.common.tasks.initd.InstallInitScripts,
|
bootstrapvz.common.tasks.initd.InstallInitScripts,
|
||||||
|
@ -101,6 +97,11 @@ def resolve_tasks(taskset, manifest):
|
||||||
if manifest.volume['partitions']['type'] != 'none':
|
if manifest.volume['partitions']['type'] != 'none':
|
||||||
taskset.add(bootstrapvz.common.tasks.initd.AdjustExpandRootScript)
|
taskset.add(bootstrapvz.common.tasks.initd.AdjustExpandRootScript)
|
||||||
|
|
||||||
|
if manifest.system['bootloader'] in ('grub', 'pvgrub'):
|
||||||
|
taskset.update([boot.AddXenGrubConsoleOutputDevice,
|
||||||
|
bootstrapvz.common.tasks.grub.WriteGrubConfig,
|
||||||
|
boot.UpdateGrubConfig])
|
||||||
|
|
||||||
if manifest.system['bootloader'] == 'pvgrub':
|
if manifest.system['bootloader'] == 'pvgrub':
|
||||||
taskset.add(bootstrapvz.common.tasks.grub.AddGrubPackage)
|
taskset.add(bootstrapvz.common.tasks.grub.AddGrubPackage)
|
||||||
taskset.update([bootstrapvz.common.tasks.grub.AddGrubPackage,
|
taskset.update([bootstrapvz.common.tasks.grub.AddGrubPackage,
|
||||||
|
|
Loading…
Add table
Reference in a new issue