nixos/grub: fix editor check

This commit is contained in:
Sandro Jäckel 2021-02-18 22:25:57 +01:00
parent 237b543c53
commit c75d7d2f8c
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -356,11 +356,11 @@ else {
if ($suffix eq ".jpg") { if ($suffix eq ".jpg") {
$suffix = ".jpeg"; $suffix = ".jpeg";
} }
if ($backgroundColor) { if ($backgroundColor) {
$conf .= " $conf .= "
background_color '$backgroundColor' background_color '$backgroundColor'
"; ";
} }
copy $splashImage, "$bootPath/background$suffix" or die "cannot copy $splashImage to $bootPath: $!\n"; copy $splashImage, "$bootPath/background$suffix" or die "cannot copy $splashImage to $bootPath: $!\n";
$conf .= " $conf .= "
insmod " . substr($suffix, 1) . " insmod " . substr($suffix, 1) . "