Merge pull request #164060 from ncfavier/fix-installBootLoader
nixos/switch-to-configuration: fix installBootLoader escaping
This commit is contained in:
commit
7668896154
5
nixos/modules/system/activation/switch-to-configuration.pl
Normal file → Executable file
5
nixos/modules/system/activation/switch-to-configuration.pl
Normal file → Executable 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.
|
||||
|
Loading…
Reference in New Issue
Block a user