|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [OSSTEST PATCH 16/36] 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 <anthony.perard@xxxxxxxxxx>
---
Osstest/Debian.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 31d32d6f..57f31977 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;
}
--
Anthony PERARD
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |