[syslinux] extlinux device trouble

H. Peter Anvin hpa at zytor.com
Wed Jan 15 05:05:52 PST 2014


On 01/14/2014 07:57 PM, Gene Cumm wrote:
>>>
>>> #### 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 \\.
> 

Since this isn't what the kernel emits, this presumably has to be
considered a Syslinux bug.  I think the mountinfo parser can probably
allow the options to simply end in newline, since it is the last field.

$DEITY knows what happens if there somehow is a newline *in* this field...

	-hpa



More information about the Syslinux mailing list