Comment 34 for bug 32123

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I looked at /usr/share/initramfs-tools/hooks/udev and I think this is what happened in Boris' case: He did not have /etc/udev/rules.d/05-udev-early.rules for some reason (beyond me) and since the script sets -e, it just stops at the first error and will not continue copying other udev rules and the /lib/udev stuff.

The script should have:
- cp -p /etc/udev/rules.d/$rules ${DESTDIR}/etc/udev/rules.d
+ [ -e /etc/udev/rules.d/$rules ] && cp -p /etc/udev/rules.d/$rules ${DESTDIR}/etc/udev/rules.d

or the calling scripts should check return status properly.