Global replace /var/run/booted-system -> /run/booted-system

This commit is contained in:
Eelco Dolstra 2012-07-16 11:30:37 -04:00
parent 73532c3855
commit 98459eb675
3 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@
exec =
"klogd -c 1 -2 -n " +
"-k $(dirname $(readlink -f /var/run/booted-system/kernel))/System.map";
"-k $(dirname $(readlink -f /run/booted-system/kernel))/System.map";
};
}

View file

@ -24,7 +24,7 @@ with pkgs.lib;
# modules in the current configuration don't match the
# running kernel.
if [ ! -d "$MODULE_DIR/$(${pkgs.coreutils}/bin/uname -r)" ]; then
MODULE_DIR=/var/run/booted-system/kernel-modules/lib/modules/
MODULE_DIR=/run/booted-system/kernel-modules/lib/modules/
fi
exec ${pkgs.module_init_tools}/sbin/modprobe "$@"

View file

@ -155,12 +155,12 @@ $systemConfig/activate
# Record the boot configuration.
ln -sfn "$systemConfig" /var/run/booted-system
ln -sfn "$systemConfig" /run/booted-system
# Prevent the booted system form being garbage-collected If it weren't
# a gcroot, if we were running a different kernel, switched system,
# and garbage collected all, we could not load kernel modules anymore.
ln -sfn /var/run/booted-system /nix/var/nix/gcroots/booted-system
ln -sfn /run/booted-system /nix/var/nix/gcroots/booted-system
# Run any user-specified commands.