From 25c3c03e241de17d69317e870ee5b113ceb36315 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Sat, 18 Feb 2023 12:49:22 -0800 Subject: [PATCH] filelist/osksdl: fix crash when osk-sdl isn't found Should have returned an empty FileList in this case --- internal/filelist/osksdl/osksdl.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/filelist/osksdl/osksdl.go b/internal/filelist/osksdl/osksdl.go index ce93ef0..4d993db 100644 --- a/internal/filelist/osksdl/osksdl.go +++ b/internal/filelist/osksdl/osksdl.go @@ -27,12 +27,12 @@ func New(mesaDriverName string) *OskSdl { // Get a list of files and their dependencies related to supporting rootfs full // disk (d)encryption func (s *OskSdl) List() (*filelist.FileList, error) { - if !misc.Exists("/usr/bin/osk-sdl") { - return nil, nil - } - log.Println("- Including osk-sdl support") - files := filelist.NewFileList() + if !misc.Exists("/usr/bin/osk-sdl") { + return files, nil + } + + log.Println("- Including osk-sdl support") confFiles := []string{ "/etc/osk.conf",