Merge lp:~psusi/ubuntu/precise/multipath-tools/fix-dmraid into lp:ubuntu/precise/multipath-tools

Proposed by Phillip Susi
Status: Merged
Merged at revision: 47
Proposed branch: lp:~psusi/ubuntu/precise/multipath-tools/fix-dmraid
Merge into: lp:ubuntu/precise/multipath-tools
Diff against target: 185 lines (+114/-6)
7 files modified
debian/changelog (+6/-0)
debian/control (+7/-1)
debian/initramfs/hooks (+1/-5)
debian/initramfs/kpartx.hook (+20/-0)
debian/kpartx-boot.postinst (+34/-0)
debian/kpartx-boot.postrm (+45/-0)
debian/rules (+1/-0)
To merge this branch: bzr merge lp:~psusi/ubuntu/precise/multipath-tools/fix-dmraid
Reviewer Review Type Date Requested Status
Phillip Susi (community) Needs Resubmitting
Serge Hallyn (community) Needs Fixing
Ubuntu branches Pending
Review via email: mp+98958@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for doing this work. The patch looks good. However there has been an update to multipath-tools, so your patch needs to be forward ported.

Is there any urgent bug being fixed by this? If not, then it seems late in the precise cycle to push such a change, but I would support it for after precise.

Is it possible for this to also (perhaps first) be done in Debian?

review: Needs Fixing
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi Philip, I've changed this to "Work In Progress". Please switch it back to 'Needs Review' when you have re-merged w/ the packaging branch and after "Q" opens for development (this is too much change this late in the cycle)

Revision history for this message
Phillip Susi (psusi) wrote :

This fixes a critical regression so needs to make it into precise. I performed the trival changelog merge.

review: Needs Resubmitting
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Quoting Phillip Susi (<email address hidden>):
> Review: Resubmit
>
> This fixes a critical regression so needs to make it into precise. I performed the trival changelog merge.

Hi Phillip,

this tree isn't linked against any bugs. Could you please explicitly say
what the critical regression being addressed is? Best would be a bug # for
a critical bug with reproduction steps. That could help the merge to be
acceptable this cycle.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Quoting Serge Hallyn (<email address hidden>):
> Quoting Phillip Susi (<email address hidden>):
> > Review: Resubmit
> >
> > This fixes a critical regression so needs to make it into precise. I performed the trival changelog merge.
>
> Hi Phillip,
>
> this tree isn't linked against any bugs. Could you please explicitly say
> what the critical regression being addressed is? Best would be a bug # for
> a critical bug with reproduction steps. That could help the merge to be
> acceptable this cycle.

Ah, I see it now inthe new mp. thanks.

Revision history for this message
Phillip Susi (psusi) wrote :

Huh? It is linked to the bug, right there at the top of the page.

Revision history for this message
Adam Conrad (adconrad) wrote :

