[pkg-cryptsetup-devel] Bug#506536: cryptsetup: lvm binary name changed in initramfs

Marc Haber mh+debian-bugs at zugschlus.de
Sat Nov 22 12:40:59 UTC 2008


Package: cryptsetup
Version: 2:1.0.6-6
Severity: important

Hi,

lvm2 2.02.39-4 has changed the name of the LVM binary in the initramfs
from vgchange to lvm. Hence, cryptsetup's local-top/cryptroot needs to
change, or booting systems with cryptroot fails.

This patch works for me:

$ diff -u cryptroot /usr/share/initramfs-tools/scripts/local-top/cryptroot
--- cryptroot   2008-11-22 13:33:51.000000000 +0100
+++ /usr/share/initramfs-tools/scripts/local-top/cryptroot      2008-11-22 13:35:03.000000000 +0100
@@ -124,7 +124,7 @@
        vg="${1#/dev/mapper/}"

        # Sanity checks
-       if [ ! -x /sbin/vgchange ] || [ "$vg" = "$1" ]; then
+       if [ ! -x /sbin/lvm ] || [ "$vg" = "$1" ]; then
                return 1
        fi

@@ -139,7 +139,7 @@
        # Reduce padded --'s to -'s
        vg=$(echo ${vg} | sed -e 's#--#-#g')

-       vgchange -ay ${vg}
+       lvm vgchange -ay ${vg}
        return $?
 }


Greetings
Marc


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26.8-weave (SMP w/1 CPU core; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cryptsetup depends on:
ii  dmsetup                      2:1.02.27-4 The Linux Kernel Device Mapper use
ii  libc6                        2.7-16      GNU C Library: Shared libraries
ii  libdevmapper1.02.1           2:1.02.27-4 The Linux Kernel Device Mapper use
ii  libpopt0                     1.14-4      lib for parsing cmdline parameters
ii  libuuid1                     1.41.3-1    universally unique id library

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
ii  dosfstools                    3.0.0-1    utilities for making and checking 
ii  initramfs-tools [linux-initra 0.92l      tools for generating an initramfs
ii  udev                          0.125-7    /dev/ and hotplug management daemo

-- no debconf information





More information about the pkg-cryptsetup-devel mailing list