• Bug#266591: initrd-tools: mkinitrd assumes /dev/mapper/* == LVM device

    From Nathaniel W. Turner@1:229/2 to All on Wed Aug 18 13:30:14 2004
    XPost: linux.debian.kernel
    From: [email protected]

    Package: initrd-tools
    Version: 0.1.73
    Severity: important

    I have cryptsetup installed and my /etc/crypttab contains:

    swap0 /dev/hda7 /dev/urandom swap

    This creates an encrypted device /dev/mapper/swap0 (which I mount as
    swap in /etc/fstab).

    When installing kernel-image-2.6.8-1-k7, I get the following error:

    Setting up kernel-image-2.6.8-1-k7 (2.6.8-1) ...
    /usr/sbin/mkinitrd: /dev/mapper/swap0: Cannot find LVM device
    Failed to create initrd image.
    dpkg: error processing kernel-image-2.6.8-1-k7 (--configure):
    subprocess post-installation script returned error exit status 9

    As far as I can tell, mkinitrd is assuming that anything in /dev/mapper
    is an LVM device, which is not a safe assumption.

    Cheers,
    nate

    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable'), (1, 'experimental')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.7-1-k7
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

    Versions of packages initrd-tools depends on:
    ii coreutils [fileutils] 5.2.1-2 The GNU core utilities
    ii cpio 2.5-1.1 GNU cpio -- a program to manage ar ii cramfsprogs 1.1-6 Tools for CramFs (Compressed ROM F ii dash 0.5.1-2 The Debian Almquist Shell
    ii fileutils 5.2.1-2 The GNU file management utilities ii util-linux 2.12-7 Miscellaneous system utilities


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)