I've uploaded this with only two small changes. One was to mention the bug in the changelog (please don't forget that in the future), the other was to revert to Debian's all->any versioned dep scheme (foo (>= source), foo (<< source.1~)), since they will want that if you try to push this back to them (I assume they did this to avoid binNMU breakage).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-03-21 14:34:53 +0000
+++ debian/changelog 2012-03-31 02:15:26 +0000
@@ -1,3 +1,9 @@
1multipath-tools (0.4.9-3ubuntu5) precise; urgency=low
2
3 * Split kpartx part of multipath-tools-boot into kpartx-boot for dmraid
4
5 -- Phillip Susi <psusi@ubuntu.com> Tue, 20 Mar 2012 15:26:22 -0400
6
1multipath-tools (0.4.9-3ubuntu4) precise; urgency=low7multipath-tools (0.4.9-3ubuntu4) precise; urgency=low
28
3 * Restore multipath-udeb dependency on multipath-modules (LP: #959749).9 * Restore multipath-udeb dependency on multipath-modules (LP: #959749).
410
=== modified file 'debian/control'
--- debian/control 2012-03-21 14:33:58 +0000
+++ debian/control 2012-03-31 02:15:26 +0000
@@ -45,10 +45,16 @@
45 Kpartx can be used to set up device mappings for the partitions of any45 Kpartx can be used to set up device mappings for the partitions of any
46 partitioned block device. It is part of the Linux multipath-tools.46 partitioned block device. It is part of the Linux multipath-tools.
4747
48Package: kpartx-boot
49Architecture: all
50Depends: ${misc:Depends}, initramfs-tools, kpartx (= ${source:Version})
51Description: Provides kpartx during boot
52 This package makes kpartx availible during boot to activate partitions
53
48Package: multipath-tools-boot54Package: multipath-tools-boot
49Architecture: all55Architecture: all
50Depends: ${misc:Depends}, initramfs-tools, 56Depends: ${misc:Depends}, initramfs-tools,
51 multipath-tools (>= ${source:Version}), multipath-tools (<< ${source:Version}.1~)57 multipath-tools (= ${source:Version}), kpartx-boot (= ${source:Version})
52Replaces: multipath-tools-initramfs (<< 1.0.1+nmu1)58Replaces: multipath-tools-initramfs (<< 1.0.1+nmu1)
53Conflicts: multipath-tools-initramfs (<< 1.0.1+nmu1)59Conflicts: multipath-tools-initramfs (<< 1.0.1+nmu1)
54Description: Support booting from multipath devices60Description: Support booting from multipath devices
5561
=== modified file 'debian/initramfs/hooks'
--- debian/initramfs/hooks 2011-06-06 12:31:23 +0000
+++ debian/initramfs/hooks 2012-03-31 02:15:26 +0000
@@ -27,7 +27,7 @@
2727
28add_udev_rules()28add_udev_rules()
29{29{
30 for rules in 95-multipath.rules 95-kpartx.rules; do30 for rules in 95-multipath.rules; do
31 if [ -e /lib/udev/rules.d/$rules ]; then31 if [ -e /lib/udev/rules.d/$rules ]; then
32 cp -p /lib/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/32 cp -p /lib/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/
33 fi33 fi
@@ -35,10 +35,6 @@
35}35}
3636
37copy_exec /sbin/multipath /sbin37copy_exec /sbin/multipath /sbin
38copy_exec /sbin/kpartx /sbin
39copy_exec /sbin/dmsetup /sbin
40copy_exec /lib/udev/dmsetup_env /lib/udev
41copy_exec /lib/udev/kpartx_id /lib/udev
42mkdir -p $DESTDIR/lib/multipath/38mkdir -p $DESTDIR/lib/multipath/
43for x in /lib/multipath/*; do39for x in /lib/multipath/*; do
44 copy_exec $x /lib/multipath/40 copy_exec $x /lib/multipath/
4541
=== added file 'debian/initramfs/kpartx.hook'
--- debian/initramfs/kpartx.hook 1970-01-01 00:00:00 +0000
+++ debian/initramfs/kpartx.hook 2012-03-31 02:15:26 +0000
@@ -0,0 +1,20 @@
1#!/bin/sh
2
3PREREQS="udev"
4
5prereqs() { echo "$PREREQS"; }
6
7case $1 in
8prereqs)
9 prereqs
10 exit 0
11 ;;
12esac
13
14. /usr/share/initramfs-tools/hook-functions
15
16copy_exec /sbin/kpartx /sbin
17copy_exec /sbin/dmsetup /sbin
18copy_exec /lib/udev/dmsetup_env /lib/udev
19copy_exec /lib/udev/kpartx_id /lib/udev
20cp -p /lib/udev/rules.d/95-kpartx.rules $DESTDIR/lib/udev/rules.d/
021
=== added file 'debian/kpartx-boot.postinst'
--- debian/kpartx-boot.postinst 1970-01-01 00:00:00 +0000
+++ debian/kpartx-boot.postinst 2012-03-31 02:15:26 +0000
@@ -0,0 +1,34 @@
1#!/bin/sh
2# postinst script for kpartx-boot
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# Source debconf library.
9. /usr/share/debconf/confmodule
10
11case "$1" in
12 configure)
13 if [ -x /usr/sbin/update-initramfs -a -e /etc/initramfs-tools/initramfs.conf ]; then
14 update-initramfs -u
15 fi
16 ;;
17
18 abort-upgrade|abort-remove|abort-deconfigure)
19 ;;
20
21 *)
22 echo "postinst called with unknown argument \`$1'" >&2
23 exit 1
24 ;;
25esac
26
27# dh_installdeb will replace this with shell code automatically
28# generated by other debhelper scripts.
29
30#DEBHELPER#
31
32exit 0
33
34
035
=== added file 'debian/kpartx-boot.postrm'
--- debian/kpartx-boot.postrm 1970-01-01 00:00:00 +0000
+++ debian/kpartx-boot.postrm 2012-03-31 02:15:26 +0000
@@ -0,0 +1,45 @@
1#!/bin/sh
2# postrm script for kpartx-boot
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9# * <postrm> `remove'
10# * <postrm> `purge'
11# * <old-postrm> `upgrade' <new-version>
12# * <new-postrm> `failed-upgrade' <old-version>
13# * <new-postrm> `abort-install'
14# * <new-postrm> `abort-install' <old-version>
15# * <new-postrm> `abort-upgrade' <old-version>
16# * <disappearer's-postrm> `disappear' <overwriter>
17# <overwriter-version>
18# for details, see http://www.debian.org/doc/debian-policy/ or
19# the debian-policy package
20
21
22case "$1" in
23 remove)
24 if [ -x /usr/sbin/update-initramfs -a -e /etc/initramfs-tools/initramfs.conf ]; then
25 update-initramfs -u
26 fi
27 ;;
28
29 purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
30 ;;
31
32 *)
33 echo "postrm called with unknown argument \`$1'" >&2
34 exit 1
35 ;;
36esac
37
38# dh_installdeb will replace this with shell code automatically
39# generated by other debhelper scripts.
40
41#DEBHELPER#
42
43exit 0
44
45
046
=== modified file 'debian/rules'
--- debian/rules 2011-06-06 12:31:23 +0000
+++ debian/rules 2012-03-31 02:15:26 +0000
@@ -47,6 +47,7 @@
47 dh_install -X.rules --fail-missing --sourcedir=$(CURDIR)/debian/tmp47 dh_install -X.rules --fail-missing --sourcedir=$(CURDIR)/debian/tmp
48 # initramfs stuff:48 # initramfs stuff:
49 install -D -m 755 debian/initramfs/hooks $(INITRAMFS)/hooks/multipath49 install -D -m 755 debian/initramfs/hooks $(INITRAMFS)/hooks/multipath
50 install -D -m 755 debian/initramfs/kpartx.hook $(CURDIR)/debian/kpartx-boot/usr/share/initramfs-tools/hooks/kpartx
50 install -D -m 755 debian/initramfs/local-top \51 install -D -m 755 debian/initramfs/local-top \
51 $(INITRAMFS)/scripts/local-top/multipath52 $(INITRAMFS)/scripts/local-top/multipath
52 # reportbug:53 # reportbug:

Subscribers

People subscribed via source and target branches

to all changes: