From 1d00967b7f61031ad880bb062fa9ef4bcd10083b Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 16 Nov 2009 17:05:37 -0500 Subject: added commentary about how the udev rule does not seem to work with lenny properly. --- kvm-creator | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'kvm-creator') diff --git a/kvm-creator b/kvm-creator index 17e3dea..69a56d5 100755 --- a/kvm-creator +++ b/kvm-creator @@ -83,8 +83,15 @@ udevrule() { GROUP="$3" # this appears to be the way that a udev rule to control the LVM device gets created: - printf 'ACTION=="change", SUBSYSTEM=="block", ATTR{dm/name}=="%s-%s", GROUP="%s"\n' "$VOLUME_GROUP" "$LOGICAL_VOLUME" "$GROUP" + + # unfortunately, kernel 2.6.26-2-amd64 (from debian) does not + # appear to export /sys/block/dm-%d/dm/name ; nether does + # 2.6.28-16-generic (ubuntu); 2.6.30-2-686 *does* export that + # label, so the above line works on squeeze at the moment. + + # not sure what to do about this for lenny systems. See: + # http://bugs.debian.org/450793 } udevrulename() { -- cgit v1.2.3