[systemd-devel] systemd-detect-virt and vendors
Lennart Poettering
lennart at poettering.net
Wed Oct 8 07:15:05 PDT 2014
On Wed, 08.10.14 09:57, Rahul Sundaram (metherid at gmail.com) wrote:
> Hi
>
> On Wed, Oct 8, 2014 at 9:46 AM, Lennart Poettering wrote:
>
> >
> > I think what would make a lot of sense though is to add a section to
> > the man page somewhere, that explains which ID refers to which
> > software from which vendor. Also, it might make sense to add a new
> > switch to the tool, that dumps the table of known identifiers plus
> > some description.
>
>
> Fair enough. I will see if I can do that. Would it be ok to add
> appropriate aliases to existing terms, virtualbox - oracle and hyperv -
> microsoft and mark the vendor names as deprecated? That way we retain
> compatibility while having the consistency (this is more than just about
> being pretty!) that everything is named after the technology and not the
> mismash of vendors names (oracle, microsoft) and technology names (kvm...)
> in a list.
Well, systemd-detect-virt outputs an id. People use it like so:
if [ `systemd-detect-virt` = "microsoft" ] ; then
...
fi
THis really shouldn't get broken.
In general I am against such redundancies of duplicate entries, unless
we have a really strong reason.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list