Package: lvm2
Version: 2.02.62-1
Severity: normal
Tags: patch
I made a patch to do this.
It is for /usr/share/initramfs-tools/scripts/local-top/lvm2 which is
included in this package,
to let lvm2 script recognize resume=swap:/dev/XXXXXX in kernel command
line option.
-- System Information:
Debian Release: squeeze/sid
APT prefers stable
APT policy: (990, 'stable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
(ignored: LC_ALL set to ja_JP.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lvm2 depends on:
ii dmsetup 2:1.02.45-1 The Linux Kernel Device Mapper use
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.45-1 The Linux Kernel Device Mapper use
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
lvm2 recommends no packages.
lvm2 suggests no packages.
-- no debconf information
--- usr/share/initramfs-tools/scripts/local-top/lvm2.orig 2009-11-07 01:12:16.000000000 +0700
+++ usr/share/initramfs-tools/scripts/local-top/lvm2 2010-03-12 22:24:03.000000000 +0700
@@ -40,12 +40,18 @@
# Make sure that we have a d-m path
dev="${dev#/dev/mapper/}"
if [ "$dev" = "$1" ]; then
- return 1
+
+ # try again for TuxOnIce:
+ dev="${dev#swap:/dev/mapper/}"
+ if [ "$dev" = "$1" ]; then
+ return 1
+ fi
fi
eval $(dmsetup splitname --nameprefixes --noheadings --rows "$dev")
if [ "$DM_VG_NAME" ] && [ "$DM_LV_NAME" ]; then
+echo "vgname = $VM_VG_NAME , lvname = $DM_LV_NAME"
lvm lvchange -aly --ignorelockingfailure "$DM_VG_NAME/$DM_LV_NAME"
rc=$?
if [ $rc = 5 ]; then