On 2018-04-17, Zbigniew Jędrzejewski-Szmek <zbys...@in.waw.pl> wrote:
> On Tue, Apr 17, 2018 at 08:30:59AM +0200, Miroslav Suchý wrote:
>> Dne 17.4.2018 v 07:46 Petr Pisar napsal(a):
>> > Maybe nobody knows how to determine a system is live.
>> 
>> +1
>
> Actually we do. If systemd is running

You mean systemctl can talk to a systemd via
/var/run/dbus/system_bus_socket. Ok.

> and dnf is installing packages into the same root from which it is
> running, it's a live system.  Otherwise, it's not. This is what
> systemctl checks.
>
Does systemctl really check it is an indirect child of dnf and where
that dnf installs to? You cannot get meaningful chroot path by calls
from a chrooted process. Also you can execute "rpm --root /foo -i
foo.rpm" without DNF. I cannot see how this second condition is
meaningfully implemented.

-- Petr
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to