tags 401393 + patch stop Hi,
This is a followup for Debian bug <http://bugs.debian.org/401393>. Could people experiencing this bug please test the attached lilo_22.7.3-1.4.diff against lilo 22.7.3-1.3? I don't run lilo nor RAID 1, but I could verify that dmsetup() calls on major/minor work on my devices and that the patched lilo builds. Thanks, -- Loïc Minier <[EMAIL PROTECTED]>
--- lilo-22.7.3/debian/patches/00list +++ lilo-22.7.3/debian/patches/00list @@ -31,0 +32 @@ +20_devmapper-use-major-minor --- lilo-22.7.3/debian/changelog +++ lilo-22.7.3/debian/changelog @@ -1,3 +1,11 @@ +lilo (1:22.7.3-1.4) unstable; urgency=low + + * Non-maintainer upload. + * New dpatch, 20_devmapper-use-major-minor, to address device-mapper devices + via major/minor instead of name for DM_DEVICE_TABLE; closes: #401393. + + -- Loic Minier <[EMAIL PROTECTED]> Wed, 31 Jan 2007 15:21:06 +0100 + lilo (1:22.7.3-1.3) unstable; urgency=low * Non-maintainer upload to fix a few more l10n issues. --- lilo-22.7.3.orig/debian/patches/20_devmapper-use-major-minor.dpatch +++ lilo-22.7.3/debian/patches/20_devmapper-use-major-minor.dpatch @@ -0,0 +1,22 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 20_devmapper-use-major-minor.patch.dpatch by Loic Minier <[EMAIL PROTECTED]> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + [EMAIL PROTECTED]@ +diff -urNad lilo-22.7.3~/geometry.c lilo-22.7.3/geometry.c +--- lilo-22.7.3~/geometry.c 2007-01-31 15:20:37.000000000 +0100 ++++ lilo-22.7.3/geometry.c 2007-01-31 15:20:43.000000000 +0100 +@@ -930,8 +930,9 @@ + slash++; + else + slash = dmdev; +- if (!dm_task_set_name(dmt, slash)) +- die("device-mapper: dm_task_set_name(\"%s\") failed",dmdev); ++ if (!dm_task_set_major(dmt, MAJOR(device)) || ++ !dm_task_set_minor(dmt, MINOR(device))) ++ die("device-mapper: dm_task_set_major() or dm_task_set_minor() failed"); + if (!dm_task_run(dmt)) + die("device-mapper: dm_task_run(DM_DEVICE_TABLE) failed"); +