]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology/task/kernel: use sudo to examine grub.cfg kernel-grub-ubuntu 2209/head
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 27 May 2026 02:46:52 +0000 (22:46 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 28 May 2026 18:34:32 +0000 (14:34 -0400)
Ubuntu 24.04 apparently protects this:

    2026-05-24T09:00:23.747 DEBUG:teuthology.orchestra.run:got remote process result: 2
    2026-05-24T09:00:23.747 INFO:teuthology.orchestra.run.trial136.stderr:grep: /boot/grub/grub.cfg: Permission denied

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
teuthology/task/kernel.py

index a96f2ce8070f83f02b7418dbb2038e7297acd4dc..85a69d917252cb47ae003a68fc3d838eaf3a3a51 100644 (file)
@@ -550,6 +550,7 @@ def install_and_reboot(ctx, need_install, config):
         # complex this will totally break.
 
         kernel_entries = role_remote.sh([
+                'sudo',
                 'grep', '-E',
                 '(submenu|menuentry.*' + kernel_title + ').*{',
                 '/boot/grub/grub.cfg'