luci-app-attendedsysupgrade: fix missing efi path
authorPaul Spooren <mail@aparcar.org>
Wed, 9 Mar 2022 10:29:59 +0000 (11:29 +0100)
committerPaul Spooren <mail@aparcar.org>
Wed, 9 Mar 2022 10:31:25 +0000 (11:31 +0100)
commit65266c490a40e589bde23acb1bcac401813c43ce
treef7c1e6fe91d468367314672762aa5e0f0e36feef
parent1eddbe0f3f0b00366694424f1445ea6cceb7d7d5
luci-app-attendedsysupgrade: fix missing efi path

If running on a non EFI system, the file `/sys/firmware/efi` is not
available and therefore results in an error of `fs.stat`. Wrap it with
`L.resolveDefault` to avoid the error message and make it work on
non-EFI devices again.

Signed-off-by: Paul Spooren <mail@aparcar.org>
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js