[Bug 1198523] lvm2.spec %post deletes libdevmapper and triggers kernel panic
https://bugzilla.suse.com/show_bug.cgi?id=1198523 https://bugzilla.suse.com/show_bug.cgi?id=1198523#c23 --- Comment #23 from heming zhao <heming.zhao@suse.com> --- For tracing the code change, I post patch here: ``` --- lvm2-a/lvm2.spec 2022-08-03 23:38:32.000000000 +0800 +++ lvm2-b/lvm2.spec 2022-09-02 18:39:44.980446874 +0800 @@ -472,7 +472,9 @@ Device mapper main shared library %{_libdir}/libdevmapper.so.1.02 %post -n %{libname} -if [ -f /%{_lib}/libdevmapper.so.1.03 ]; then +# Below 'if -L' checks link dir from bsc#1198523. +# TW already use 'usrmerged' to protect deleting +if [ -f /%{_lib}/libdevmapper.so.1.03 ] && [ ! -L /%{_lib} ]; then # Special migration - the library is now in %{_libdir}, but up to the point where # zypp removes the 'old' device-mapper package, the old library 'wins' the ldloader race # resulting in binaries asking for the newer version still getting the old one. ``` -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com