]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
kernel: make get_image_version() work for rpm 1919/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 14 Feb 2024 19:05:54 +0000 (20:05 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 14 Feb 2024 19:16:02 +0000 (20:16 +0100)
commit6098bd3bcb701f6ac3cbac9e4598d65b409f8abc
treed49a442c2fb1209ade45563c283620d542692b8c
parent9e44c16382dfc4c612f7437cbb344c76223137cc
kernel: make get_image_version() work for rpm

At some point in the past, the layout of the rpm package has changed.
There is no file matching "/boot/vmlinuz-" there anymore, instead there
is "vmlinuz" file at the root of the modules directory.  For reference:

deb:

-rw-r--r-- root/root  11527168 2024-02-13 16:25 ./boot/vmlinuz-6.8.0-rc4-ga64ccd305b28
-rw-r--r-- root/root     72614 2024-02-13 16:25 ./lib/modules/6.8.0-rc4-ga64ccd305b28/modules.order

rpm:

/lib/modules/6.8.0-rc4-ga64ccd305b28/modules.order
/lib/modules/6.8.0-rc4-ga64ccd305b28/vmlinuz

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
teuthology/task/kernel.py