/etc/init/udev-finish.conf is in udev 204-5ubuntu20.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # udev-finish - save udev log and update rules
#
# While udev runs we not only create the log file of initial device
# creation but udev rules may be generated, we need to copy both of
# these out of /dev and onto the root filesystem.
description "save udev log and update rules"
start on (startup
and filesystem
and started udev
and stopped udevtrigger
and stopped udevmonitor)
task
script
# Save udev log in /var/log/udev
if [ -e /dev/.udev.log ]
then
mv -f /dev/.udev.log /var/log/udev || :
fi
# Copy any rules generated while the root filesystem was read-only
for file in /run/udev/tmp-rules--*
do
[ -e "$file" ] || continue
cat "$file" >> "/etc/udev/rules.d/${file##*tmp-rules--}"
rm -f "$file"
done
end script
|