The file "/boot/grub/grub.cfg" on Debian Bookworm isn't accessible
from the "osstest" user, but target_editfile_root() tries to grab the
file as "osstest" then edit it as "root.
Change teditfileex() to use the same $user also to get the file. This
will fix ts-examine-serial-pre step.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
logm("editing $rfile to $rdest as $lfile".'{,.new}');
}
- target_getfile($ho, 60, $rfile, $lfile);
+ tgetfileex($user, $ho, 60, $rfile, $lfile);
open '::EI', "$lfile" or die "$lfile: $!";
open '::EO', "> $lfile.new" or die "$lfile.new: $!";