tazlito rev 73
Do not link syslinks
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 09 08:18:04 2008 +0000 (2008-06-09) |
parents | fa94f9589062 |
children | e4edfca36bc0 |
files | tazlito |
line diff
1.1 --- a/tazlito Fri Jun 06 23:28:36 2008 +0000 1.2 +++ b/tazlito Mon Jun 09 08:18:04 2008 +0000 1.3 @@ -271,23 +271,6 @@ 1.4 echo "$save bytes saved in duplicate files." 1.5 ) 1.6 1.7 - # Link duplicate links 1.8 - find . -type l -size +0c -exec stat -c '%s-%a-%u-%g %i %h %n' {} \; | \ 1.9 - sort | ( save=0; old_attr=""; old_inode=""; old_link=""; old_file="" 1.10 - while read attr inode link file; do 1.11 - if [ "$attr" = "$old_attr" -a "$inode" != "$old_inode" ]; then 1.12 - if [ "$(readlink $file)" = "$(readlink $old_file)" ]; then 1.13 - rm -f "$file" 1.14 - ln "$old_file" "$file" 1.15 - inode="$old_inode" 1.16 - [ "$link" = "1" ] && save="$(expr $save + ${attr%%-*})" 1.17 - fi 1.18 - fi 1.19 - old_attr="$attr" ; old_inode="$inode" ; old_file="$file" 1.20 - done 1.21 - echo "$save bytes saved in duplicate links." 1.22 - ) 1.23 - 1.24 # Use lzma if installed 1.25 if [ "$COMPRESSION" = "none" ]; then 1.26 echo -n "Generating uncompressed initramfs... "