nixpkgs/nixos/modules/system/boot
Bjørn Forsman 74d5adcb4d nixos: move environment.{variables => sessionVariables}.MODULE_DIR
This solves the problem that modprobe does not know about $MODULE_DIR
when run via sudo, and instead wrongly tries to read /lib/modules/:

  $ sudo strace -efile modprobe foo |& grep modules
  open("/lib/modules/3.14.37/modules.softdep", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  open("/lib/modules/3.14.37/modules.dep.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  open("/lib/modules/3.14.37/modules.dep.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  open("/lib/modules/3.14.37/modules.alias.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

Without this patch, one would have to use sudo -E (preserves environment
vars). But that option is reserved for sudo users with extra rights
(SETENV), so it's not a solution.

environment.sessionVariables are set by PAM, so they are included in the
environment used by sudo.
2015-06-14 18:56:58 +02:00
..
loader Merge branch 'nixos-subdir' 2015-06-13 15:18:12 +02:00
coredump.nix Added config options for systemd-coredump functionality. 2015-05-24 18:22:53 -06:00
emergency-mode.nix
kernel.nix Forcing the load of atkbd in initrd. 2015-06-10 12:16:25 +02:00
kexec.nix
luksroot.nix Style fix 2015-05-04 14:18:14 +02:00
modprobe.nix nixos: move environment.{variables => sessionVariables}.MODULE_DIR 2015-06-14 18:56:58 +02:00
networkd.nix networkd: Fix evaluation of systemd.network units. 2015-04-30 06:49:10 +02:00
pbkdf2-sha512.c
readonly-mountpoint.c
resolved.nix Don't include networkd units unless enabled 2015-04-19 22:06:45 +02:00
shutdown.nix
stage-1-init.sh stage-1: mkdir -p /mnt-root, it may be created earlier by some hooks 2015-06-13 15:02:51 +02:00
stage-1.nix nixos/initrd: Do a lazy library copy in hopes to save some space for replaced binaries 2015-03-29 21:53:25 -07:00
stage-2-init.sh Revert "Set stricter permissions on /nix/store" 2015-04-07 15:10:41 +02:00
stage-2.nix stage-2-init: Don't depend on sysvtools 2015-04-20 11:32:28 +02:00
systemd-lib.nix networkd: Fix evaluation of systemd.network units. 2015-04-30 06:49:10 +02:00
systemd-unit-options.nix networkd: Fix evaluation of systemd.network units. 2015-04-30 06:49:10 +02:00
systemd.nix Apply some overrides to upstream systemd units 2015-05-11 12:43:35 +02:00
timesyncd.nix Don't include networkd units unless enabled 2015-04-19 22:06:45 +02:00
tmp.nix