summaryrefslogtreecommitdiffstats
path: root/boot/grub2/Config.in
diff options
context:
space:
mode:
authorJérôme Pouiller <jezz@sysmic.org>2014-07-01 19:49:47 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-07-02 10:59:01 +0200
commit8a5a57de1c8f8eec9c49b53846e23a64bf251d9d (patch)
tree6d0874a22dd3ab681df72da7edb8ae4d195f320c /boot/grub2/Config.in
parentcc61bda9f8190e90b131367845b85f389dc5c958 (diff)
downloadbuildroot-8a5a57de1c8f8eec9c49b53846e23a64bf251d9d.tar.gz
buildroot-8a5a57de1c8f8eec9c49b53846e23a64bf251d9d.zip
grub2: Specify boot partition
Since boot partition was not specified, grub tools try to detect it automatically. This patch add an option to force it. Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'boot/grub2/Config.in')
-rw-r--r--boot/grub2/Config.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/boot/grub2/Config.in b/boot/grub2/Config.in
index b37e024543..5e7ccd2bfb 100644
--- a/boot/grub2/Config.in
+++ b/boot/grub2/Config.in
@@ -111,6 +111,19 @@ config BR2_TARGET_GRUB2_X86_64_EFI
endchoice
+if BR2_TARGET_GRUB2_I386_PC
+
+config BR2_TARGET_GRUB2_BOOT_PARTITION
+ string "boot partition"
+ default "hd0,msdos1"
+ help
+ Specify the partition where the /boot/grub/grub.cfg file is
+ located. Use 'hd0,msdos1' for the first partition of the
+ first disk if using a legacy partition table, or 'hd0,gpt1'
+ if using GPT partition table.
+
+endif # BR2_TARGET_GRUB2_I386_PC
+
config BR2_TARGET_GRUB2_BUILTIN_MODULES
string "builtin modules"
default "boot linux ext2 fat part_msdos part_gpt normal biosdisk" if BR2_TARGET_GRUB2_I386_PC
OpenPOWER on IntegriCloud