--target has been introduced in grub2. This patch ensure we use the minimal version before adding the --target XXX flag. Debian Wheezy and Precise share the same limitation regarding the root device. Change-Id: I5b3ad42b9fb536d13fb65d84339bc15bc23d99a3
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 by exporting a DIB_EXTLINUX variable to the environment.