aboutsummaryrefslogtreecommitdiff
path: root/fs/iso9660/menu.lst
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-06-09 00:21:40 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-06-14 23:18:53 +0200
commit168cce04969029f0b7365691b4a5ca91c7f5af53 (patch)
treef6dba1d3d57e4df20ccf4fb02aa6013bae097979 /fs/iso9660/menu.lst
parent3736b9a7c1c03ce7bab6d902db579fbead909047 (diff)
downloadbuildroot-168cce04969029f0b7365691b4a5ca91c7f5af53.tar.gz
buildroot-168cce04969029f0b7365691b4a5ca91c7f5af53.tar.bz2
fs/iso9660: prepare cleaner kernel/initrd path handling
The iso9660.mk modifies the menu.lst file from Grub to set the correct initrd/kernel image locations. However, with the upcoming support of other bootloaders for iso9660 filesystems, we need to modify a bit this logic. Instead of relying on the specific details of the grub menu.lst syntax, we introduce the __KERNEL_PATH__ and __INITRD_PATH__ magic keywords, which iso9660.mk will replace by the appropriate values. They can therefore be used where needed in grub menu.lst, and in similar configuration files of other bootloaders, as will be supported in the following commits. Also, in order to be consistent with the soon to be introduced support for having the root filesystem itself as iso9660, this commit changes the installation location of the initrd and kernel. Instead of being /initrd and /kernel, they become /boot/initrd and /boot/$(LINUX_IMAGE_NAME). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Samuel Martin <s.martin49@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'fs/iso9660/menu.lst')
-rw-r--r--fs/iso9660/menu.lst4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/iso9660/menu.lst b/fs/iso9660/menu.lst
index fd5c76aec6..8e8309fd06 100644
--- a/fs/iso9660/menu.lst
+++ b/fs/iso9660/menu.lst
@@ -12,8 +12,8 @@ foreground 000000
background cccccc
title Buildroot ISO9660 image
-kernel /kernel
-initrd /initrd
+kernel __KERNEL_PATH__
+initrd __INITRD_PATH__
title Hard Drive (first partition)
rootnoverify (hd0)