Re: [systemd-devel] Bare Metal or VM

2021-07-16 Thread Ed Greshko
On 17/07/2021 12:49, Andrei Borzenkov wrote: On 17.07.2021 03:36, Ed Greshko wrote: Hi, This may be an "uninformed" question since I've not done much with systemd. Is there a way for a service or unit to be aware if the environment is Bare Metal or a Virtual Machine. For example, a unit is tr

Re: [systemd-devel] Bare Metal or VM

2021-07-16 Thread Andrei Borzenkov
On 17.07.2021 03:36, Ed Greshko wrote: > Hi, > > This may be an "uninformed" question since I've not done much with systemd. > > Is there a way for a service or unit to be aware if the environment is > Bare Metal or a Virtual Machine. > > For example, a unit is triggered by a user logging in as

Re: [systemd-devel] Fwd: Bare Metal or VM

2021-07-16 Thread Ed Greshko
On 17/07/2021 08:53, Albert Brox wrote: Forgot the list Thank you very much.  I will look into that, and I found the list. Ed ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/system

[systemd-devel] Fwd: Bare Metal or VM

2021-07-16 Thread Albert Brox
Forgot the list Forwarded Message Subject:Re: [systemd-devel] Bare Metal or VM Date: Fri, 16 Jul 2021 20:51:50 -0400 From: Albert Brox To: Ed Greshko Hi Ed, please look into using the ConditionVirtualization= directive in your unit. https://www.freedeskt

Re: [systemd-devel] Is `kernel-install` called automatically?

2021-07-16 Thread Michael Chapman
On Sat, 17 Jul 2021, Mike Beaton wrote: > > I've managed to get it to be called > automatically on both Fedora and CentOS/Rocky 8 > > Thank you. How? I'm not asking for excruciating detail, just roughly. Your > own scripts, or something in the distribution? On Fedora, the kernel-core RPM's %postt

[systemd-devel] Bare Metal or VM

2021-07-16 Thread Ed Greshko
Hi, This may be an "uninformed" question since I've not done much with systemd. Is there a way for a service or unit to be aware if the environment is Bare Metal or a Virtual Machine. For example, a unit is triggered by a user logging in as a graphical user.  But, I only want the unit's ExecS

Re: [systemd-devel] Is `kernel-install` called automatically?

2021-07-16 Thread Mike Beaton
> I've managed to get it to be called automatically on both Fedora and CentOS/Rocky 8 Thank you. How? I'm not asking for excruciating detail, just roughly. Your own scripts, or something in the distribution? On Fri, 16 Jul 2021, 13:00 , wrote: > Send systemd-devel mailing list submissions to >