Re: [libvirt-users] Please remove pm-utils dep from libvirt-clients

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 05, 2013 at 03:36:22PM +0200, Richard Hughes wrote:
> On 5 August 2013 15:14, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote:
> >> I'd rather see libvirt dependent on pm-utils than dbus.
> 
> pm-utils is going to be retired for F20, so that's not really an
> option long term.
> 
> >> org.freedesktop.UPower.HibernateAllowed()
> >> org.freedesktop.UPower.SuspendAllowed()
> 
> Allowed means "Is the user allowed to do this" rather than "Is the
> system capable of this action".

Ok, so UPower isn't something we want to use for this then.

> > Seem that the org.freedesktop.login1 APIs are provided by systemd.
> > Since we need to work on non-systemd distros too,at the very least
> > we'll have to keep code to fallback to using  pm-utils on those
> > distros.
> 
> Right, you can do that if you want, but on Fedora this isn't going to
> work in the future. UPower could ship a /usr/bin/pm-is-supported
> helper, but I'd rather not duplicate functionality available
> elsewhere.

With Fedora, we can just assume systemd is always present, since
Fedora does not support usage without systemd anymore. For other
distros which don't use systemd, I guess we'll assume they're
continuing to ship pm-utils for now and use our existing code with
them, unless someone contributes something better.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]