@@ -83,6 +83,10 @@ let
83 run_progs=$(grep -v '^[[:space:]]*#' $out/* | grep 'RUN+="/' |
83 run_progs=$(grep -v '^[[:space:]]*#' $out/* | grep 'RUN+="/' |
84 sed -e 's/.*RUN+="\([^ "]*\)[ "].*/\1/' | uniq)
84 sed -e 's/.*RUN+="\([^ "]*\)[ "].*/\1/' | uniq)
85 for i in $import_progs $run_progs; do
85 for i in $import_progs $run_progs; do
86+ # if the path refers to /run/current-system/systemd, replace with config.systemd.package
87+ if [[ $i == /run/current-system/systemd* ]]; then
88+ i="${config.systemd.package}/''${i#/run/current-system/systemd/}"
86 if [[ ! -x $i ]]; then
90 if [[ ! -x $i ]]; then
87 echo "FAIL"
91 echo "FAIL"
88 echo "$i is called in udev rules but is not executable or does not exist"
92 echo "$i is called in udev rules but is not executable or does not exist"