[issue1069] grml-live: Bad detection of kernel versions

Jordan Metzmeier bts at bts.grml.org
Tue Oct 18 21:44:06 CEST 2011


New submission from Jordan Metzmeier <jmetzmeier at hostgator.com>:

In the script /etc/grml/fai/grml/grml_cleanup_chroot, the latest kernel version is detected by 
looking in the /lib/modules/ and reverse sorting the entries by locale. This hits a bug when 
directories that are not associated with a specific kernel version are placed in /lib/modules. I 
patched this file to look at /boot/vmlinuz-* rather than /lib/modules. My patch does expect the 
kernel image to start with vmlinuz, but this should be a safe assumption as this is they way 
kernel-package will name the file. Like the original method, it is locale dependent. 

I am attaching the patch.

----------
files: kernel-ver.patch
messages: 3982
nosy: jordanm
priority: bug
status: unread
title: grml-live: Bad detection of kernel versions
topic: grml-live

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1069>
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel-ver.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://ml.grml.org/pipermail/bugs-changes/attachments/20111018/fd1eeb5a/attachment.bin>


More information about the Bugs-changes mailing list