On 21.9.2011 16:40, Freigeist wrote:
I didn't want to wait until this package shows up in factory, so I decided to do some preliminary testing on my own.
I downloaded it from here
https://build.opensuse.org/package/files?package=mkinitrd&project=openSUSE%3AFactory
and extracted and put only the purge-kernels script of this package into /sbin of two different installations.
I took a look into the purge-kernels.init script (which seems to equal the purge-kernel shell script on my systems in /etc/init.d/). It says that the file /boot/do_purge_kernels hast to be present to execute the /sbin/purge-kernels script after a new kernel has been installed. I assume, that this do_purge-kernels file will be created during or after installation of a new kernel but I don't have a clue what creates or should create it. So I took care of if this file will be created after a kernel installation.
The setup
[...] Thanks for the thorough testing!
Results
The purge-kernels script is working as expected and is removing older kernels as configured in zypp.conf, including -source and -devel packages.
Great.
But for whatever reason the /boot/do_purge_kernels file is not created after the installation of a new kernel so that, as a result of this, the purge-kernels script will not be executed on the next reboot.
This is something I don't understand since it has been working in the past and the only change I did to the two systems was to use the purge-kernels script of the new mkinitrd package.
This is created by the kernel %post, but you were using the 11.4 kernel, which did not have this feature yet. Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org