Pino Toscano
2014-Sep-02 09:36 UTC
[Libguestfs] [PATCH] appliance: exclude a lvm2 rule on Ubuntu (FHBZ#1111662).
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
Richard W.M. Jones
2014-Sep-02 11:54 UTC
[Libguestfs] [PATCH] appliance: exclude a lvm2 rule on Ubuntu (FHBZ#1111662).
On Tue, Sep 02, 2014 at 11:36:29AM +0200, Pino Toscano wrote:> 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.3Thanks - I've pushed this. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v