Synced with trunk @ 15661

svn path=/nixos/branches/modular-nixos/; revision=15667
This commit is contained in:
Marc Weber 2009-05-19 23:51:13 +00:00
parent 224931fc9c
commit c2362f1bf1
4 changed files with 17 additions and 17 deletions

View File

@ -227,7 +227,7 @@ let
in in
let let
inherit (pkgs.stringsWithDeps) noDepEntry FullDepEntry PackEntry; inherit (pkgs.stringsWithDeps) noDepEntry fullDepEntry packEntry;
activateLib = config.system.activationScripts.lib; activateLib = config.system.activationScripts.lib;
@ -265,7 +265,7 @@ in
}; };
activationScripts = { activationScripts = {
etc = FullDepEntry '' etc = fullDepEntry ''
# Set up the statically computed bits of /etc. # Set up the statically computed bits of /etc.
staticEtc=/etc/static staticEtc=/etc/static
rm -f $staticEtc rm -f $staticEtc

View File

@ -103,7 +103,7 @@ let
buildInputs = [mkfontdir mkfontscale ttmkfdir]; buildInputs = [mkfontdir mkfontscale ttmkfdir];
configureFlags = []; configureFlags = [];
inherit fontDirs; inherit fontDirs;
installPhase = FullDepEntry (" installPhase = fullDepEntry ("
list=''; list='';
for i in ${toString fontDirs} ; do for i in ${toString fontDirs} ; do
if [ -d \$i/ ]; then if [ -d \$i/ ]; then

View File

@ -73,7 +73,7 @@ in
###### implementation ###### implementation
let let
inherit (pkgs.stringsWithDeps) noDepEntry FullDepEntry PackEntry; inherit (pkgs.stringsWithDeps) noDepEntry fullDepEntry packEntry;
inherit (pkgs.lib) mapRecordFlatten; inherit (pkgs.lib) mapRecordFlatten;
activateLib = config.system.activationScripts.lib; activateLib = config.system.activationScripts.lib;
@ -113,7 +113,7 @@ in
done done
''; '';
stdio = FullDepEntry '' stdio = fullDepEntry ''
# Needed by some programs. # Needed by some programs.
ln -sfn /proc/self/fd /dev/fd ln -sfn /proc/self/fd /dev/fd
ln -sfn /proc/self/fd/0 /dev/stdin ln -sfn /proc/self/fd/0 /dev/stdin
@ -123,7 +123,7 @@ in
activateLib.defaultPath # path to ln activateLib.defaultPath # path to ln
]; ];
binsh = FullDepEntry '' binsh = fullDepEntry ''
# Create the required /bin/sh symlink; otherwise lots of things # Create the required /bin/sh symlink; otherwise lots of things
# (notably the system() function) won't work. # (notably the system() function) won't work.
mkdir -m 0755 -p $mountPoint/bin mkdir -m 0755 -p $mountPoint/bin
@ -133,7 +133,7 @@ in
activateLib.stdio # ? activateLib.stdio # ?
]; ];
modprobe = FullDepEntry '' modprobe = fullDepEntry ''
# Allow the kernel to find our wrapped modprobe (which searches in the # Allow the kernel to find our wrapped modprobe (which searches in the
# right location in the Nix store for kernel modules). We need this # right location in the Nix store for kernel modules). We need this
# when the kernel (or some module) auto-loads a module. # when the kernel (or some module) auto-loads a module.
@ -144,7 +144,7 @@ in
# ? # ?
]; ];
var = FullDepEntry '' var = fullDepEntry ''
# Various log/runtime directories. # Various log/runtime directories.
mkdir -m 0755 -p /var/run mkdir -m 0755 -p /var/run
mkdir -m 0755 -p /var/run/console # for pam_console mkdir -m 0755 -p /var/run/console # for pam_console
@ -172,7 +172,7 @@ in
activateLib.defaultPath # path to mkdir & touch & chmod activateLib.defaultPath # path to mkdir & touch & chmod
]; ];
rootPasswd = FullDepEntry '' rootPasswd = fullDepEntry ''
# If there is no password file yet, create a root account with an # If there is no password file yet, create a root account with an
# empty password. # empty password.
if ! test -e /etc/passwd; then if ! test -e /etc/passwd; then
@ -192,7 +192,7 @@ in
# ? # ?
]; ];
nix = FullDepEntry '' nix = fullDepEntry ''
# Set up Nix. # Set up Nix.
mkdir -p /nix/etc/nix mkdir -p /nix/etc/nix
ln -sfn /etc/nix.conf /nix/etc/nix/nix.conf ln -sfn /etc/nix.conf /nix/etc/nix/nix.conf
@ -221,7 +221,7 @@ in
activateLib.users # nixbld group activateLib.users # nixbld group
]; ];
path = FullDepEntry '' path = fullDepEntry ''
PATH=${config.system.path}/bin:${config.system.path}/sbin:$PATH PATH=${config.system.path}/bin:${config.system.path}/sbin:$PATH
'' [ '' [
activateLib.defaultPath activateLib.defaultPath
@ -249,7 +249,7 @@ in
'') '')
config.security.setuidOwners); config.security.setuidOwners);
in FullDepEntry '' in fullDepEntry ''
# Make a few setuid programs work. # Make a few setuid programs work.
save_PATH="$PATH" save_PATH="$PATH"
@ -284,7 +284,7 @@ in
activateLib.users activateLib.users
]; ];
hostname = FullDepEntry '' hostname = fullDepEntry ''
# Set the host name. Don't clear it if it's not configured in the # Set the host name. Don't clear it if it's not configured in the
# NixOS configuration, since it may have been set by dhclient in the # NixOS configuration, since it may have been set by dhclient in the
# meantime. # meantime.
@ -302,7 +302,7 @@ in
# The activation have to be done at the end. Therefore, this entry # The activation have to be done at the end. Therefore, this entry
# depends on all scripts declared in the activation library. # depends on all scripts declared in the activation library.
activate = FullDepEntry '' activate = fullDepEntry ''
# Make this configuration the current configuration. # Make this configuration the current configuration.
# The readlink is there to ensure that when $systemConfig = /system # The readlink is there to ensure that when $systemConfig = /system
# (which is a symlink to the store), /var/run/current-system is still # (which is a symlink to the store), /var/run/current-system is still

View File

@ -140,7 +140,7 @@ let
in in
let let
inherit (pkgs.stringsWithDeps) FullDepEntry; inherit (pkgs.stringsWithDeps) fullDepEntry;
activateLib = config.system.activationScripts.lib; activateLib = config.system.activationScripts.lib;
@ -159,7 +159,7 @@ in
system = { system = {
activationScripts = { activationScripts = {
users = FullDepEntry '' users = fullDepEntry ''
cat ${usersFile} | while true; do cat ${usersFile} | while true; do
read name || break read name || break
read description read description
@ -206,7 +206,7 @@ in
activateLib.groups activateLib.groups
]; ];
groups = FullDepEntry '' groups = fullDepEntry ''
while true; do while true; do
read name || break read name || break
read gid read gid