cli: Read grub.cfg as root
Some systems lock down grub.cfg so that it is only readable by root.
Therefore, on these systems, ctx.get() would fail because it runs as the
regular user. Work around this with "sudo cat" then capture the stdout.
Signed-off-by:
Ryan Roberts <ryan.roberts@arm.com>
Loading
Please register or sign in to comment