[syslinux] extlinux device trouble

Gene Cumm gene.cumm at gmail.com
Tue Jan 14 19:57:25 PST 2014


On Tue, Jan 14, 2014 at 10:50 PM, Gene Cumm <gene.cumm at gmail.com> wrote:
> On Tue, Jan 14, 2014 at 9:28 AM, Johann Obermayr
> <johann.obermayr at sigmatek.at> wrote:
>> Hello,
>>
>> i'm using version 4.07.
>> On my computer extlinux does not work.
>> after debugging, i found the trouble.
>>
>> in the function parse_mountinfo there was using a function get_string.
>> in the function get_string there was a line (42) } else if (ch == '\\') {
>> but in my mountinfo list, there was \ , but not with octal digit.
>> so the function get_string will fail.
>>
>> here are some information
>> ### fstab ###
>> #Mount Build environment
>> //10.30.20.61/platform          /home/platform  smbfs guest,ro        0 0
>> //10.30.20.61/builds            /home/builds            smbfs guest,ro
>> 0 0
>>
>> #### this is a part from /proc/self/mountinfo ########
>> 33 20 0:23 / /home/builds ro,relatime - cifs //10.30.20.61/builds
>> ro,sec=ntlm,unc=\\10.30.20.61\builds,username=,uid=0,noforceuid,gid=0,noforcegid,addr=10.30.20.61,unix,posixpaths,serverino,acl,rsize=1048576,wsize=65536,actimeo=1
>> 32 20 0:24 / /home/platform ro,relatime - cifs //10.30.20.61/platform
>> ro,sec=ntlm,unc=\\10.30.20.61\platform,username=,uid=0,noforceuid,gid=0,noforcegid,addr=10.30.20.61,unix,posixpaths,serverino,acl,rsize=1048576,wsize=65536,actimeo=1
>>
>> and after this entrys, there are my mounting points. extlinux does not found
>> the correct entry.
>
> If I'm reading correctly, you feel the get_string() call on line 163
> (retrieving the mount options for m->mountopt will return -1 due to
> the double backslash).  Am I correct?  This seems rather odd that your
> mount options have the DOS form of the UNC path.

Your mountinfo should have \134\134 not \\.

-- 
-Gene


More information about the Syslinux mailing list