storage: Handle grub-pc package not available
On systems where the grub-pc package is not available (e.g. ARM), dpkg-query will have an exit status of 1. Handle the error that is raised in this case.
Tests:
-
Added unit tests for storage._diagnose_grub_configured.
-
Tested on Raspberry Pi 4 with FreedomBox testing with custom FreedomBox package. The diagnostic is skipped and not shown in Storage module.
Closes: #2441 (closed)
Signed-off-by: James Valleroy jvalleroy@mailbox.org
Edited by James Valleroy