Skip to content

cli: Read grub.cfg as root

Ryan Roberts requested to merge ryarob01/grub-cfg-lockdown into main

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

Merge request reports

Loading