On Tue, Dec 22, 2009 at 9:52 AM, Jonas Karlsson <cj.karls...@gmail.com> wrote:
> 2009/12/19  <luca...@svn.gobolinux.org>:
>> Author: lucasvr
>> Date: 2009-12-18 21:20:36 -0800 (Fri, 18 Dec 2009)
>> New Revision: 4244
>>
>> Modified:
>>   branches/015/Compile/bin/UnionSandbox
>> Log:
>> Bring unionfs back to life in ChrootCompile.
>>
>> Modified: branches/015/Compile/bin/UnionSandbox
>> ===================================================================
>> --- branches/015/Compile/bin/UnionSandbox       2009-12-19 04:14:30 UTC (rev 
>> 4243)
>> +++ branches/015/Compile/bin/UnionSandbox       2009-12-19 05:20:36 UTC (rev 
>> 4244)
>> @@ -187,12 +187,15 @@
>>  echo "#!/bin/bash" >"${sandbox_mp}/.wrapper"
>>  echo "cd $newpwd" >>"${sandbox_mp}/.wrapper"
>>  Args_To_Array command >> "${sandbox_mp}/.wrapper"
>> -echo "mkdir -p $goboDevices; mount -t tmpfs none $goboDevices" >> 
>> "${sandbox_mp}/.wrapper"
>> -echo "mkdir -p $goboStatus; mount -t proc none $goboStatus" >> 
>> "${sandbox_mp}/.wrapper"
>> -echo "cp -aR \"${goboLibraries}/udev/devices/\"* $goboDevices" >> 
>> "${sandbox_mp}/.wrapper"
>> -if Executable_Exists_In_Path "udevadm"
>> -then echo "udevadm trigger && udevadm settle --timeout=10" >> 
>> "${sandbox_mp}/.wrapper"
>> -else echo "udevtrigger && udevsettle" >> "${sandbox_mp}/.wrapper"
>> +if [ "$unionbackend" != "unionfs" ]
>> +then
>> +    echo "mkdir -p $goboDevices; mount -t tmpfs none $goboDevices" >> 
>> "${sandbox_mp}/.wrapper"
>> +    echo "mkdir -p $goboStatus; mount -t proc none $goboStatus" >> 
>> "${sandbox_mp}/.wrapper"
>> +    echo "cp -aR \"${goboLibraries}/udev/devices/\"* $goboDevices" >> 
>> "${sandbox_mp}/.wrapper"
>> +    if Executable_Exists_In_Path "udevadm"
>> +    then echo "udevadm trigger && udevadm settle --timeout=10" >> 
>> "${sandbox_mp}/.wrapper"
>> +    else echo "udevtrigger && udevsettle" >> "${sandbox_mp}/.wrapper"
>> +    fi
>>  fi
>>  echo "\"\${comma...@]}\"" >>"${sandbox_mp}/.wrapper"
>>
> Why doesn't unionfs need these entries in the wrapper?

Because when we attempt to access /proc in the sandbox we will get a
stale directory. It looks like it gets pretty confused when procfs is
mounted under the union-mounts, at least with the latest kernel.

-- 
Lucas
"If you're looking for a reason I've a reason to give: pleasure,
little treasure"
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to