There is no way to customize the installation of the bootloader

Bug #1391656 reported by Mathieu Gagné on 2014-11-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Medium
Unassigned

Bug Description

There is currently no way to customize the installation of the bootloader.

The installation, configuration, rebuild of configuration and hacks to the configuration are all done in elements/vm/finalise.d/51-bootloader

This means there is no room for a user to customize the bootloader configuration.

Some use cases:

1) I wish to disable the os-prober with "GRUB_DISABLE_OS_PROBER".

While I could configure "GRUB_DISABLE_OS_PROBER" before 51-bootloader in my own element, I would have to make sure grub is installed and copy most of the platform detection logic found in 51-bootloader.

I could also do it in an element after 51-bootloader but I:
- would lose all "hacks" done by 51-bootloader such as replacing "root=UUID=" for "root=LABEL=".
- would have to reimplement all the detection logic around the grub-update binary (GRUB_MKCONFIG).

2) I wish to change the console from tty0 to tty1

This part is just harcoded. Any solution would have the same downsides as use case #1.

Ben Nemec (bnemec) on 2014-12-03
Changed in diskimage-builder:
status: New → Triaged
importance: Undecided → Medium
Matthew Thode (prometheanfire) wrote :

this is the only command I want it to run...

    grub2-install "${BLOCK_DEV}" --root-directory "${MOUNT_DIR}"

Matthew Thode (prometheanfire) wrote :

I feel like DIB is not written with the best modularity in mind.

Clint Byrum (clint-fewbar) wrote :

Matthew, that's almost 100% opposite of the point of diskimage-builder existing. We love modularity, and would love to have a patch that enabled customization of the boot loader installation arguments. Please clone https://git.openstack.org/openstack/diskimage-builder.git and then use this process to submit a patch:

http://docs.openstack.org/infra/manual/developers.html

You can ping us on IRC if you need realtime existence. We're on Freenode in #tripleo

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers