[syslinux:multifs] ldlinux/kernel: contemplate multifs path syntax
syslinux-bot for Paulo Alcantara
pcacjr at zytor.com
Mon Feb 1 03:18:06 PST 2016
Commit-ID: 7d19d0330a4f8cc2966f3284de047b9977498c8d
Gitweb: http://www.syslinux.org/commit/7d19d0330a4f8cc2966f3284de047b9977498c8d
Author: Paulo Alcantara <pcacjr at zytor.com>
AuthorDate: Sun, 19 Jul 2015 14:59:34 -0300
Committer: Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Sun, 31 Jan 2016 18:35:19 -0200
ldlinux/kernel: contemplate multifs path syntax
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++;
More information about the Syslinux-commits
mailing list