Skip to contentSkip to conversation

virt-what: add new recipe

PATCH Applied Ross Burton 3 participants 4 messages Apr 6, 2022 – Apr 7, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virt-what: add new recipe

---
 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
recipes-extended/virt-what/virt-what_1.21.bb new file +11 -0
new file mode 100644
index 0000000..aa235b3
@@ -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
Signature · 1 line
2.25.1
#1 lore raw

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

Quoted 36 lines · on 06/04/2022 Ross Burton wrote:
---
 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
recipes-extended/virt-what/virt-what_1.21.bb new file +11 -0
new file mode 100644
index 0000000..aa235b3
@@ -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
Signature · 11 lines
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: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw

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

Ross

Quoted 48 lines · Bruce Ashfield

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

Quoted 36 lines · on 06/04/2022 Ross Burton wrote:
---
 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
recipes-extended/virt-what/virt-what_1.21.bb new file +11 -1
new file mode 100644
index 0000000..aa235b3
@@ -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: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
In reply to Ross Burton

merged to master.

Bruce

In message: [meta-virtualization] [PATCH] virt-what: add new recipe

Quoted 36 lines · on 06/04/2022 Ross Burton wrote:
---
 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
recipes-extended/virt-what/virt-what_1.21.bb new file +11 -0
new file mode 100644
index 0000000..aa235b3
@@ -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
Signature · 11 lines
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: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-