nixpkgs/nixos/modules/system/boot
aszlig 8ecd3a5e1d
nixos/stage-1: Fix references to readlink/basename
Fixes references coming from the mdadm udev rules.

This addresses #12722 (mdadm udev rules have references to /usr/bin) but
still won't fix the warning, though (if we want to fix the warnings, we
will have to patch the udev rules generater in services/hardware/udev).

For common mdraid functionality, this shouldn't fix anything, because
the wrong references seem to only apply to containers, see these
(wrapped) lines from ${mdadm}/lib/udev/rules.d/63-md-raid-arrays.rules:

  # Tell systemd to run mdmon for our container, if we need it.
  ENV{MD_LEVEL}=="raid[1-9]*",
    ENV{MD_CONTAINER}=="?*",
  PROGRAM="/usr/bin/readlink $env{MD_CONTAINER}",
    ENV{MD_MON_THIS}="%c"
    ENV{MD_MON_THIS}=="?*",
    PROGRAM="/usr/bin/basename $env{MD_MON_THIS}",
    ENV{SYSTEMD_WANTS}+="mdmon@%c.service"

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-02-03 14:19:24 +01:00
..
loader Add missing 'type', 'defaultText' and 'literalExample' in module definitions 2016-01-17 19:41:23 +01:00
coredump.nix Added config options for systemd-coredump functionality. 2015-05-24 18:22:53 -06:00
emergency-mode.nix nixos: tmp on tmpfs option 2014-07-30 16:19:26 +02:00
initrd-network.nix initrd-network module: initialize network before other pre-LVM commands 2016-02-03 14:55:42 +03:00
initrd-ssh.nix initrd modules: move passwd and nsswitch back to initrd-ssh 2016-02-03 14:56:55 +03:00
kernel.nix types: remove references to new packageSet 2016-01-17 19:49:38 +00:00
kexec.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
luksroot.nix Add missing 'type', 'defaultText' and 'literalExample' in module definitions 2016-01-17 19:41:23 +01:00
modprobe.nix kmod-debian-aliases: init at 21-1 2015-09-13 10:55:44 +02:00
networkd.nix networkd: add DHCPServer config section 2015-12-23 06:04:39 +01:00
pbkdf2-sha512.c Update to the Yubikey PBA 2014-02-08 14:59:52 +01:00
readonly-mountpoint.c Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
resolved.nix Create systemd-{network,resolve} user/group unconditionally 2015-07-22 12:23:45 +02:00
shutdown.nix Don't run hwclock if /dev/rtc doesn't exist 2014-05-05 16:47:51 +02:00
stage-1-init.sh initrd modules: move passwd and nsswitch back to initrd-ssh 2016-02-03 14:56:55 +03:00
stage-1.nix nixos/stage-1: Fix references to readlink/basename 2016-02-03 14:19:24 +01:00
stage-2-init.sh stage-2: Don't run hwclock in containers 2015-07-22 12:23:52 +02:00
stage-2.nix stage-2-init: Don't depend on sysvtools 2015-04-20 11:32:28 +02:00
systemd-lib.nix Set ‘allowSubstitutes = false’ on various derivations 2015-07-09 15:10:37 +02:00
systemd-unit-options.nix systemd module: Add OnFailure to systemd common unit options 2015-11-16 15:12:28 +01:00
systemd.nix systemd service: add *.busname upstream units 2016-01-18 19:42:25 +03:00
timesyncd.nix Don't include networkd units unless enabled 2015-04-19 22:06:45 +02:00
tmp.nix nixos: tmp on tmpfs option 2014-07-30 16:19:26 +02:00