* The activation script can't use /bin/sh as its interpreter because
it creates the /bin/sh symlink, which may not exist yet (esp. when booting from CD). svn path=/nixos/branches/modular-nixos/; revision=15875
This commit is contained in:
parent
e4e408293e
commit
f9cfe7c4ee
@ -205,7 +205,7 @@ in
|
|||||||
activateLibNames = attrNames activateLib;
|
activateLibNames = attrNames activateLib;
|
||||||
in {
|
in {
|
||||||
script = pkgs.writeScript "nixos-activation-script"
|
script = pkgs.writeScript "nixos-activation-script"
|
||||||
("#!/bin/sh\n"
|
("#! ${pkgs.stdenv.shell}\n"
|
||||||
+ textClosureMap id activateLib activateLibNames + "\n"
|
+ textClosureMap id activateLib activateLibNames + "\n"
|
||||||
# make sure that the activate snippet is added last.
|
# make sure that the activate snippet is added last.
|
||||||
+ withHeadlines.activate.text);
|
+ withHeadlines.activate.text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user