There is no way to customize the installation of the bootloader

Bug #1391656 reported by Mathieu Gagné
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Triaged
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)
Changed in diskimage-builder:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Matthew Thode (prometheanfire) wrote :

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

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

Revision history for this message
Matthew Thode (prometheanfire) wrote :

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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.