In the LFS cleanfs script, we have the construct:

 cd /tmp &&
 find . -xdev -mindepth 1 ! -name lost+found \
    -delete || failed=1

Since I test build a lot of apps in /tmp, this instruction can take a
very long time upon bootup.  Can we change it to make the process a bit
faster?  How about something like:

for file in /tmp/*; do
  if [ $file != lost+found ]; then rm -r $file; fi
done

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

Reply via email to