From: Alessandro Bono <alessandro.bono@gmail.com>
To: drbd-dev@lists.linbit.com
Subject: [Drbd-dev] fix %preun script in drbd-km.spec from 8.3 package
Date: Fri, 26 Oct 2012 13:03:01 +0000 (UTC) [thread overview]
Message-ID: <k6e1m5$n09$1@ger.gmane.org> (raw)
Hi
%preun script in drbd-km.spec try to unload drbd.ko if present without check kernel version running
without this patch it's not possible to remove drbd-km package of old kernel
--- drbd-8.3.13/drbd-km.spec 2012-10-26 13:43:43.163366400 +0200
+++ drbd-8.3.13.my/drbd-km.spec 2012-10-26 13:44:33.368384889 +0200
@@ -80,10 +80,12 @@
rm -rf %{buildroot}
%preun %{krelver}
+if [ 'uname -r' = %{kernelversion} ]; then
lsmod | grep drbd > /dev/null 2>&1
if [ $? -eq 0 ]; then
rmmod drbd
fi
+fi
%post %{krelver}
# hack for distribution kernel packages,
next reply other threads:[~2012-10-26 13:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-26 13:03 Alessandro Bono [this message]
2012-10-29 10:22 ` [Drbd-dev] fix %preun script in drbd-km.spec from 8.3 package Lars Ellenberg
2012-10-29 20:52 ` Alessandro Bono
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='k6e1m5$n09$1@ger.gmane.org' \
--to=alessandro.bono@gmail.com \
--cc=drbd-dev@lists.linbit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox