]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kernel.py: put submenu name in 01_ceph_kernel if necessary
authorDan Mick <dan.mick@inktank.com>
Tue, 9 Apr 2013 22:53:49 +0000 (15:53 -0700)
committerDan Mick <dan.mick@inktank.com>
Fri, 12 Apr 2013 22:49:15 +0000 (15:49 -0700)
commit52cdaae683f162b36c7bb044084329a681ab874c
treeec341c35d245125966fc61736ce3d73ae6c8dd6d
parent9c9baef6808881e429de89fc2c23c5674f8285ec
kernel.py: put submenu name in 01_ceph_kernel if necessary

We had been writing 01_ceph_kernel with the kernel title, and
relying on the fact that grub.cfg would never have submenus in it
(implemented by a hack to /etc/grub.d/10_linux which neutered its
submenu creation).  However, that hack was modifying a package file,
and got in the way of later apt commands.  Rather than doing it
that way, this divines the title of the submenu and sets the
default variable to "submenu>kernel", which works to select the
desired kernel.

It depends on there being only one level of submenu, and on the
format of the menuentry and submenu commands, dictated by grub2.
None of this is likely to work at all outside Ubuntu.

Fixes: #4496
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit 52aec32a7da07ca6e9a22ecedde78dafb4b74dfc)
teuthology/task/kernel.py