r746 - in lvm2/trunk/debian: . tree/dmsetup/usr/share/initramfs-tools tree/dmsetup/usr/share/initramfs-tools/hooks

Bastian Blank waldi at alioth.debian.org
Thu Oct 8 15:33:01 UTC 2009


Author: waldi
Date: Thu Oct  8 15:33:00 2009
New Revision: 746

Log:
* debian/changelog: Update.
* debian/tree/dmsetup/usr/share/initramfs-tools/hooks/dmsetup: Add.

Added:
   lvm2/trunk/debian/tree/dmsetup/usr/share/initramfs-tools/
   lvm2/trunk/debian/tree/dmsetup/usr/share/initramfs-tools/hooks/
   lvm2/trunk/debian/tree/dmsetup/usr/share/initramfs-tools/hooks/dmsetup   (contents, props changed)
Modified:
   lvm2/trunk/debian/changelog

Modified: lvm2/trunk/debian/changelog
==============================================================================
--- lvm2/trunk/debian/changelog	Thu Oct  8 15:18:18 2009	(r745)
+++ lvm2/trunk/debian/changelog	Thu Oct  8 15:33:00 2009	(r746)
@@ -2,6 +2,7 @@
 
   * Fix variable assignment in udev rules. (closes: #550100, RC bugfix)
   * Install udev rules into initramfs.
+  * Add initramfs-tools hook to dmsetup.
 
  -- Bastian Blank <waldi at debian.org>  Thu, 08 Oct 2009 13:10:02 +0200
 

Added: lvm2/trunk/debian/tree/dmsetup/usr/share/initramfs-tools/hooks/dmsetup
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ lvm2/trunk/debian/tree/dmsetup/usr/share/initramfs-tools/hooks/dmsetup	Thu Oct  8 15:33:00 2009	(r746)
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+case $1 in
+prereqs)
+	echo "udev"
+	exit 0
+	;;
+esac
+
+. /usr/share/initramfs-tools/hook-functions
+
+mkdir -p $DESTDIR/lib/udev/rules.d/
+for rules in 55-dm.rules 60-persistent-storage-dm.rules 95-dm-notify.rules; do
+	if   [ -e /etc/udev/rules.d/$rules ]; then
+		cp -p /etc/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/
+	elif [ -e /lib/udev/rules.d/$rules ]; then
+		cp -p /lib/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/
+	fi
+done
+
+copy_exec /sbin/dmsetup
+
+manual_add_modules dm_mod



More information about the pkg-lvm-commits mailing list