#507 Issue closed: fedora21beta old udev systemd rules fail

Labels: enhancement, fixed / solved / done

gdha opened issue at 2014-11-12 13:37:

During booting we see some failures from systemd concerning udev.service on Fedora 21 beta, but these rules where replaced in Fedora 20 (I think) by systemd-udev*.service rules.
Should investigate if the unit ConditionPathExists= condition already existed on older Fedora distro's, which would be a solution to avoid this (as /sbin/udevd does not exist on Fedora 21).

gdha commented at 2014-11-13 15:29:

Pretty sure it exists for quite some time - see http://ktaraghi.blogspot.com/2013/11/what-is-systemd-and-how-it-works-part-1.html

gdha commented at 2014-11-14 14:34:

hum, at least it tried it. Perhaps, there is still a copy somewhere else?

2014-11-14 13:20:22 Including build/GNU/Linux/61_verify_and_adjust_udev_systemd.sh
+ . /usr/share/rear/build/GNU/Linux/61_verify_and_adjust_udev_systemd.sh
++ test -d /var/tmp/rear.tZQrxA6Qt4PNyl2/rootfs/usr/lib/systemd/system
++ Log 'Cleaning up systemd udev socket files'
++ test 1 -gt 0
+++ Stamp
+++ date '+%Y-%m-%d %H:%M:%S '
++ echo '2014-11-14 13:20:22 Cleaning up systemd udev socket files'
2014-11-14 13:20:22 Cleaning up systemd udev socket files
++ my_udev_files=($(find $ROOTFS_DIR/usr/lib/systemd/system/sockets.target.wants -type l -name "*udev*"  -printf "%P\n"))
+++ find /var/tmp/rear.tZQrxA6Qt4PNyl2/rootfs/usr/lib/systemd/system/sockets.target.wants -type l -name '*udev*' -printf '%P\n'
++ for m in '"${my_udev_files[@]}"'
++ [[ ! -h /lib/systemd/system/sockets.target.wants/systemd-udevd-control.socket ]]
++ for m in '"${my_udev_files[@]}"'
++ [[ ! -h /lib/systemd/system/sockets.target.wants/systemd-udevd-kernel.socket ]]
++ for m in '"${my_udev_files[@]}"'
++ [[ ! -h /lib/systemd/system/sockets.target.wants/udev-kernel.socket ]]
++ [[ ! -h /usr/lib/systemd/system/sockets.target.wants/udev-kernel.socket ]]
++ rm -f /var/tmp/rear.tZQrxA6Qt4PNyl2/rootfs/usr/lib/systemd/system/sockets.target.wants/udev-kernel.socket
++ for m in '"${my_udev_files[@]}"'
++ [[ ! -h /lib/systemd/system/sockets.target.wants/udev-control.socket ]]
++ [[ ! -h /usr/lib/systemd/system/sockets.target.wants/udev-control.socket ]]
++ rm -f /var/tmp/rear.tZQrxA6Qt4PNyl2/rootfs/usr/lib/systemd/system/sockets.target.wants/udev-control.socket
+ test 1
+ set +x

For some reason Fedora21 beta tries to start up all services it finds under /usr/lib/systemd/system/*.service even when the links were removed under usr/lib/systemd/system/sockets.target.wants/ directory.


[Export of Github issue for rear/rear.]