From: Anthony PERARD Date: Fri, 16 Jun 2023 18:38:06 +0000 (+0100) Subject: bl_getmenu_open: Read grub.cfg as root X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a7851faeb1523f83f1b063987aa2667cc33e6463;p=osstest.git bl_getmenu_open: Read grub.cfg as root 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é --- 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; }