2014/1/16 Bruce Dubbs <[email protected]>:
> xinglp wrote:
>> 2014/1/15  <[email protected]>:
>>> Author: bdubbs
>>> Date: Tue Jan 14 11:36:32 2014
>>> New Revision: 10440
>>>
>>> Log:
>>> Clean /run and /tmp at the end of Chapter 6
>>> +++ trunk/BOOK/chapter06/revisedchroot.xml      Tue Jan 14 11:36:32 2014    
>>>     (r10440)
>>> @@ -10,10 +10,14 @@
>>>
>>>     <title>Cleaning Up</title>
>>>
>>> +  <para>Finally, clean up some extra files left around from running 
>>> tests:</para>
>>> +
>>> +<screen><userinput>rm -rf /run/* /tmp/*</userinput></screen>
>>> +
>
>> When I use jhalfs, I got "rm: cannot remove '/run/shm': Device or
>> resource busy" from here.
>
> I think you are trying to remove the files on your host if you did the
> logout in the 'Stripping Again' section without reentering chroot.
>
> If not, can you figure out what is using /run/shm inside chroot.  It
> shouldn't be anything.
At bottom of
http://www.linuxfromscratch.org/lfs/view/development/chapter06/kernfs.html
if [ -h $LFS/dev/shm ]; then
  link=$(readlink $LFS/dev/shm)  # $link is /run/shm
  mkdir -pv $LFS/$link
  mount -vt tmpfs shm $LFS/$link # so $LFS/run/shm is mount point.
  unset link
else
  mount -vt tmpfs shm $LFS/dev/shm
fi

>
>    -- Bruce
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-book
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to