All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] virt-what: add new recipe
@ 2022-04-06 16:14 Ross Burton
  2022-04-06 16:44 ` [meta-virtualization] " Bruce Ashfield
  2022-04-07 21:48 ` Bruce Ashfield
  0 siblings, 2 replies; 4+ messages in thread
From: Ross Burton @ 2022-04-06 16:14 UTC (permalink / raw)
  To: meta-virtualization

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 recipes-extended/virt-what/virt-what_1.21.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 recipes-extended/virt-what/virt-what_1.21.bb

diff --git a/recipes-extended/virt-what/virt-what_1.21.bb b/recipes-extended/virt-what/virt-what_1.21.bb
new file mode 100644
index 0000000..aa235b3
--- /dev/null
+++ b/recipes-extended/virt-what/virt-what_1.21.bb
@@ -0,0 +1,11 @@
+SUMMARY = "Detect if we are running in a virtual machine"
+HOMEPAGE = "https://people.redhat.com/~rjones/virt-what/"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "https://people.redhat.com/~rjones/virt-what/files/${BP}.tar.gz"
+SRC_URI[sha256sum] = "12cb455334aa4cfd53ab78f27e2252e94d1f676dd093f48327ed94d8080d1f7b"
+
+DEPENDS = "perl-native"
+
+inherit autotools
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [meta-virtualization] [PATCH] virt-what: add new recipe
  2022-04-06 16:14 [PATCH] virt-what: add new recipe Ross Burton
@ 2022-04-06 16:44 ` Bruce Ashfield
  2022-04-06 16:57   ` Ross Burton
  2022-04-07 21:48 ` Bruce Ashfield
  1 sibling, 1 reply; 4+ messages in thread
From: Bruce Ashfield @ 2022-04-06 16:44 UTC (permalink / raw)
  To: Ross Burton; +Cc: meta-virtualization

I've always used systemd-detect-virt for this same use case.

Can you confirm if it works both on sysvinit and systemd based
init setups ?

Bruce

In message: [meta-virtualization] [PATCH] virt-what: add new recipe
on 06/04/2022 Ross Burton wrote:

> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
>  recipes-extended/virt-what/virt-what_1.21.bb | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>  create mode 100644 recipes-extended/virt-what/virt-what_1.21.bb
> 
> diff --git a/recipes-extended/virt-what/virt-what_1.21.bb b/recipes-extended/virt-what/virt-what_1.21.bb
> new file mode 100644
> index 0000000..aa235b3
> --- /dev/null
> +++ b/recipes-extended/virt-what/virt-what_1.21.bb
> @@ -0,0 +1,11 @@
> +SUMMARY = "Detect if we are running in a virtual machine"
> +HOMEPAGE = "https://people.redhat.com/~rjones/virt-what/"
> +LICENSE = "GPL-2.0-only"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +
> +SRC_URI = "https://people.redhat.com/~rjones/virt-what/files/${BP}.tar.gz"
> +SRC_URI[sha256sum] = "12cb455334aa4cfd53ab78f27e2252e94d1f676dd093f48327ed94d8080d1f7b"
> +
> +DEPENDS = "perl-native"
> +
> +inherit autotools
> -- 
> 2.25.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#7125): https://lists.yoctoproject.org/g/meta-virtualization/message/7125
> Mute This Topic: https://lists.yoctoproject.org/mt/90293376/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-virtualization] [PATCH] virt-what: add new recipe
  2022-04-06 16:44 ` [meta-virtualization] " Bruce Ashfield
