From a7851faeb1523f83f1b063987aa2667cc33e6463 Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Fri, 16 Jun 2023 19:38:06 +0100 Subject: [PATCH] bl_getmenu_open: Read grub.cfg as root MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit On bookworm, "/boot/grub/grub.cfg" isn't accessible by user "osstest", so read the file as user "root". Signed-off-by: Anthony PERARD Acked-by: Roger Pau Monné --- Osstest/Debian.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 31d32d6..57f3197 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -139,7 +139,7 @@ sub debian_boot_setup ($$$$$;$) { sub bl_getmenu_open ($$$) { my ($ho, $rmenu, $lmenu) = @_; - target_getfile($ho, 60, $rmenu, $lmenu); + target_getfile_root($ho, 60, $rmenu, $lmenu); my $f= new IO::File $lmenu, 'r' or die "$lmenu $?"; return $f; } -- 2.39.5