diskimage-builder/elements/vm
Steve Baker 9ba761ef27 Install fedora grub from cached rpm during finalise
When uninstalling grub2, leave all its dependencies
including grub2-tools installed to minimise the number of packages
which need to be installed in the finalise stage.

Since the yum cache is unmounted during finalise, installing
grub2 in finalise is slowed by re-populating the yum cache.

This change copies the grub2 rpm out of the yum cache so it can be installed
from file during finalise.

This should prevent disk becoming full during finalise on Fedora.

Closes-Bug: #1217185

Change-Id: If095adc4abb52a19a3aa0b1caebfb3e4d8f605ef
2013-09-15 09:11:58 +10:00
..
block-device.d Use kpartx if partition device doesn't exist 2013-08-20 13:27:49 -04:00
finalise.d Install fedora grub from cached rpm during finalise 2013-09-15 09:11:58 +10:00
README.md Extlinux fallback 2013-08-27 11:14:44 +01:00

Sets up a partitioned disk (rather than building just one filesystem with no partition table).

By default the disk will have grub[2]-install run on it, in case GRUB2 is not available in the system a fallback to Extlinux will happen. It's also possible to enforce the use of Extlinux exporting a DIB_EXTLINUX varible to the environment.