Permalink
Browse files

30usrmove/usrmove-convert.sh: rename duplicate libraries

ldconfig does not ignore the duplicate leftover libs with a .usrmove~
suffix, so we rename ".so" to "_so".
  • Loading branch information...
1 parent 6334ffd commit 5ebad51b8461d501613f86bcc46fdda4eddbdaf9 @haraldh haraldh committed Jan 26, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 modules.d/30usrmove/usrmove-convert.sh
@@ -141,6 +141,14 @@ for dir in bin sbin lib lib64; do
&& rm -rf "$ROOT/${dir}.usrmove-old~" || :
done
+for dir in lib lib64; do
+ [[ -d "$ROOT/$dir" ]] || continue
+ for lib in "$ROOT"/usr/${dir}/lib*.so*.usrmove~; do
+ [[ -f $lib ]] || continue
+ mv $lib ${lib/.so/_so}
+ done
+done
+
set +e
echo "Run ldconfig."

0 comments on commit 5ebad51

Please sign in to comment.