LFS Trac wrote these words on 04/12/06 19:07 CST:
> #1657: Chapter 5 Stripping Notes -- need updating to reflect current numbers
>
> Comment (by [EMAIL PROTECTED]):
>
> From my tests, a little over 6 MB is saved from stripping and 19 MB from
> removing info/man/doc files.
Wow. I see 120mb of cleanup after running my cleaning process on
/tools. But then, I do a bit more cleanup than the book says. To me,
the book only does a partial clean-up, if you want to do it right,
then the removed files are significantly more. I've posted about this
before and it went uncommented. I'll post my cleanup script again
which achieve these results:
[EMAIL PROTECTED]: ~/build/Logs/LFS_Tools/Post-Installation > ls -l
total 980
-r--r----- 1 rml install 36 Mar 21 14:22 du_after_condense.log
-r--r----- 1 rml install 36 Mar 21 14:09 du_before_condense.log
-r--r----- 1 rml install 1711 Mar 21 14:23 installed-list.log
-r--r----- 1 rml install 2332 Mar 21 14:10 strip_binfiles.log
-r--r----- 1 rml install 112306 Mar 21 14:15 strip_libfiles.log
-r--r----- 1 rml install 793237 Mar 21 14:24 tools-filelist.log
-r--r----- 1 rml install 62445 Mar 21 14:16 tools_cleanup.log
[EMAIL PROTECTED]: ~/build/Logs/LFS_Tools/Post-Installation > cat du_be*.log
486400 /mnt/rmlscsinew
486400 total
[EMAIL PROTECTED]: ~/build/Logs/LFS_Tools/Post-Installation > cat du_af*.log
366496 /mnt/rmlscsinew
366496 total
Here is the cleanup steps I use:
#Cleanup /tools
install -v -m755 -d Installed/Post-Installation
du -scxk --exclude='lost+found' $LFS
>Installed/Post-Installation/du_before_condense.log 2>&1
cat Installed/Post-Installation/du_before_strip_start.log
/usr/bin/find /tools/{{,s,i686-pc-linux-gnu/}bin,libexec} \
-type f \
-exec /usr/bin/strip --strip-all {} \; \
>Installed/Post-Installation/strip_binfiles.log 2>&1
cat Installed/Post-Installation/strip_binfiles.log | grep -v "File format not
recognized"
/usr/bin/find /tools/lib \
-type f \
-exec /usr/bin/strip --strip-debug {} \; \
>Installed/Post-Installation/strip_libfiles.log 2>&1
cat Installed/Post-Installation/strip_libfiles.log | grep -v "File format not
recognized"
rm -v -rf /tools/{info,man,share/{doc,man}}
>Installed/Post-Installation/tools_cleanup.log 2>&1
rmdir -v /tools/var >>Installed/Post-Installation/tools_cleanup.log 2>&1
vi Installed/Post-Installation/tools_cleanup.log
du -scxk --exclude='lost+found' $LFS
>Installed/Post-Installation/du_after_condense.log 2>&1
cat Installed/Post-Installation/du_*_condense.log
--
Randy
rmlscsi: [bogomips 1003.28] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
19:27:00 up 18 days, 7:04, 2 users, load average: 0.03, 0.16, 0.08
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page