Simplyfing and correcting udev inclusion in initramfs hook.
[live-boot-grml.git] / hooks / live
index b286f6e..d78da1e 100755 (executable)
@@ -61,9 +61,10 @@ done
 # udev dependencies (squeeze and newer)
 for FILE in /lib/udev/*_id
 do
-       if [ ! -e "${DESTDIR}"/"${FILE}" ]
+       if [ ! -e "${DESTDIR}/${FILE}" ]
        then
-               copy_exec "${FILE}" /lib/udev/
+               mkdir -p "${DESTDIR}/lib/udev"
+               copy_exec "${FILE}" /lib/udev
        fi
 done