@ 2022-04-06 16:57   ` Ross Burton
  0 siblings, 0 replies; 4+ messages in thread
From: Ross Burton @ 2022-04-06 16:57 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: meta-virtualization

It pokes at /proc, /sys, and cpuid, so it should be initsystem agnostic.

Ross

On Wed, 6 Apr 2022 at 17:45, Bruce Ashfield <bruce.ashfield@gmail.com> wrote:
>
> I've always used systemd-detect-virt for this same use case.
>
> Can you confirm if it works both on sysvinit and systemd based
> init setups ?
>
> Bruce
>
> In message: [meta-virtualization] [PATCH] virt-what: add new recipe
> on 06/04/2022 Ross Burton wrote:
>
> > Signed-off-by: Ross Burton <ross.burton@arm.com>
> > ---
> >  recipes-extended/virt-what/virt-what_1.21.bb | 11 +++++++++++
> >  1 file changed, 11 insertions(+)
> >  create mode 100644 recipes-extended/virt-what/virt-what_1.21.bb
> >
> > diff --git a/recipes-extended/virt-what/virt-what_1.21.bb b/recipes-extended/virt-what/virt-what_1.21.bb
> > new file mode 100644
> > index 0000000..aa235b3
> > --- /dev/null
> > +++ b/recipes-extended/virt-what/virt-what_1.21.bb
> > @@ -0,0 +1,11 @@
> > +SUMMARY = "Detect if we are running in a virtual machine"
> > +HOMEPAGE = "https://people.redhat.com/~rjones/virt-what/"
> > +LICENSE = "GPL-2.0-only"
> > +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> > +
> > +SRC_URI = "https://people.redhat.com/~rjones/virt-what/files/${BP}.tar.gz"
> > +SRC_URI[sha256sum] = "12cb455334aa4cfd53ab78f27e2252e94d1f676dd093f48327ed94d8080d1f7b"
> > +
> > +DEPENDS = "perl-native"
> > +
> > +inherit autotools
> > --
> > 2.25.1
> >
>
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#7125): https://lists.yoctoproject.org/g/meta-virtualization/message/7125
> > Mute This Topic: https://lists.yoctoproject.org/mt/90293376/1050810
> > Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> > Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-virtualization] [PATCH] virt-what: add new recipe
  2022-04-06 16:14 [PATCH] virt-what: add new recipe Ross Burton
  2022-04-06 16:44 ` [meta-virtualization] " Bruce Ashfield
@ 2022-04-07 21:48 ` Bruce Ashfield
  1 sibling, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2022-04-07 21:48 UTC (permalink / raw)
  To: Ross Burton; +Cc: meta-virtualization

merged to master.

Bruce

In message: [meta-virtualization] [PATCH] virt-what: add new recipe
on 06/04/2022 Ross Burton wrote:

> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
>  recipes-extended/virt-what/virt-what_1.21.bb | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>  create mode 100644 recipes-extended/virt-what/virt-what_1.21.bb
> 
> diff --git a/recipes-extended/virt-what/virt-what_1.21.bb b/recipes-extended/virt-what/virt-what_1.21.bb
> new file mode 100644
> index 0000000..aa235b3
> --- /dev/null
> +++ b/recipes-extended/virt-what/virt-what_1.21.bb
> @@ -0,0 +1,11 @@
> +SUMMARY = "Detect if we are running in a virtual machine"
> +HOMEPAGE = "https://people.redhat.com/~rjones/virt-what/"
> +LICENSE = "GPL-2.0-only"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +
> +SRC_URI = "https://people.redhat.com/~rjones/virt-what/files/${BP}.tar.gz"
> +SRC_URI[sha256sum] = "12cb455334aa4cfd53ab78f27e2252e94d1f676dd093f48327ed94d8080d1f7b"
> +
> +DEPENDS = "perl-native"
> +
> +inherit autotools
> -- 
> 2.25.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#7125): https://lists.yoctoproject.org/g/meta-virtualization/message/7125
> Mute This Topic: https://lists.yoctoproject.org/mt/90293376/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-07 23:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 16:14 [PATCH] virt-what: add new recipe Ross Burton
2022-04-06 16:44 ` [meta-virtualization] " Bruce Ashfield
2022-04-06 16:57   ` Ross Burton
2022-04-07 21:48 ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.