[Libguestfs] [PATCH] appliance: exclude a lvm2 rule on Ubuntu (FHBZ#1111662).

Pino Toscano ptoscano at redhat.com
Tue Sep 2 09:36:29 UTC 2014


On Ubuntu, exclude the Ubuntu-only 85-lvm2.rules since it causes the
automatic activation of volume groups on addition or change. This
interferes with libguestfs, as vgs which are disables suddently get
enabled.
---
 appliance/excludefiles.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/appliance/excludefiles.in b/appliance/excludefiles.in
index 70762ae..9a48db7 100644
--- a/appliance/excludefiles.in
+++ b/appliance/excludefiles.in
@@ -45,3 +45,10 @@ dnl For Debian:
 -/usr/share/doc-base/*
 -/usr/share/bug/*
 -/etc/initramfs-tools/*
+
+dnl For Ubuntu:
+ifelse(UBUNTU,1,
+dnl This lvm2 rule automatically re-enables vgs when they are added
+dnl or changed
+-/lib/udev/rules.d/85-lvm2.rules
+)
-- 
1.9.3




More information about the Libguestfs mailing list