Comment 4 for bug 306114

Revision history for this message
Giuseppe Iuculano (giuseppe-iuculano) wrote :

This wasn't a typo, but a different dh_installudev naming schema in ubuntu/debian.

I fixed it in a different way:

# svn diff
Index: debian/changelog
===================================================================
--- debian/changelog (revisione 26)
+++ debian/changelog (copia locale)
@@ -4,8 +4,10 @@
   * debian/control:
     + Made the long description for the udeb shorter
     + Added initramfs-tools to dmraid Depends
- * debian/initramfs/dmraid.initramfs-hook/dmraid: Removed blank line added
- before the 'fi' in the dmraid initramfs-hook.
+ * debian/initramfs/dmraid.initramfs-hook/dmraid:
+ + Removed blank line added before the 'fi' in the dmraid initramfs-hook.
+ + check if 85_dmraid.rules or 85-dmraid.rules exists, and then copy it
+ (LP: #306114)
   * debian/patches/02_raid45_to_raid4-5.dpatch: Removed
   * debian/dmraid.postinst: initramfs-tools is in Depends, do not check for
     update-initramfs (fixed command-with-path-in-maintainer-script lintian
@@ -14,7 +16,7 @@
   * debian/patches/02_scsi_serial_remove_ws.dpatch: remove whitespace from
     serial id (LP: #305011)

- -- Giuseppe Iuculano <email address hidden> Fri, 05 Dec 2008 19:26:41 +0100
+ -- Giuseppe Iuculano <email address hidden> Mon, 08 Dec 2008 09:19:15 +0100

 dmraid (1.0.0.rc15-1~exp1) experimental; urgency=low

Index: debian/initramfs/dmraid.initramfs-hook/dmraid
===================================================================
--- debian/initramfs/dmraid.initramfs-hook/dmraid (revisione 25)
+++ debian/initramfs/dmraid.initramfs-hook/dmraid (copia locale)
@@ -24,7 +24,12 @@
  copy_exec /sbin/dmraid sbin
  copy_exec /sbin/dmraid-activate sbin
  mkdir -p ${DESTDIR}/etc/udev/rules.d
- cp -p /etc/udev/rules.d/85_dmraid.rules ${DESTDIR}/etc/udev/rules.d
+ if [ -f /etc/udev/rules.d/85_dmraid.rules ]; then
+ cp -p /etc/udev/rules.d/85_dmraid.rules ${DESTDIR}/etc/udev/rules.d
+ fi
+ if [ -f /etc/udev/rules.d/85-dmraid.rules ]; then
+ cp -p /etc/udev/rules.d/85-dmraid.rules ${DESTDIR}/etc/udev/rules.d
+ fi
 fi

 exit 0