diff options
author | Paulo Alcantara <pcacjr@zytor.com> | 2015-07-19 14:59:34 -0300 |
---|---|---|
committer | Paulo Alcantara <pcacjr@zytor.com> | 2016-01-31 18:35:19 -0200 |
commit | 7d19d0330a4f8cc2966f3284de047b9977498c8d (patch) | |
tree | 9305997c646ffa263fd7905ee836a99151fed9a8 | |
parent | d43c2b5a2e26626e51e63b13c3a55b02ae77e0a3 (diff) | |
download | syslinux-7d19d0330a4f8cc2966f3284de047b9977498c8d.tar.gz syslinux-7d19d0330a4f8cc2966f3284de047b9977498c8d.tar.xz syslinux-7d19d0330a4f8cc2966f3284de047b9977498c8d.zip |
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@gmail.com>
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r-- | com32/elflink/ldlinux/kernel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/com32/elflink/ldlinux/kernel.c b/com32/elflink/ldlinux/kernel.c index f3ba37fa..f9738a7e 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++; |