[syslinux] [PULL 4/8] ldlinux/kernel: contemplate multifs path syntax
Paulo Alcantara
pcacjr at gmail.com
Wed Jul 22 16:27:26 PDT 2015
The initramfs path in the configuration file might come with multifs
path syntax (e.g. (hdX,Y)/initramfs...), so we must include it so
multifs will know how fs ops to switch to.
Cc: Gene Cumm <gene.cumm at gmail.com>
Signed-off-by: Paulo Alcantara <pcacjr at zytor.com>
---
com32/elflink/ldlinux/kernel.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/com32/elflink/ldlinux/kernel.c b/com32/elflink/ldlinux/kernel.c
index f3ba37f..f9738a7 100644
--- a/com32/elflink/ldlinux/kernel.c
+++ b/com32/elflink/ldlinux/kernel.c
@@ -88,6 +88,15 @@ int new_linux_kernel(char *okernel, char *ocmdline)
temp++; /* Skip = or , */
p = temp;
+ if (*p == '(') {
+ /* handle MultiFS path syntax: e.g. (hdX,Y)... */
+ do {
+ p++;
+ n++;
+ } while (*p && *p != ')');
+ p++;
+ n++;
+ }
while (*p != ' ' && *p != ',' && *p) {
p++;
n++;
--
2.1.0
More information about the Syslinux
mailing list