Do not use /run/udev/rules.d for udev rules

for rules, which should not be called in the real root.

Stale rules can cause this:
https://bugzilla.redhat.com/show_bug.cgi?id=734096
master
Harald Hoyer 2011-09-19 12:21:51 +02:00
parent 6d82a0470e
commit ca8d4e8933
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ case "$root" in
${root#live:/dev/}
printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root $env{DEVNAME}"\n' \
${root#live:/dev/}
} >> $UDEVRULESD/99-live-squash.rules
} >> /etc/udev/rules.d/99-live-squash.rules
echo '[ -e /dev/root ]' > $hookdir/initqueue/finished/dmsquash.sh
;;
live:*)

View File

@ -17,7 +17,7 @@ if [ -n "$resume" ]; then
${resume#/dev/};
printf "SYMLINK==\"%s\", ACTION==\"add|change\", SYMLINK+=\"/dev/resume\"\n" \
${resume#/dev/};
} >> $UDEVRULESD/99-resume-link.rules
} >> /etc/udev/rules.d/99-resume-link.rules

{
if [ -x /usr/sbin/resume ]; then

View File

@ -8,7 +8,7 @@ if [ "${root%%:*}" = "block" ]; then
${root#block:/dev/}
printf 'SYMLINK=="%s", SYMLINK+="root"\n' \
${root#block:/dev/}
} >> $UDEVRULESD/99-root.rules
} >> /etc/udev/rules.d/99-root.rules

printf '[ -e "%s" ] && { ln -s "%s" /dev/root 2>/dev/null; rm "$job"; }\n' \
"${root#block:}" "${root#block:}" > $hookdir/initqueue/settled/blocksymlink.sh