Merge pull request #164060 from ncfavier/fix-installBootLoader

nixos/switch-to-configuration: fix installBootLoader escaping
This commit is contained in:
Janne Heß 2022-03-14 09:21:27 +01:00 committed by GitHub
commit 7668896154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,10 @@ openlog("nixos", "", LOG_USER);
# Install or update the bootloader.
if ($action eq "switch" || $action eq "boot") {
system('@installBootLoader@', $out) == 0 or exit 1;
chomp(my $installBootLoader = <<'EOFBOOTLOADER');
@installBootLoader@
EOFBOOTLOADER
system("$installBootLoader $out") == 0 or exit 1;
}
# Just in case the new configuration hangs the system, do a sync now.