xinglp wrote:
> 2014/1/16 Bruce Dubbs <bruce.du...@gmail.com>:
>> xinglp wrote:
>>> 2014/1/15  <bdu...@higgs.linuxfromscratch.org>:
>>>> 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

OK, thanks.  Can you test:

rm -rf --one-file-system /run/* /tmp/*

   -- Bruce
-- 
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