[opensuse-ja] Fwd: [Bug 826781] New: multiple versions of kernel packages are left installed after updating the kernel
古いkernelが残っているのがそもそもの問題なのだという bug reportが出されましたね。 ---------- Forwarded message ---------- From: <bugzilla_noreply@novell.com> Date: 2013/6/26 Subject: [Bug 826781] New: multiple versions of kernel packages are left installed after updating the kernel To: opensuse-bugs@opensuse.org https://bugzilla.novell.com/show_bug.cgi?id=826781 https://bugzilla.novell.com/show_bug.cgi?id=826781#c0 Summary: multiple versions of kernel packages are left installed after updating the kernel Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: i586 OS/Version: openSUSE 12.3 Status: NEW Severity: Major Priority: P5 - None Component: Update Problems AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Ulrich.Windl@rz.uni-regensburg.de QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0 After updating the kernel, obsolete kernel packages (including sources) are not removed, possible visible in the boot menu. For example I have:
rpm -qa kernel\* kernel-syms-3.7.10-1.11.1.i586 kernel-source-3.7.10-1.11.1.noarch kernel-desktop-devel-3.7.10-1.16.1.i686 kernel-devel-3.7.10-1.11.1.noarch kernel-syms-3.7.10-1.16.1.i586 kernel-docs-3.7.10-1.16.1.noarch kernel-default-devel-3.7.10-1.11.1.i586 kernel-default-3.7.10-1.16.1.i586 kernel-pae-devel-3.7.10-1.16.1.i686 kernel-xen-devel-3.7.10-1.11.1.i686 kernel-firmware-20130114git-1.2.1.noarch kernel-devel-3.7.10-1.16.1.noarch kernel-default-devel-3.7.10-1.16.1.i586 kernel-desktop-devel-3.7.10-1.11.1.i686 kernel-xen-devel-3.7.10-1.16.1.i686 kernel-default-3.7.10-1.11.1.i586 kernel-pae-devel-3.7.10-1.11.1.i686 kernel-source-3.7.10-1.16.1.noarch
This is not what the user wants! Seen on three different machines. Reproducible: Always Steps to Reproduce: 1. Run online update, replacing the current kernel 2. Reboot Actual Results: Old kernel(s) are still installed Expected Results: Old kernel should be removed (at least after the next successful boot) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. -- 1xx <ItSANgo@gmail.com> <https://twitter.com/ItSANgo> <http://d.hatena.ne.jp/Itisango/> -- To unsubscribe, e-mail: opensuse-ja+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ja+owner@opensuse.org
2013/6/26 1xx <itsango@gmail.com>:
古いkernelが残っているのがそもそもの問題なのだという bug reportが出されましたね。
---------- Forwarded message ---------- From: <bugzilla_noreply@novell.com> Date: 2013/6/26 Subject: [Bug 826781] New: multiple versions of kernel packages are left installed after updating the kernel To: opensuse-bugs@opensuse.org
このreportにcommentがついて、そういう仕様なのだということの様です。 /etc/zypp/zypp.conf : multiversion = provides:multiversion(kernel) multiversion.kernels = latest,latest-1,running ここで、残されるkernelの版が管理されていて Run as root: systemctl enable purge-kernels これでkernelのpurgeが有効になるとの事だそうです。 defaultではdisableになっているようです。 systemctl status purge-kernels purge-kernels.service - Purge old kernels Loaded: loaded (/usr/lib/systemd/system/purge-kernels.service; disabled) Active: inactive (dead) CGroup: name=systemd:/system/purge-kernels.service enableにしたらsymlinkが張られます。 sudo systemctl enable purge-kernels root's password: ln -s '/usr/lib/systemd/system/purge-kernels.service' '/etc/systemd/system/multi-user.target.wants/purge-kernels.service' systemctl status purge-kernels purge-kernels.service - Purge old kernels Loaded: loaded (/usr/lib/systemd/system/purge-kernels.service; enabled) Active: inactive (dead) CGroup: name=systemd:/system/purge-kernels.service リブートしたらpurge-kernelが動き出しました。 systemctl status purge-kernels purge-kernels.service - Purge old kernels Loaded: loaded (/usr/lib/systemd/system/purge-kernels.service; enabled) Active: activating (start) since Wed, 2013-06-26 16:53:12 JST; 1min 27s ago Process: 541 ExecStartPre=/bin/rm -f /boot/do_purge_kernels (code=exited, status=0/SUCCESS) Main PID: 588 (purge-kernels) CGroup: name=systemd:/system/purge-kernels.service ├ 588 /usr/bin/perl /sbin/purge-kernels └ 2701 rpm -e kernel-desktop-3.7.10-1.1.1.x86_64 kernel-d... しばらくしたらpurgeが終わったようで、以下のように状態が変わりました。 systemctl status purge-kernels purge-kernels.service - Purge old kernels Loaded: loaded (/usr/lib/systemd/system/purge-kernels.service; enabled) Active: inactive (dead) since Wed, 2013-06-26 16:55:03 JST; 2min 0s ago Process: 588 ExecStart=/sbin/purge-kernels (code=exited, status=0/SUCCESS) Process: 541 ExecStartPre=/bin/rm -f /boot/do_purge_kernels (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/purge-kernels.service はずかしながらsystemctlの使い方を初めて知りました。 勉強になりました。 -- 1xx <ItSANgo@gmail.com> <https://twitter.com/ItSANgo> <http://d.hatena.ne.jp/Itisango/> -- To unsubscribe, e-mail: opensuse-ja+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ja+owner@opensuse.org
participants (1)
-
1xx