Your message dated Tue, 15 Jul 2008 23:02:11 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#455746: fixed in devmapper 2:1.02.27-2
has caused the Debian Bug report #455746,
regarding udev support
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
455746: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=455746
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: devmapper
Version: 2:1.02.20-2
Severity: wishlist
Tags: patch
Please consider applying our attached patch that enables udev to know
about the devicemapper device nodes, create /dev/disk symlinks to them
and populate vol_id information so that filesystems on the devices can
be used.
This patch depends on the dmsetup "export" option filed as Debian
#434241 and the atomic device creation patch filed as Debian #455745.
-- System Information:
Debian Release: lenny/sid
APT prefers gutsy-updates
APT policy: (500, 'gutsy-updates'), (500, 'gutsy-security'), (500, 'gutsy')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22-14-generic (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- devmapper-1.02.20.orig/debian/dmsetup.udev
+++ devmapper-1.02.20/debian/dmsetup.udev
@@ -0,0 +1,31 @@
+# This file causes devicemapper devices to be assigned names by udev
+# based on the name given to dmsetup.
+# See udev(8) for syntax.
+
+SUBSYSTEM!="block", GOTO="dmsetup_end"
+KERNEL!="dm-*", GOTO="dmsetup_end"
+ACTION!="add|change", GOTO="dmsetup_end"
+
+# Obtain device status
+IMPORT{program}="/sbin/dmsetup export -j%M -m%m"
+ENV{DM_NAME}!="?*", GOTO="dmsetup_end"
+
+# Make the device take the /dev/mapper name
+OPTIONS+="string_escape=none", NAME="mapper/$env{DM_NAME}"
+SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}"
+ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"
+
+# Skip vol_id for suspended devices and those with empty or error tables
+ENV{DM_STATE}=="SUSPENDED", GOTO="dmsetup_end"
+ENV{DM_TARGET_TYPES}=="|*error*", GOTO="dmsetup_end"
+
+# by-uuid and by-label symlinks
+IMPORT{program}="vol_id --export $tempnode"
+OPTIONS="link_priority=-100"
+ENV{DM_TARGET_TYPES}=="*snapshot-origin*", OPTIONS="link_priority=-90"
+ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", \
+ SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
+ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", \
+ SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
+
+LABEL="dmsetup_end"
--- devmapper-1.02.20/debian/control
+++ devmapper-1.02.20/debian/control
@@ -26,6 +27,7 @@
Priority: required
Architecture: any
Depends: ${shlibs:Depends}
+Recommends: dmsetup (>= 2:1.02.08-1ubuntu2)
Provides: libdevmapper
Description: The Linux Kernel Device Mapper userspace library
The Linux Kernel Device Mapper is the LVM (Linux Logical Volume Management)
@@ -44,6 +46,7 @@
Architecture: any
Depends: ${shlibs:Depends}
Provides: libdevmapper1.02.1
+Recommends: dmsetup-udeb
Description: The Linux Kernel Device Mapper userspace library
This is a udeb, or a microdeb, for the debian-installer.
.
--- devmapper-1.02.20/debian/rules
+++ devmapper-1.02.20/debian/rules
@@ -78,6 +80,7 @@
clean:
dh_testdir
rm -rf $(BUILD_DIR)
+ rm -f debian/dmsetup-udeb.udev
dh_clean
@@ -94,6 +98,10 @@
rm -rf $(INSTALL_DIR)
$(MAKE) -C $(DIR) install DESTDIR=$(CURDIR)/$(INSTALL_DIR)
LIB_VERSION=$(LIBDEVMAPPER_ABINAME)
+ install -d $(INSTALL_DIR)/usr/share/initramfs-tools/hooks
+ install -m 0755 debian/dmsetup.initramfs \
+ $(INSTALL_DIR)/usr/share/initramfs-tools/hooks/dmsetup
+
dh_install --sourcedir=$(INSTALL_DIR)
install-udeb: export DH_OPTIONS = $(addprefix -p,$(PACKAGES_UDEB))
@@ -108,6 +116,8 @@
rm -rf $(INSTALL_DIR)
$(MAKE) -C $(DIR) install DESTDIR=$(CURDIR)/$(INSTALL_DIR)
LIB_VERSION=$(LIBDEVMAPPER_ABINAME)
+ cp -a debian/dmsetup.udev debian/dmsetup-udeb.udev
+
dh_install --sourcedir=$(INSTALL_DIR)
# Build architecture-independent files here.
@@ -119,7 +129,7 @@
dh_testroot -a
dh_installchangelogs WHATS_NEW -a
dh_installdocs -a
- dh_installinit -a -- start 25 S .
+ dh_installudev -a --priority=65
dh_strip -a
dh_link -p libdevmapper-dev lib/libdevmapper.so.$(LIBDEVMAPPER_ABINAME)
usr/lib/libdevmapper.so
dh_compress -a
--- devmapper-1.02.20.orig/debian/dmsetup.initramfs
+++ devmapper-1.02.20/debian/dmsetup.initramfs
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+# initramfs hook for dmsetup
+
+PREREQ="udev"
+
+# Output pre-requisites
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case "$1" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+
+. /usr/share/initramfs-tools/hook-functions
+
+copy_exec /sbin/dmsetup /sbin
+
+cp -p /etc/udev/rules.d/65-dmsetup.rules ${DESTDIR}/etc/udev/rules.d
--- devmapper-1.02.20/debian/dmsetup.install
+++ devmapper-1.02.20/debian/dmsetup.install
@@ -2,0 +3 @@
+usr/share/initramfs-tools/hooks/dmsetup
--- devmapper-1.02.20.orig/debian/dmsetup.postinst
+++ devmapper-1.02.20/debian/dmsetup.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "$1" = "configure" ]; then
+ if type update-initramfs >/dev/null 2>&1; then
+ update-initramfs -u
+ fi
+fi
+
+#DEBHELPER#
--- End Message ---
--- Begin Message ---
Source: devmapper
Source-Version: 2:1.02.27-2
We believe that the bug you reported is fixed in the latest version of
devmapper, which is due to be installed in the Debian FTP archive:
devmapper_1.02.27-2.diff.gz
to pool/main/d/devmapper/devmapper_1.02.27-2.diff.gz
devmapper_1.02.27-2.dsc
to pool/main/d/devmapper/devmapper_1.02.27-2.dsc
dmsetup-udeb_1.02.27-2_amd64.udeb
to pool/main/d/devmapper/dmsetup-udeb_1.02.27-2_amd64.udeb
dmsetup_1.02.27-2_amd64.deb
to pool/main/d/devmapper/dmsetup_1.02.27-2_amd64.deb
libdevmapper-dev_1.02.27-2_amd64.deb
to pool/main/d/devmapper/libdevmapper-dev_1.02.27-2_amd64.deb
libdevmapper1.02.1-udeb_1.02.27-2_amd64.udeb
to pool/main/d/devmapper/libdevmapper1.02.1-udeb_1.02.27-2_amd64.udeb
libdevmapper1.02.1_1.02.27-2_amd64.deb
to pool/main/d/devmapper/libdevmapper1.02.1_1.02.27-2_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Bastian Blank <[EMAIL PROTECTED]> (supplier of updated devmapper package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 16 Jul 2008 00:00:31 +0200
Source: devmapper
Binary: libdevmapper-dev libdevmapper1.02.1 libdevmapper1.02.1-udeb dmsetup
dmsetup-udeb
Architecture: source amd64
Version: 2:1.02.27-2
Distribution: unstable
Urgency: low
Maintainer: Debian LVM Team <[EMAIL PROTECTED]>
Changed-By: Bastian Blank <[EMAIL PROTECTED]>
Description:
dmsetup - The Linux Kernel Device Mapper userspace library
dmsetup-udeb - The Linux Kernel Device Mapper userspace library (udeb)
libdevmapper-dev - The Linux Kernel Device Mapper header files
libdevmapper1.02.1 - The Linux Kernel Device Mapper userspace library
libdevmapper1.02.1-udeb - The Linux Kernel Device Mapper userspace library
(udeb)
Closes: 455746 486780
Changes:
devmapper (2:1.02.27-2) unstable; urgency=low
.
* Update dmsetup export patch to export target types. (closes: #486780)
* Add udev rules to dmsetup. (closes: #455746)
Checksums-Sha1:
e86eff89adeae0bde93e6a437fa1fdd8649a6965 1162 devmapper_1.02.27-2.dsc
04ac6f452e10662e9fd450de2bf32874506a805f 13928 devmapper_1.02.27-2.diff.gz
6f06a4977fdbbd56de059eda96bba75c120a47d6 73244
libdevmapper-dev_1.02.27-2_amd64.deb
9aca1af7abbb723ea53e80923e72b565698a54cd 57580
libdevmapper1.02.1_1.02.27-2_amd64.deb
5da19d35eef888c7e43eb6d56c2fea0b6d331597 39624 dmsetup_1.02.27-2_amd64.deb
c7ae17738e67468eb1539459ce29defd0d47ff12 40278
libdevmapper1.02.1-udeb_1.02.27-2_amd64.udeb
d0c6fc1d5ed161087da11d4be241fb9f116ec37a 19618
dmsetup-udeb_1.02.27-2_amd64.udeb
Checksums-Sha256:
4f53d7cca503bdd5b6fef240813dd3fec7af2cde498d6b71c83b253917ef4c34 1162
devmapper_1.02.27-2.dsc
c91eb846ec7d37e71d70b61d5daf6f9c9fc62a5d8ac79bd458d70077e019e6c1 13928
devmapper_1.02.27-2.diff.gz
814d3744f520c5ae008697941bff0f4cd2d38de9b96854f335faa3470b53d4fa 73244
libdevmapper-dev_1.02.27-2_amd64.deb
7674b1757d69f307369029079ada052755e3e03dc611dbdbb07c74e9a13d1eee 57580
libdevmapper1.02.1_1.02.27-2_amd64.deb
236a32f2c5cb9771413f08aa3563ccaad50d79010260fc0e935bee8867dc9e1e 39624
dmsetup_1.02.27-2_amd64.deb
275e2efd1e246d0b0676f0cd78e738342498802a76edb1e19cd2418c8aea2b1b 40278
libdevmapper1.02.1-udeb_1.02.27-2_amd64.udeb
02295d553774ff43b949692aecff39c53d422f1423108dbee0ce32bad7b513ce 19618
dmsetup-udeb_1.02.27-2_amd64.udeb
Files:
f60cced8246fcd6c4b64819ba00d02b5 1162 admin optional devmapper_1.02.27-2.dsc
a3cbbd345edb3ec00742adf6cc375b7e 13928 admin optional
devmapper_1.02.27-2.diff.gz
10ca8c8d172518bb28a14be73db13a3a 73244 libdevel optional
libdevmapper-dev_1.02.27-2_amd64.deb
6d5e72240d80741f204c25428078bab2 57580 libs required
libdevmapper1.02.1_1.02.27-2_amd64.deb
7b6e7c85515f945dc0694e79fcdbc4fb 39624 admin optional
dmsetup_1.02.27-2_amd64.deb
f072ff069515784aac182b66d7ab6e66 40278 debian-installer optional
libdevmapper1.02.1-udeb_1.02.27-2_amd64.udeb
51e7314005de0b1692a689acbc2c804c 19618 debian-installer optional
dmsetup-udeb_1.02.27-2_amd64.udeb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkh9Hv4ACgkQxWtQqFixGB4SPwCfQxyBTBEAKL4OrJesm8Zy9RWo
kFsAoJGdiKWUQ+XIW6xQJRIglFmgNlgD
=Cb0P
-----END PGP SIGNATURE-----
--- End Message ---