3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules
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
..
config Merge pull request #11737 from MatrixAI/master 2016-01-30 23:14:44 +01:00
hardware wis_go7007: remove dead package & module 2016-01-11 00:16:01 +01:00
installer nixos-rebuild: Don't propagate --no-out-link arg to nix-store 2016-02-01 10:54:58 +01:00
misc nixos: update-locatedb - harden via systemd (#7220) 2016-01-23 20:44:30 +00:00
profiles wpa_supplicant service: jobs -> systemd.services 2016-01-06 03:58:39 +00:00
programs Revert "Merge #12357: nixos docs: show references to packages" 2016-02-03 12:16:33 +01:00
security Fix some references to deprecated /etc/ssl/certs/ca-bundle.crt 2016-01-29 02:32:05 +01:00
services Revert "Merge #12357: nixos docs: show references to packages" 2016-02-03 12:16:33 +01:00
system nixos/stage-1: Fix references to readlink/basename 2016-02-03 14:19:24 +01:00
tasks Don't include wireless-tools/iw/rfkill when wireless is disabled 2016-02-01 18:19:23 +01:00
testing NixOS tests: Increase hung_task_timeout_secs 2016-01-04 16:53:42 +01:00
virtualisation Revert "Do not relocate /nix and /tmp to small disks on AWS" 2016-02-02 19:59:28 +01:00
module-list.nix Split the initrd sshd support into a separate module 2016-02-02 19:59:27 +01:00
rename.nix nixos: Document "jobs" option removal 2016-01-14 13:08:56 +01:00