Am 08.09.2014 um 10:43 schrieb Richard W.M. Jones: > On Mon, Sep 08, 2014 at 10:26:44AM +0200, Reindl Harald wrote: >> so *what* is your problem by a unit knowing "i must not run now" > > What open-vm-tools needs is a system feature known as the "VMware > backdoor". This is provided by other hypervisors too (notably qemu). and on bare-metal? > If you look at Hyper-V, it provides Xen features, and so a program > testing for "am I running on Xen" would not run on Hyper-V, whereas it > could run. > > When we wrote 'virt-what', we put very large warnings in the manual > page about how you should test for features you need, NOT for a > specific hypervisor. who talks about a specific hypervisor in general? you where the one complain about systemd-readahead guess what "ConditionVirtualization=no" means is it for a specific hypervisor? no! [root@srv-rhsoft:~]$ cat /usr/lib/systemd/system/systemd-readahead-collect.service [Unit] Description=Collect Read-Ahead Data Documentation=man:systemd-readahead-replay.service(8) DefaultDependencies=no Wants=systemd-readahead-done.timer Conflicts=shutdown.target Before=sysinit.target shutdown.target ConditionPathExists=!/run/systemd/readahead/cancel ConditionPathExists=!/run/systemd/readahead/done ConditionVirtualization=no > But in general terms, any program using systemd-detect-virt / > ConditionVirtualization which doesn't fit into the above two > exceptions is doing it wrong. > > In other words, the feature invites you to write buggy software sorry - but that is bullshit you can choose between the for you "buggy software" tries to implement that checks *hard-coded* into the software again and again or just use a system capability which you can override by clone the systemd-unit to /etc/systemd/system and remove the condition there
Attachment:
signature.asc
Description: OpenPGP digital signature
-- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct