Skip to content

Commit 224bab1

Browse files
authored
Update dl-containerd.sh
1 parent 7949c03 commit 224bab1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

dl-containerd.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,23 +99,23 @@ _install_libseccomp() {
9999
fi
100100
if [[ -d usr/lib/x86_64-linux-gnu ]]; then
101101
find usr/lib/x86_64-linux-gnu/ -type f \( -iname '*.so' -or -iname '*.so.*' \) | xargs --no-run-if-empty -I '{}' chmod 0755 '{}'
102-
find usr/lib/x86_64-linux-gnu/ -iname 'lib*.so*' -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' /usr/bin/strip '{}'
103-
find usr/lib/x86_64-linux-gnu/ -iname '*.so' -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' /usr/bin/strip '{}'
102+
find usr/lib/x86_64-linux-gnu/ -iname 'lib*.so*' -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' strip '{}'
103+
find usr/lib/x86_64-linux-gnu/ -iname '*.so' -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' strip '{}'
104104
fi
105105
if [[ -d usr/lib64 ]]; then
106106
find usr/lib64/ -type f \( -iname '*.so' -or -iname '*.so.*' \) | xargs --no-run-if-empty -I '{}' chmod 0755 '{}'
107-
find usr/lib64/ -iname 'lib*.so*' -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' /usr/bin/strip '{}'
108-
find usr/lib64/ -iname '*.so' -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' /usr/bin/strip '{}'
107+
find usr/lib64/ -iname 'lib*.so*' -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' strip '{}'
108+
find usr/lib64/ -iname '*.so' -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' strip '{}'
109109
fi
110110
if [[ -d usr/sbin ]]; then
111-
find usr/sbin/ -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' /usr/bin/strip '{}'
111+
find usr/sbin/ -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' strip '{}'
112112
fi
113113
if [[ -d usr/bin ]]; then
114-
find usr/bin/ -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' /usr/bin/strip '{}'
114+
find usr/bin/ -type f -exec file '{}' \; | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped.*/\1/p' | xargs --no-run-if-empty -I '{}' strip '{}'
115115
fi
116116
echo
117117
rm -vf /usr/lib/x86_64-linux-gnu/libseccomp.a
118-
rm -vf /usr/lib/x86_64-linux-gnu/libseccomp.so.2.5.[1234]
118+
rm -vf /usr/lib/x86_64-linux-gnu/libseccomp.so*
119119
sleep 2
120120
/bin/cp -afr * /
121121
sleep 2

0 commit comments

Comments
 (0)