* [PATCH 0/4] blacklist/blocklist and master/golden
@ 2021-12-06 15:35 Quentin Schulz
2021-12-06 15:35 ` [PATCH 1/4] rename core-image-testmaster* to core-image-testgolden Quentin Schulz
` (4 more replies)
0 siblings, 5 replies; 13+ messages in thread
From: Quentin Schulz @ 2021-12-06 15:35 UTC (permalink / raw)
To: openembedded-core; +Cc: Quentin Schulz
Hi all,
It seems some changes are not too invasive and can be made to be a bit
more inclusive, so I'll make the autobuilder try those patches and tell
me whether I broke something somewhere I wasn't aware of.
In other words: I did not test those changes.
Those changes warrant some notes in the migration guide once they
are merged.
Cheers,
Quentin
Quentin Schulz (4):
rename core-image-testmaster* to core-image-testgolden
core: initrdscripts: init-install{-efi,}-testfs.sh: rename masterimage
into goldenimage
oeqa: rename masterimage into goldenimage
core: udev: udev-extraconf: rename mount.blacklist* to
mount.blocklist.*
meta/conf/distro/include/distro_alias.inc | 4 +-
meta/conf/distro/include/maintainers.inc | 4 +-
.../{masterimage.py => goldenimage.py} | 44 +++++++++----------
meta/lib/oeqa/runtime/cases/ssh.py | 4 +-
.../files/init-install-efi-testfs.sh | 4 +-
.../initrdscripts/files/init-install-efi.sh | 2 +-
.../files/init-install-testfs.sh | 4 +-
.../initrdscripts/files/init-install.sh | 2 +-
.../{mount.blacklist => mount.blocklist} | 0
.../recipes-core/udev/udev-extraconf/mount.sh | 4 +-
meta/recipes-core/udev/udev-extraconf_1.1.bb | 10 ++---
....bb => core-image-testgolden-initramfs.bb} | 2 +-
...testmaster.bb => core-image-testgolden.bb} | 4 +-
meta/recipes-extended/parted/files/run-ptest | 6 +--
14 files changed, 47 insertions(+), 47 deletions(-)
rename meta/lib/oeqa/controllers/{masterimage.py => goldenimage.py} (87%)
rename meta/recipes-core/udev/udev-extraconf/{mount.blacklist => mount.blocklist} (100%)
rename meta/recipes-extended/images/{core-image-testmaster-initramfs.bb => core-image-testgolden-initramfs.bb} (92%)
rename meta/recipes-extended/images/{core-image-testmaster.bb => core-image-testgolden.bb} (80%)
--
2.33.1
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 1/4] rename core-image-testmaster* to core-image-testgolden
2021-12-06 15:35 [PATCH 0/4] blacklist/blocklist and master/golden Quentin Schulz
@ 2021-12-06 15:35 ` Quentin Schulz
2021-12-06 15:42 ` [OE-core] " Joshua Watt
2021-12-06 15:35 ` [PATCH 2/4] core: initrdscripts: init-install{-efi,}-testfs.sh: rename masterimage into goldenimage Quentin Schulz
` (3 subsequent siblings)
4 siblings, 1 reply; 13+ messages in thread
From: Quentin Schulz @ 2021-12-06 15:35 UTC (permalink / raw)
To: openembedded-core; +Cc: Quentin Schulz
"golden" has a more explicit meaning than master in addition to not
being an issue wrt inclusivity.
Signed-off-by: Quentin Schulz <foss+yocto@0leil.net>
---
meta/conf/distro/include/distro_alias.inc | 4 ++--
meta/conf/distro/include/maintainers.inc | 4 ++--
meta/lib/oeqa/controllers/masterimage.py | 6 +++---
...ster-initramfs.bb => core-image-testgolden-initramfs.bb} | 2 +-
.../{core-image-testmaster.bb => core-image-testgolden.bb} | 4 ++--
5 files changed, 10 insertions(+), 10 deletions(-)
rename meta/recipes-extended/images/{core-image-testmaster-initramfs.bb => core-image-testgolden-initramfs.bb} (92%)
rename meta/recipes-extended/images/{core-image-testmaster.bb => core-image-testgolden.bb} (80%)
diff --git a/meta/conf/distro/include/distro_alias.inc b/meta/conf/distro/include/distro_alias.inc
index 44bc3bf1315..2649a21474b 100644
--- a/meta/conf/distro/include/distro_alias.inc
+++ b/meta/conf/distro/include/distro_alias.inc
@@ -42,8 +42,8 @@ DISTRO_PN_ALIAS:pn-core-image-rt-sdk = "OE-Core"
DISTRO_PN_ALIAS:pn-core-image-sato = "OE-Core"
DISTRO_PN_ALIAS:pn-core-image-sato-dev = "OE-Core"
DISTRO_PN_ALIAS:pn-core-image-sato-sdk = "OE-Core"
-DISTRO_PN_ALIAS:pn-core-image-testmaster = "OE-Core"
-DISTRO_PN_ALIAS:pn-core-image-testmaster-initramfs = "OE-Core"
+DISTRO_PN_ALIAS:pn-core-image-testgolden = "OE-Core"
+DISTRO_PN_ALIAS:pn-core-image-testgolden-initramfs = "OE-Core"
DISTRO_PN_ALIAS:pn-core-image-weston = "OE-Core"
DISTRO_PN_ALIAS:pn-core-image-x11 = "OE-Core"
DISTRO_PN_ALIAS:pn-createrepo-c = "Fedora=createrepo_c Clear=createrepo_c"
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index 97ba2ce79c8..61572247560 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -112,8 +112,8 @@ RECIPE_MAINTAINER:pn-core-image-ptest-all = "Richard Purdie <richard.purdie@linu
RECIPE_MAINTAINER:pn-core-image-ptest-fast = "Richard Purdie <richard.purdie@linuxfoundation.org>"
RECIPE_MAINTAINER:pn-core-image-sato = "Richard Purdie <richard.purdie@linuxfoundation.org>"
RECIPE_MAINTAINER:pn-core-image-sato-sdk = "Richard Purdie <richard.purdie@linuxfoundation.org>"
-RECIPE_MAINTAINER:pn-core-image-testmaster-initramfs = "Richard Purdie <richard.purdie@linuxfoundation.org>"
-RECIPE_MAINTAINER:pn-core-image-testmaster = "Richard Purdie <richard.purdie@linuxfoundation.org>"
+RECIPE_MAINTAINER:pn-core-image-testgolden-initramfs = "Richard Purdie <richard.purdie@linuxfoundation.org>"
+RECIPE_MAINTAINER:pn-core-image-testgolden = "Richard Purdie <richard.purdie@linuxfoundation.org>"
RECIPE_MAINTAINER:pn-core-image-weston = "Richard Purdie <richard.purdie@linuxfoundation.org>"
RECIPE_MAINTAINER:pn-core-image-weston-sdk = "Richard Purdie <richard.purdie@linuxfoundation.org>"
RECIPE_MAINTAINER:pn-core-image-x11 = "Richard Purdie <richard.purdie@linuxfoundation.org>"
diff --git a/meta/lib/oeqa/controllers/masterimage.py b/meta/lib/oeqa/controllers/masterimage.py
index 0bf5917e481..2eff6d05ef9 100644
--- a/meta/lib/oeqa/controllers/masterimage.py
+++ b/meta/lib/oeqa/controllers/masterimage.py
@@ -3,13 +3,13 @@
# SPDX-License-Identifier: MIT
#
# This module adds support to testimage.bbclass to deploy images and run
-# tests using a "master image" - this is a "known good" image that is
+# tests using a "golden image" - this is a "known good" image that is
# installed onto the device as part of initial setup and will be booted into
# with no interaction; we can then use it to deploy the image to be tested
# to a second partition before running the tests.
#
-# For an example master image, see core-image-testmaster
-# (meta/recipes-extended/images/core-image-testmaster.bb)
+# For an example golden image, see core-image-testgolden
+# (meta/recipes-extended/images/core-image-testgolden.bb)
import os
import bb
diff --git a/meta/recipes-extended/images/core-image-testmaster-initramfs.bb b/meta/recipes-extended/images/core-image-testgolden-initramfs.bb
similarity index 92%
rename from meta/recipes-extended/images/core-image-testmaster-initramfs.bb
rename to meta/recipes-extended/images/core-image-testgolden-initramfs.bb
index 1a2e0af27ba..5495e3d12e0 100644
--- a/meta/recipes-extended/images/core-image-testmaster-initramfs.bb
+++ b/meta/recipes-extended/images/core-image-testgolden-initramfs.bb
@@ -7,7 +7,7 @@ PACKAGE_INSTALL = "initramfs-live-boot initramfs-live-install-testfs initramfs-l
# Do not pollute the initrd image with rootfs features
IMAGE_FEATURES = ""
-export IMAGE_BASENAME = "core-image-testmaster-initramfs"
+export IMAGE_BASENAME = "core-image-testgolden-initramfs"
IMAGE_NAME_SUFFIX ?= ""
IMAGE_LINGUAS = ""
diff --git a/meta/recipes-extended/images/core-image-testmaster.bb b/meta/recipes-extended/images/core-image-testgolden.bb
similarity index 80%
rename from meta/recipes-extended/images/core-image-testmaster.bb
rename to meta/recipes-extended/images/core-image-testgolden.bb
index 0faf18f5a4e..f4cab1491d4 100644
--- a/meta/recipes-extended/images/core-image-testmaster.bb
+++ b/meta/recipes-extended/images/core-image-testgolden.bb
@@ -1,4 +1,4 @@
-DESCRIPTION = "A master image to be deployed on a target useful for testing other images"
+DESCRIPTION = "A golden image to be deployed on a target useful for testing other images"
IMAGE_FEATURES += "ssh-server-openssh package-management"
@@ -14,5 +14,5 @@ IMAGE_INSTALL += "\
# we need a particular initramfs for live images
# that pulls custom install scripts which take
# care of partitioning for us
-INITRD_IMAGE = "core-image-testmaster-initramfs"
+INITRD_IMAGE = "core-image-testgolden-initramfs"
--
2.33.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 2/4] core: initrdscripts: init-install{-efi,}-testfs.sh: rename masterimage into goldenimage
2021-12-06 15:35 [PATCH 0/4] blacklist/blocklist and master/golden Quentin Schulz
2021-12-06 15:35 ` [PATCH 1/4] rename core-image-testmaster* to core-image-testgolden Quentin Schulz
@ 2021-12-06 15:35 ` Quentin Schulz
2021-12-06 17:14 ` [OE-core] " Alexander Kanavin
2021-12-06 15:35 ` [PATCH 3/4] oeqa: " Quentin Schulz
` (2 subsequent siblings)
4 siblings, 1 reply; 13+ messages in thread
From: Quentin Schulz @ 2021-12-06 15:35 UTC (permalink / raw)
To: openembedded-core; +Cc: Quentin Schulz
golden image has a more explicit meaning in addition of not being an
issue wrt inclusivity.
Signed-off-by: Quentin Schulz <foss+yocto@0leil.net>
---
meta/lib/oeqa/controllers/masterimage.py | 10 +++++-----
meta/lib/oeqa/runtime/cases/ssh.py | 4 ++--
.../initrdscripts/files/init-install-efi-testfs.sh | 2 +-
.../initrdscripts/files/init-install-testfs.sh | 2 +-
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/meta/lib/oeqa/controllers/masterimage.py b/meta/lib/oeqa/controllers/masterimage.py
index 2eff6d05ef9..feb30366323 100644
--- a/meta/lib/oeqa/controllers/masterimage.py
+++ b/meta/lib/oeqa/controllers/masterimage.py
@@ -121,17 +121,17 @@ class MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta
# base class just sets the ssh log file for us
super(MasterImageHardwareTarget, self).deploy()
self.master = sshcontrol.SSHControl(ip=self.ip, logfile=self.sshlog, timeout=600, port=self.port)
- status, output = self.master.run("cat /etc/masterimage")
+ status, output = self.master.run("cat /etc/goldenimage")
if status != 0:
- # We're not booted into the master image, so try rebooting
- bb.plain("%s - booting into the master image" % self.pn)
+ # We're not booted into the golden image, so try rebooting
+ bb.plain("%s - booting into the golden image" % self.pn)
self.power_ctl("cycle")
self._wait_until_booted()
bb.plain("%s - deploying image on target" % self.pn)
- status, output = self.master.run("cat /etc/masterimage")
+ status, output = self.master.run("cat /etc/goldenimage")
if status != 0:
- bb.fatal("No ssh connectivity or target isn't running a master image.\n%s" % output)
+ bb.fatal("No ssh connectivity or target isn't running a golden image.\n%s" % output)
if self.user_cmds:
self.deploy_cmds = self.user_cmds.split("\n")
try:
diff --git a/meta/lib/oeqa/runtime/cases/ssh.py b/meta/lib/oeqa/runtime/cases/ssh.py
index 60a5fbbfbfd..a0bbed0b581 100644
--- a/meta/lib/oeqa/runtime/cases/ssh.py
+++ b/meta/lib/oeqa/runtime/cases/ssh.py
@@ -13,7 +13,7 @@ class SSHTest(OERuntimeTestCase):
def test_ssh(self):
(status, output) = self.target.run('uname -a')
self.assertEqual(status, 0, msg='SSH Test failed: %s' % output)
- (status, output) = self.target.run('cat /etc/masterimage')
- msg = "This isn't the right image - /etc/masterimage " \
+ (status, output) = self.target.run('cat /etc/goldenimage')
+ msg = "This isn't the right image - /etc/goldenimage " \
"shouldn't be here %s" % output
self.assertEqual(status, 1, msg=msg)
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh b/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh
index b351985a61c..6f554f62967 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh
@@ -133,7 +133,7 @@ mount -o rw,loop,noatime,nodiratime /run/media/$1/$2 /rootmnt
echo "Copying rootfs files..."
cp -a /rootmnt/* /ssd
-touch /ssd/etc/masterimage
+touch /ssd/etc/goldenimage
if [ -d /ssd/etc/ ] ; then
# We dont want udev to mount our root device while we're booting...
diff --git a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
index ac621605287..df3a7767319 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
@@ -158,7 +158,7 @@ mount -o rw,loop,noatime,nodiratime /run/media/$1/$2 /src_root
echo "Copying rootfs files..."
cp -a /src_root/* /tgt_root
-touch /tgt_root/etc/masterimage
+touch /tgt_root/etc/goldenimage
if [ -d /tgt_root/etc/ ] ; then
echo "$bootfs /boot ext3 defaults 1 2" >> /tgt_root/etc/fstab
--
2.33.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 3/4] oeqa: rename masterimage into goldenimage
2021-12-06 15:35 [PATCH 0/4] blacklist/blocklist and master/golden Quentin Schulz
2021-12-06 15:35 ` [PATCH 1/4] rename core-image-testmaster* to core-image-testgolden Quentin Schulz
2021-12-06 15:35 ` [PATCH 2/4] core: initrdscripts: init-install{-efi,}-testfs.sh: rename masterimage into goldenimage Quentin Schulz
@ 2021-12-06 15:35 ` Quentin Schulz
2021-12-06 17:14 ` [OE-core] " Alexander Kanavin
2021-12-06 15:35 ` [PATCH 4/4] core: udev: udev-extraconf: rename mount.blacklist* to mount.blocklist.* Quentin Schulz
2021-12-06 23:02 ` [OE-core] [PATCH 0/4] blacklist/blocklist and master/golden Richard Purdie
4 siblings, 1 reply; 13+ messages in thread
From: Quentin Schulz @ 2021-12-06 15:35 UTC (permalink / raw)
To: openembedded-core; +Cc: Quentin Schulz
Golden image has a more explicit meaning than masterimage and is not an
issue wrt inclusivity.
Signed-off-by: Quentin Schulz <foss+yocto@0leil.net>
---
.../{masterimage.py => goldenimage.py} | 32 +++++++++----------
1 file changed, 16 insertions(+), 16 deletions(-)
rename meta/lib/oeqa/controllers/{masterimage.py => goldenimage.py} (91%)
diff --git a/meta/lib/oeqa/controllers/masterimage.py b/meta/lib/oeqa/controllers/goldenimage.py
similarity index 91%
rename from meta/lib/oeqa/controllers/masterimage.py
rename to meta/lib/oeqa/controllers/goldenimage.py
index feb30366323..fb1ac7a53a0 100644
--- a/meta/lib/oeqa/controllers/masterimage.py
+++ b/meta/lib/oeqa/controllers/goldenimage.py
@@ -24,12 +24,12 @@ from oeqa.utils import CommandError
from abc import ABCMeta, abstractmethod
-class MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta):
+class GoldenImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta):
supported_image_fstypes = ['tar.gz', 'tar.bz2']
def __init__(self, d):
- super(MasterImageHardwareTarget, self).__init__(d)
+ super(GoldenImageHardwareTarget, self).__init__(d)
# target ip
addr = d.getVar("TEST_TARGET_IP") or bb.fatal('Please set TEST_TARGET_IP with the IP address of the machine you want to run the tests on.')
@@ -61,8 +61,8 @@ class MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta
if not os.path.isfile(self.kernel):
bb.fatal("No kernel found. Expected path: %s" % self.kernel)
- # master ssh connection
- self.master = None
+ # golden ssh connection
+ self.golden = None
# if the user knows what they are doing, then by all means...
self.user_cmds = d.getVar("TEST_DEPLOY_CMDS")
self.deploy_cmds = None
@@ -119,9 +119,9 @@ class MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta
def deploy(self):
# base class just sets the ssh log file for us
- super(MasterImageHardwareTarget, self).deploy()
- self.master = sshcontrol.SSHControl(ip=self.ip, logfile=self.sshlog, timeout=600, port=self.port)
- status, output = self.master.run("cat /etc/goldenimage")
+ super(GoldenImageHardwareTarget, self).deploy()
+ self.golden = sshcontrol.SSHControl(ip=self.ip, logfile=self.sshlog, timeout=600, port=self.port)
+ status, output = self.golden.run("cat /etc/goldenimage")
if status != 0:
# We're not booted into the golden image, so try rebooting
bb.plain("%s - booting into the golden image" % self.pn)
@@ -129,7 +129,7 @@ class MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta
self._wait_until_booted()
bb.plain("%s - deploying image on target" % self.pn)
- status, output = self.master.run("cat /etc/goldenimage")
+ status, output = self.golden.run("cat /etc/goldenimage")
if status != 0:
bb.fatal("No ssh connectivity or target isn't running a golden image.\n%s" % output)
if self.user_cmds:
@@ -156,10 +156,10 @@ class MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta
def stop(self):
bb.plain("%s - reboot/powercycle target" % self.pn)
- self.power_cycle(self.master)
+ self.power_cycle(self.golden)
-class SystemdbootTarget(MasterImageHardwareTarget):
+class SystemdbootTarget(GoldenImageHardwareTarget):
def __init__(self, d):
super(SystemdbootTarget, self).__init__(d)
@@ -184,16 +184,16 @@ class SystemdbootTarget(MasterImageHardwareTarget):
def _deploy(self):
# make sure these aren't mounted
- self.master.run("umount /boot; umount /mnt/testrootfs; umount /sys/firmware/efi/efivars;")
+ self.golden.run("umount /boot; umount /mnt/testrootfs; umount /sys/firmware/efi/efivars;")
# from now on, every deploy cmd should return 0
# else an exception will be thrown by sshcontrol
- self.master.ignore_status = False
- self.master.copy_to(self.rootfs, "~/test-rootfs." + self.image_fstype)
- self.master.copy_to(self.kernel, "~/test-kernel")
+ self.golden.ignore_status = False
+ self.golden.copy_to(self.rootfs, "~/test-rootfs." + self.image_fstype)
+ self.golden.copy_to(self.kernel, "~/test-kernel")
for cmd in self.deploy_cmds:
- self.master.run(cmd)
+ self.golden.run(cmd)
def _start(self, params=None):
- self.power_cycle(self.master)
+ self.power_cycle(self.golden)
# there are better ways than a timeout but this should work for now
time.sleep(120)
--
2.33.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 4/4] core: udev: udev-extraconf: rename mount.blacklist* to mount.blocklist.*
2021-12-06 15:35 [PATCH 0/4] blacklist/blocklist and master/golden Quentin Schulz
` (2 preceding siblings ...)
2021-12-06 15:35 ` [PATCH 3/4] oeqa: " Quentin Schulz
@ 2021-12-06 15:35 ` Quentin Schulz
2021-12-06 23:31 ` [OE-core] " Richard Purdie
2021-12-06 23:02 ` [OE-core] [PATCH 0/4] blacklist/blocklist and master/golden Richard Purdie
4 siblings, 1 reply; 13+ messages in thread
From: Quentin Schulz @ 2021-12-06 15:35 UTC (permalink / raw)
To: openembedded-core; +Cc: Quentin Schulz
blocklist has a more obvious meaning than blacklist and is also not an
issue wrt inclusivity, so let's use that naming instead.
Signed-off-by: Quentin Schulz <foss+yocto@0leil.net>
---
.../initrdscripts/files/init-install-efi-testfs.sh | 2 +-
.../initrdscripts/files/init-install-efi.sh | 2 +-
.../initrdscripts/files/init-install-testfs.sh | 2 +-
meta/recipes-core/initrdscripts/files/init-install.sh | 2 +-
.../{mount.blacklist => mount.blocklist} | 0
| 4 ++--
| 10 +++++-----
meta/recipes-extended/parted/files/run-ptest | 6 +++---
8 files changed, 14 insertions(+), 14 deletions(-)
rename meta/recipes-core/udev/udev-extraconf/{mount.blacklist => mount.blocklist} (100%)
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh b/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh
index 6f554f62967..9bf32e8cb4e 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh
@@ -138,7 +138,7 @@ touch /ssd/etc/goldenimage
if [ -d /ssd/etc/ ] ; then
# We dont want udev to mount our root device while we're booting...
if [ -d /ssd/etc/udev/ ] ; then
- echo "/dev/${device}" >> /ssd/etc/udev/mount.blacklist
+ echo "/dev/${device}" >> /ssd/etc/udev/mount.blocklist
fi
fi
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
index f667518b895..97db4c753b9 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -229,7 +229,7 @@ if [ -d /tgt_root/etc/ ] ; then
echo "UUID=$boot_uuid /boot vfat defaults 1 2" >> /tgt_root/etc/fstab
# We dont want udev to mount our root device while we're booting...
if [ -d /tgt_root/etc/udev/ ] ; then
- echo "${device}" >> /tgt_root/etc/udev/mount.blacklist
+ echo "${device}" >> /tgt_root/etc/udev/mount.blocklist
fi
fi
diff --git a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
index df3a7767319..ea74806a7b7 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
@@ -164,7 +164,7 @@ if [ -d /tgt_root/etc/ ] ; then
echo "$bootfs /boot ext3 defaults 1 2" >> /tgt_root/etc/fstab
# We dont want udev to mount our root device while we're booting...
if [ -d /tgt_root/etc/udev/ ] ; then
- echo "/dev/${device}" >> /tgt_root/etc/udev/mount.blacklist
+ echo "/dev/${device}" >> /tgt_root/etc/udev/mount.blocklist
fi
fi
umount /tgt_root
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index e71579631b5..1f7dab8a967 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -261,7 +261,7 @@ if [ -d /tgt_root/etc/ ] ; then
echo "$bootdev /boot ext3 defaults 1 2" >> /tgt_root/etc/fstab
# We dont want udev to mount our root device while we're booting...
if [ -d /tgt_root/etc/udev/ ] ; then
- echo "${device}" >> /tgt_root/etc/udev/mount.blacklist
+ echo "${device}" >> /tgt_root/etc/udev/mount.blocklist
fi
fi
umount /tgt_root
--git a/meta/recipes-core/udev/udev-extraconf/mount.blacklist b/meta/recipes-core/udev/udev-extraconf/mount.blocklist
similarity index 100%
rename from meta/recipes-core/udev/udev-extraconf/mount.blacklist
rename to meta/recipes-core/udev/udev-extraconf/mount.blocklist
diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh
index b23731870ea..41b7c775c25 100644
--- a/meta/recipes-core/udev/udev-extraconf/mount.sh
+++ b/meta/recipes-core/udev/udev-extraconf/mount.sh
@@ -26,11 +26,11 @@ fi
PMOUNT="/usr/bin/pmount"
-for line in `grep -h -v ^# /etc/udev/mount.blacklist /etc/udev/mount.blacklist.d/*`
+for line in `grep -h -v ^# /etc/udev/mount.blocklist /etc/udev/mount.blocklist.d/*`
do
if [ ` expr match "$DEVNAME" "$line" ` -gt 0 ];
then
- logger "udev/mount.sh" "[$DEVNAME] is blacklisted, ignoring"
+ logger "udev/mount.sh" "[$DEVNAME] mounting is blocked, ignoring"
exit 0
fi
done
--git a/meta/recipes-core/udev/udev-extraconf_1.1.bb b/meta/recipes-core/udev/udev-extraconf_1.1.bb
index 2ba35b0df69..42ba687ed8b 100644
--- a/meta/recipes-core/udev/udev-extraconf_1.1.bb
+++ b/meta/recipes-core/udev/udev-extraconf_1.1.bb
@@ -1,13 +1,13 @@
SUMMARY = "Extra machine specific configuration files"
HOMEPAGE = "https://wiki.gentoo.org/wiki/Eudev"
-DESCRIPTION = "Extra machine specific configuration files for udev, specifically blacklist information."
+DESCRIPTION = "Extra machine specific configuration files for udev, specifically blocklist information."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = " \
file://automount.rules \
file://mount.sh \
- file://mount.blacklist \
+ file://mount.blocklist \
file://autonet.rules \
file://network.sh \
file://localextra.rules \
@@ -23,8 +23,8 @@ do_install() {
install -m 0644 ${WORKDIR}/autonet.rules ${D}${sysconfdir}/udev/rules.d/autonet.rules
install -m 0644 ${WORKDIR}/localextra.rules ${D}${sysconfdir}/udev/rules.d/localextra.rules
- install -d ${D}${sysconfdir}/udev/mount.blacklist.d
- install -m 0644 ${WORKDIR}/mount.blacklist ${D}${sysconfdir}/udev/
+ install -d ${D}${sysconfdir}/udev/mount.blocklist.d
+ install -m 0644 ${WORKDIR}/mount.blocklist ${D}${sysconfdir}/udev/
install -d ${D}${sysconfdir}/udev/scripts/
@@ -37,7 +37,7 @@ do_install() {
FILES:${PN} = "${sysconfdir}/udev"
RDEPENDS:${PN} = "udev"
-CONFFILES:${PN} = "${sysconfdir}/udev/mount.blacklist"
+CONFFILES:${PN} = "${sysconfdir}/udev/mount.blocklist"
# to replace udev-extra-rules from meta-oe
RPROVIDES:${PN} = "udev-extra-rules"
diff --git a/meta/recipes-extended/parted/files/run-ptest b/meta/recipes-extended/parted/files/run-ptest
index c3d6fca3391..1eee9f3b730 100644
--- a/meta/recipes-extended/parted/files/run-ptest
+++ b/meta/recipes-extended/parted/files/run-ptest
@@ -1,7 +1,7 @@
#!/bin/sh
-mkdir -p /etc/udev/mount.blacklist.d
-echo /dev/sda1 >> /etc/udev/mount.blacklist.d/parted-tmp
+mkdir -p /etc/udev/mount.blocklist.d
+echo /dev/sda1 >> /etc/udev/mount.blocklist.d/parted-tmp
rm -f tests/*.log
make -C tests test-suite.log
-rm /etc/udev/mount.blacklist.d/parted-tmp
+rm /etc/udev/mount.blocklist.d/parted-tmp
--
2.33.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [OE-core] [PATCH 1/4] rename core-image-testmaster* to core-image-testgolden
2021-12-06 15:35 ` [PATCH 1/4] rename core-image-testmaster* to core-image-testgolden Quentin Schulz
@ 2021-12-06 15:42 ` Joshua Watt
0 siblings, 0 replies; 13+ messages in thread
From: Joshua Watt @ 2021-12-06 15:42 UTC (permalink / raw)
To: Quentin Schulz; +Cc: openembedded-core, Quentin Schulz
On Mon, Dec 6, 2021 at 9:35 AM Quentin Schulz <foss@0leil.net> wrote:
>
> "golden" has a more explicit meaning than master in addition to not
> being an issue wrt inclusivity.
I don't think "golden" has the same meaning here. Perhaps "controller"
or something similar?
>
> Signed-off-by: Quentin Schulz <foss+yocto@0leil.net>
> ---
> meta/conf/distro/include/distro_alias.inc | 4 ++--
> meta/conf/distro/include/maintainers.inc | 4 ++--
> meta/lib/oeqa/controllers/masterimage.py | 6 +++---
> ...ster-initramfs.bb => core-image-testgolden-initramfs.bb} | 2 +-
> .../{core-image-testmaster.bb => core-image-testgolden.bb} | 4 ++--
> 5 files changed, 10 insertions(+), 10 deletions(-)
> rename meta/recipes-extended/images/{core-image-testmaster-initramfs.bb => core-image-testgolden-initramfs.bb} (92%)
> rename meta/recipes-extended/images/{core-image-testmaster.bb => core-image-testgolden.bb} (80%)
>
> diff --git a/meta/conf/distro/include/distro_alias.inc b/meta/conf/distro/include/distro_alias.inc
> index 44bc3bf1315..2649a21474b 100644
> --- a/meta/conf/distro/include/distro_alias.inc
> +++ b/meta/conf/distro/include/distro_alias.inc
> @@ -42,8 +42,8 @@ DISTRO_PN_ALIAS:pn-core-image-rt-sdk = "OE-Core"
> DISTRO_PN_ALIAS:pn-core-image-sato = "OE-Core"
> DISTRO_PN_ALIAS:pn-core-image-sato-dev = "OE-Core"
> DISTRO_PN_ALIAS:pn-core-image-sato-sdk = "OE-Core"
> -DISTRO_PN_ALIAS:pn-core-image-testmaster = "OE-Core"
> -DISTRO_PN_ALIAS:pn-core-image-testmaster-initramfs = "OE-Core"
> +DISTRO_PN_ALIAS:pn-core-image-testgolden = "OE-Core"
> +DISTRO_PN_ALIAS:pn-core-image-testgolden-initramfs = "OE-Core"
> DISTRO_PN_ALIAS:pn-core-image-weston = "OE-Core"
> DISTRO_PN_ALIAS:pn-core-image-x11 = "OE-Core"
> DISTRO_PN_ALIAS:pn-createrepo-c = "Fedora=createrepo_c Clear=createrepo_c"
> diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
> index 97ba2ce79c8..61572247560 100644
> --- a/meta/conf/distro/include/maintainers.inc
> +++ b/meta/conf/distro/include/maintainers.inc
> @@ -112,8 +112,8 @@ RECIPE_MAINTAINER:pn-core-image-ptest-all = "Richard Purdie <richard.purdie@linu
> RECIPE_MAINTAINER:pn-core-image-ptest-fast = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> RECIPE_MAINTAINER:pn-core-image-sato = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> RECIPE_MAINTAINER:pn-core-image-sato-sdk = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> -RECIPE_MAINTAINER:pn-core-image-testmaster-initramfs = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> -RECIPE_MAINTAINER:pn-core-image-testmaster = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> +RECIPE_MAINTAINER:pn-core-image-testgolden-initramfs = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> +RECIPE_MAINTAINER:pn-core-image-testgolden = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> RECIPE_MAINTAINER:pn-core-image-weston = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> RECIPE_MAINTAINER:pn-core-image-weston-sdk = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> RECIPE_MAINTAINER:pn-core-image-x11 = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> diff --git a/meta/lib/oeqa/controllers/masterimage.py b/meta/lib/oeqa/controllers/masterimage.py
> index 0bf5917e481..2eff6d05ef9 100644
> --- a/meta/lib/oeqa/controllers/masterimage.py
> +++ b/meta/lib/oeqa/controllers/masterimage.py
> @@ -3,13 +3,13 @@
> # SPDX-License-Identifier: MIT
> #
> # This module adds support to testimage.bbclass to deploy images and run
> -# tests using a "master image" - this is a "known good" image that is
> +# tests using a "golden image" - this is a "known good" image that is
> # installed onto the device as part of initial setup and will be booted into
> # with no interaction; we can then use it to deploy the image to be tested
> # to a second partition before running the tests.
> #
> -# For an example master image, see core-image-testmaster
> -# (meta/recipes-extended/images/core-image-testmaster.bb)
> +# For an example golden image, see core-image-testgolden
> +# (meta/recipes-extended/images/core-image-testgolden.bb)
>
> import os
> import bb
> diff --git a/meta/recipes-extended/images/core-image-testmaster-initramfs.bb b/meta/recipes-extended/images/core-image-testgolden-initramfs.bb
> similarity index 92%
> rename from meta/recipes-extended/images/core-image-testmaster-initramfs.bb
> rename to meta/recipes-extended/images/core-image-testgolden-initramfs.bb
> index 1a2e0af27ba..5495e3d12e0 100644
> --- a/meta/recipes-extended/images/core-image-testmaster-initramfs.bb
> +++ b/meta/recipes-extended/images/core-image-testgolden-initramfs.bb
> @@ -7,7 +7,7 @@ PACKAGE_INSTALL = "initramfs-live-boot initramfs-live-install-testfs initramfs-l
> # Do not pollute the initrd image with rootfs features
> IMAGE_FEATURES = ""
>
> -export IMAGE_BASENAME = "core-image-testmaster-initramfs"
> +export IMAGE_BASENAME = "core-image-testgolden-initramfs"
> IMAGE_NAME_SUFFIX ?= ""
> IMAGE_LINGUAS = ""
>
> diff --git a/meta/recipes-extended/images/core-image-testmaster.bb b/meta/recipes-extended/images/core-image-testgolden.bb
> similarity index 80%
> rename from meta/recipes-extended/images/core-image-testmaster.bb
> rename to meta/recipes-extended/images/core-image-testgolden.bb
> index 0faf18f5a4e..f4cab1491d4 100644
> --- a/meta/recipes-extended/images/core-image-testmaster.bb
> +++ b/meta/recipes-extended/images/core-image-testgolden.bb
> @@ -1,4 +1,4 @@
> -DESCRIPTION = "A master image to be deployed on a target useful for testing other images"
> +DESCRIPTION = "A golden image to be deployed on a target useful for testing other images"
>
> IMAGE_FEATURES += "ssh-server-openssh package-management"
>
> @@ -14,5 +14,5 @@ IMAGE_INSTALL += "\
> # we need a particular initramfs for live images
> # that pulls custom install scripts which take
> # care of partitioning for us
> -INITRD_IMAGE = "core-image-testmaster-initramfs"
> +INITRD_IMAGE = "core-image-testgolden-initramfs"
>
> --
> 2.33.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#159243): https://lists.openembedded.org/g/openembedded-core/message/159243
> Mute This Topic: https://lists.openembedded.org/mt/87542272/3616693
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [JPEWhacker@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [OE-core] [PATCH 2/4] core: initrdscripts: init-install{-efi,}-testfs.sh: rename masterimage into goldenimage
2021-12-06 15:35 ` [PATCH 2/4] core: initrdscripts: init-install{-efi,}-testfs.sh: rename masterimage into goldenimage Quentin Schulz
@ 2021-12-06 17:14 ` Alexander Kanavin
0 siblings, 0 replies; 13+ messages in thread
From: Alexander Kanavin @ 2021-12-06 17:14 UTC (permalink / raw)
To: Quentin Schulz; +Cc: OE-core, Quentin Schulz
[-- Attachment #1: Type: text/plain, Size: 4990 bytes --]
I'd use grep here and (case-insensitively) find all references to
masterimage in poky/. It's likely the file and the class can be renamed as
well without significant damage.
Alex
On Mon, 6 Dec 2021 at 16:35, Quentin Schulz <foss@0leil.net> wrote:
> golden image has a more explicit meaning in addition of not being an
> issue wrt inclusivity.
>
> Signed-off-by: Quentin Schulz <foss+yocto@0leil.net>
> ---
> meta/lib/oeqa/controllers/masterimage.py | 10 +++++-----
> meta/lib/oeqa/runtime/cases/ssh.py | 4 ++--
> .../initrdscripts/files/init-install-efi-testfs.sh | 2 +-
> .../initrdscripts/files/init-install-testfs.sh | 2 +-
> 4 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/meta/lib/oeqa/controllers/masterimage.py
> b/meta/lib/oeqa/controllers/masterimage.py
> index 2eff6d05ef9..feb30366323 100644
> --- a/meta/lib/oeqa/controllers/masterimage.py
> +++ b/meta/lib/oeqa/controllers/masterimage.py
> @@ -121,17 +121,17 @@ class
> MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta
> # base class just sets the ssh log file for us
> super(MasterImageHardwareTarget, self).deploy()
> self.master = sshcontrol.SSHControl(ip=self.ip,
> logfile=self.sshlog, timeout=600, port=self.port)
> - status, output = self.master.run("cat /etc/masterimage")
> + status, output = self.master.run("cat /etc/goldenimage")
> if status != 0:
> - # We're not booted into the master image, so try rebooting
> - bb.plain("%s - booting into the master image" % self.pn)
> + # We're not booted into the golden image, so try rebooting
> + bb.plain("%s - booting into the golden image" % self.pn)
> self.power_ctl("cycle")
> self._wait_until_booted()
>
> bb.plain("%s - deploying image on target" % self.pn)
> - status, output = self.master.run("cat /etc/masterimage")
> + status, output = self.master.run("cat /etc/goldenimage")
> if status != 0:
> - bb.fatal("No ssh connectivity or target isn't running a
> master image.\n%s" % output)
> + bb.fatal("No ssh connectivity or target isn't running a
> golden image.\n%s" % output)
> if self.user_cmds:
> self.deploy_cmds = self.user_cmds.split("\n")
> try:
> diff --git a/meta/lib/oeqa/runtime/cases/ssh.py
> b/meta/lib/oeqa/runtime/cases/ssh.py
> index 60a5fbbfbfd..a0bbed0b581 100644
> --- a/meta/lib/oeqa/runtime/cases/ssh.py
> +++ b/meta/lib/oeqa/runtime/cases/ssh.py
> @@ -13,7 +13,7 @@ class SSHTest(OERuntimeTestCase):
> def test_ssh(self):
> (status, output) = self.target.run('uname -a')
> self.assertEqual(status, 0, msg='SSH Test failed: %s' % output)
> - (status, output) = self.target.run('cat /etc/masterimage')
> - msg = "This isn't the right image - /etc/masterimage " \
> + (status, output) = self.target.run('cat /etc/goldenimage')
> + msg = "This isn't the right image - /etc/goldenimage " \
> "shouldn't be here %s" % output
> self.assertEqual(status, 1, msg=msg)
> diff --git
> a/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh
> b/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh
> index b351985a61c..6f554f62967 100644
> --- a/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh
> +++ b/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh
> @@ -133,7 +133,7 @@ mount -o rw,loop,noatime,nodiratime /run/media/$1/$2
> /rootmnt
> echo "Copying rootfs files..."
> cp -a /rootmnt/* /ssd
>
> -touch /ssd/etc/masterimage
> +touch /ssd/etc/goldenimage
>
> if [ -d /ssd/etc/ ] ; then
> # We dont want udev to mount our root device while we're booting...
> diff --git a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
> b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
> index ac621605287..df3a7767319 100644
> --- a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
> +++ b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
> @@ -158,7 +158,7 @@ mount -o rw,loop,noatime,nodiratime /run/media/$1/$2
> /src_root
> echo "Copying rootfs files..."
> cp -a /src_root/* /tgt_root
>
> -touch /tgt_root/etc/masterimage
> +touch /tgt_root/etc/goldenimage
>
> if [ -d /tgt_root/etc/ ] ; then
> echo "$bootfs /boot ext3 defaults
> 1 2" >> /tgt_root/etc/fstab
> --
> 2.33.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#159244):
> https://lists.openembedded.org/g/openembedded-core/message/159244
> Mute This Topic: https://lists.openembedded.org/mt/87542274/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 6748 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [OE-core] [PATCH 3/4] oeqa: rename masterimage into goldenimage
2021-12-06 15:35 ` [PATCH 3/4] oeqa: " Quentin Schulz
@ 2021-12-06 17:14 ` Alexander Kanavin
0 siblings, 0 replies; 13+ messages in thread
From: Alexander Kanavin @ 2021-12-06 17:14 UTC (permalink / raw)
To: Quentin Schulz; +Cc: OE-core, Quentin Schulz
[-- Attachment #1: Type: text/plain, Size: 5503 bytes --]
Nevermind ;)
Alex
On Mon, 6 Dec 2021 at 16:35, Quentin Schulz <foss@0leil.net> wrote:
> Golden image has a more explicit meaning than masterimage and is not an
> issue wrt inclusivity.
>
> Signed-off-by: Quentin Schulz <foss+yocto@0leil.net>
> ---
> .../{masterimage.py => goldenimage.py} | 32 +++++++++----------
> 1 file changed, 16 insertions(+), 16 deletions(-)
> rename meta/lib/oeqa/controllers/{masterimage.py => goldenimage.py} (91%)
>
> diff --git a/meta/lib/oeqa/controllers/masterimage.py
> b/meta/lib/oeqa/controllers/goldenimage.py
> similarity index 91%
> rename from meta/lib/oeqa/controllers/masterimage.py
> rename to meta/lib/oeqa/controllers/goldenimage.py
> index feb30366323..fb1ac7a53a0 100644
> --- a/meta/lib/oeqa/controllers/masterimage.py
> +++ b/meta/lib/oeqa/controllers/goldenimage.py
> @@ -24,12 +24,12 @@ from oeqa.utils import CommandError
>
> from abc import ABCMeta, abstractmethod
>
> -class MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget,
> metaclass=ABCMeta):
> +class GoldenImageHardwareTarget(oeqa.targetcontrol.BaseTarget,
> metaclass=ABCMeta):
>
> supported_image_fstypes = ['tar.gz', 'tar.bz2']
>
> def __init__(self, d):
> - super(MasterImageHardwareTarget, self).__init__(d)
> + super(GoldenImageHardwareTarget, self).__init__(d)
>
> # target ip
> addr = d.getVar("TEST_TARGET_IP") or bb.fatal('Please set
> TEST_TARGET_IP with the IP address of the machine you want to run the tests
> on.')
> @@ -61,8 +61,8 @@ class
> MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta
> if not os.path.isfile(self.kernel):
> bb.fatal("No kernel found. Expected path: %s" % self.kernel)
>
> - # master ssh connection
> - self.master = None
> + # golden ssh connection
> + self.golden = None
> # if the user knows what they are doing, then by all means...
> self.user_cmds = d.getVar("TEST_DEPLOY_CMDS")
> self.deploy_cmds = None
> @@ -119,9 +119,9 @@ class
> MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta
>
> def deploy(self):
> # base class just sets the ssh log file for us
> - super(MasterImageHardwareTarget, self).deploy()
> - self.master = sshcontrol.SSHControl(ip=self.ip,
> logfile=self.sshlog, timeout=600, port=self.port)
> - status, output = self.master.run("cat /etc/goldenimage")
> + super(GoldenImageHardwareTarget, self).deploy()
> + self.golden = sshcontrol.SSHControl(ip=self.ip,
> logfile=self.sshlog, timeout=600, port=self.port)
> + status, output = self.golden.run("cat /etc/goldenimage")
> if status != 0:
> # We're not booted into the golden image, so try rebooting
> bb.plain("%s - booting into the golden image" % self.pn)
> @@ -129,7 +129,7 @@ class
> MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta
> self._wait_until_booted()
>
> bb.plain("%s - deploying image on target" % self.pn)
> - status, output = self.master.run("cat /etc/goldenimage")
> + status, output = self.golden.run("cat /etc/goldenimage")
> if status != 0:
> bb.fatal("No ssh connectivity or target isn't running a
> golden image.\n%s" % output)
> if self.user_cmds:
> @@ -156,10 +156,10 @@ class
> MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta
>
> def stop(self):
> bb.plain("%s - reboot/powercycle target" % self.pn)
> - self.power_cycle(self.master)
> + self.power_cycle(self.golden)
>
>
> -class SystemdbootTarget(MasterImageHardwareTarget):
> +class SystemdbootTarget(GoldenImageHardwareTarget):
>
> def __init__(self, d):
> super(SystemdbootTarget, self).__init__(d)
> @@ -184,16 +184,16 @@ class SystemdbootTarget(MasterImageHardwareTarget):
>
> def _deploy(self):
> # make sure these aren't mounted
> - self.master.run("umount /boot; umount /mnt/testrootfs; umount
> /sys/firmware/efi/efivars;")
> + self.golden.run("umount /boot; umount /mnt/testrootfs; umount
> /sys/firmware/efi/efivars;")
> # from now on, every deploy cmd should return 0
> # else an exception will be thrown by sshcontrol
> - self.master.ignore_status = False
> - self.master.copy_to(self.rootfs, "~/test-rootfs." +
> self.image_fstype)
> - self.master.copy_to(self.kernel, "~/test-kernel")
> + self.golden.ignore_status = False
> + self.golden.copy_to(self.rootfs, "~/test-rootfs." +
> self.image_fstype)
> + self.golden.copy_to(self.kernel, "~/test-kernel")
> for cmd in self.deploy_cmds:
> - self.master.run(cmd)
> + self.golden.run(cmd)
>
> def _start(self, params=None):
> - self.power_cycle(self.master)
> + self.power_cycle(self.golden)
> # there are better ways than a timeout but this should work for
> now
> time.sleep(120)
> --
> 2.33.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#159245):
> https://lists.openembedded.org/g/openembedded-core/message/159245
> Mute This Topic: https://lists.openembedded.org/mt/87542275/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 7331 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [OE-core] [PATCH 0/4] blacklist/blocklist and master/golden
2021-12-06 15:35 [PATCH 0/4] blacklist/blocklist and master/golden Quentin Schulz
` (3 preceding siblings ...)
2021-12-06 15:35 ` [PATCH 4/4] core: udev: udev-extraconf: rename mount.blacklist* to mount.blocklist.* Quentin Schulz
@ 2021-12-06 23:02 ` Richard Purdie
4 siblings, 0 replies; 13+ messages in thread
From: Richard Purdie @ 2021-12-06 23:02 UTC (permalink / raw)
To: Quentin Schulz, openembedded-core; +Cc: Quentin Schulz
On Mon, 2021-12-06 at 16:35 +0100, Quentin Schulz wrote:
> Hi all,
>
> It seems some changes are not too invasive and can be made to be a bit
> more inclusive, so I'll make the autobuilder try those patches and tell
> me whether I broke something somewhere I wasn't aware of.
>
> In other words: I did not test those changes.
>
> Those changes warrant some notes in the migration guide once they
> are merged.
>
> Cheers,
> Quentin
>
> Quentin Schulz (4):
> rename core-image-testmaster* to core-image-testgolden
> core: initrdscripts: init-install{-efi,}-testfs.sh: rename masterimage
> into goldenimage
> oeqa: rename masterimage into goldenimage
> core: udev: udev-extraconf: rename mount.blacklist* to
> mount.blocklist.*
I'm sitting wondering what core-image-testmaster actually is. I don't remember
anything being done with this for a long time so it may be a good candidate for
deletion. I should check with QA but...
Cheers,
Richard
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [OE-core] [PATCH 4/4] core: udev: udev-extraconf: rename mount.blacklist* to mount.blocklist.*
2021-12-06 15:35 ` [PATCH 4/4] core: udev: udev-extraconf: rename mount.blacklist* to mount.blocklist.* Quentin Schulz
@ 2021-12-06 23:31 ` Richard Purdie
2021-12-08 9:57 ` Eero Aaltonen
0 siblings, 1 reply; 13+ messages in thread
From: Richard Purdie @ 2021-12-06 23:31 UTC (permalink / raw)
To: Quentin Schulz, openembedded-core; +Cc: Quentin Schulz
On Mon, 2021-12-06 at 16:35 +0100, Quentin Schulz wrote:
> blocklist has a more obvious meaning than blacklist and is also not an
> issue wrt inclusivity, so let's use that naming instead.
A "blocklist" with a filesystem is unfortunately confusing (a list of block
numbers on the filesystem?). "ignorelist" or even "ignore-devices" may be
better? (or skip)
Cheers,
Richard
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [OE-core] [PATCH 4/4] core: udev: udev-extraconf: rename mount.blacklist* to mount.blocklist.*
2021-12-06 23:31 ` [OE-core] " Richard Purdie
@ 2021-12-08 9:57 ` Eero Aaltonen
2021-12-16 15:03 ` Saul Wold
0 siblings, 1 reply; 13+ messages in thread
From: Eero Aaltonen @ 2021-12-08 9:57 UTC (permalink / raw)
To: richard.purdie, Quentin Schulz, openembedded-core; +Cc: Quentin Schulz
On Mon, 2021-12-06 at 23:31 +0000, Richard Purdie via
lists.openembedded.org wrote:
> On Mon, 2021-12-06 at 16:35 +0100, Quentin Schulz wrote:
> > blocklist has a more obvious meaning than blacklist and is also not
> > an
> > issue wrt inclusivity, so let's use that naming instead.
>
> A "blocklist" with a filesystem is unfortunately confusing (a list of
> block
> numbers on the filesystem?). "ignorelist" or even "ignore-devices"
> may be
> better? (or skip)
I offer "denylist".
Cheers,
Eero
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [OE-core] [PATCH 4/4] core: udev: udev-extraconf: rename mount.blacklist* to mount.blocklist.*
2021-12-08 9:57 ` Eero Aaltonen
@ 2021-12-16 15:03 ` Saul Wold
2021-12-16 17:20 ` Quentin Schulz
0 siblings, 1 reply; 13+ messages in thread
From: Saul Wold @ 2021-12-16 15:03 UTC (permalink / raw)
To: openembedded-core
On 12/8/21 01:57, Eero Aaltonen wrote:
> On Mon, 2021-12-06 at 23:31 +0000, Richard Purdie via
> lists.openembedded.org wrote:
>> On Mon, 2021-12-06 at 16:35 +0100, Quentin Schulz wrote:
>>> blocklist has a more obvious meaning than blacklist and is also not
>>> an
>>> issue wrt inclusivity, so let's use that naming instead.
>>
>> A "blocklist" with a filesystem is unfortunately confusing (a list of
>> block
>> numbers on the filesystem?). "ignorelist" or even "ignore-devices"
>> may be
>> better? (or skip)
>
> I offer "denylist".
>
I have recently added a list of patches and files that have problematic
language to the Inclusive Language Wiki [0], this is one of them, I had
proposed mount.disallow
So we can see that everyone has a different idea. Once we have an
approved rename, we can revisit this patch.
Thanks
Sau!
[0] https://wiki.yoctoproject.org/wiki/Inclusive_language#Patch_Files
> Cheers,
> Eero
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#159353): https://lists.openembedded.org/g/openembedded-core/message/159353
> Mute This Topic: https://lists.openembedded.org/mt/87542276/4950653
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [Saul.Wold@windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Sau!
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [OE-core] [PATCH 4/4] core: udev: udev-extraconf: rename mount.blacklist* to mount.blocklist.*
2021-12-16 15:03 ` Saul Wold
@ 2021-12-16 17:20 ` Quentin Schulz
0 siblings, 0 replies; 13+ messages in thread
From: Quentin Schulz @ 2021-12-16 17:20 UTC (permalink / raw)
To: openembedded-core, Saul Wold
Hi all,
On December 16, 2021 4:03:14 PM GMT+01:00, Saul Wold <Saul.Wold@windriver.com> wrote:
>
>
>On 12/8/21 01:57, Eero Aaltonen wrote:
>> On Mon, 2021-12-06 at 23:31 +0000, Richard Purdie via
>> lists.openembedded.org wrote:
>>> On Mon, 2021-12-06 at 16:35 +0100, Quentin Schulz wrote:
>>>> blocklist has a more obvious meaning than blacklist and is also not
>>>> an
>>>> issue wrt inclusivity, so let's use that naming instead.
>>>
>>> A "blocklist" with a filesystem is unfortunately confusing (a list of
>>> block
>>> numbers on the filesystem?). "ignorelist" or even "ignore-devices"
>>> may be
>>> better? (or skip)
>>
>> I offer "denylist".
>>
>I have recently added a list of patches and files that have problematic
>language to the Inclusive Language Wiki [0], this is one of them, I had
>proposed mount.disallow
>
>So we can see that everyone has a different idea. Once we have an
>approved rename, we can revisit this patch.
>
I'm lagging behind a bit sorry.
I'd suggest to rename mount.blacklist to automount.something. I find it more explicit that just mount with ignore, deny or disallow as "extension" as suggested before.
If I haven't sent a V2 by Saturday, feel free anyone to rework this patch if you want as I won't have much time before next year.
Cheers,
Quentin
>Thanks
>
>Sau!
>
>[0] https://wiki.yoctoproject.org/wiki/Inclusive_language#Patch_Files
>
>
>> Cheers,
>> Eero
>>
>>
>>
>>
>>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2021-12-16 17:20 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06 15:35 [PATCH 0/4] blacklist/blocklist and master/golden Quentin Schulz
2021-12-06 15:35 ` [PATCH 1/4] rename core-image-testmaster* to core-image-testgolden Quentin Schulz
2021-12-06 15:42 ` [OE-core] " Joshua Watt
2021-12-06 15:35 ` [PATCH 2/4] core: initrdscripts: init-install{-efi,}-testfs.sh: rename masterimage into goldenimage Quentin Schulz
2021-12-06 17:14 ` [OE-core] " Alexander Kanavin
2021-12-06 15:35 ` [PATCH 3/4] oeqa: " Quentin Schulz
2021-12-06 17:14 ` [OE-core] " Alexander Kanavin
2021-12-06 15:35 ` [PATCH 4/4] core: udev: udev-extraconf: rename mount.blacklist* to mount.blocklist.* Quentin Schulz
2021-12-06 23:31 ` [OE-core] " Richard Purdie
2021-12-08 9:57 ` Eero Aaltonen
2021-12-16 15:03 ` Saul Wold
2021-12-16 17:20 ` Quentin Schulz
2021-12-06 23:02 ` [OE-core] [PATCH 0/4] blacklist/blocklist and master/golden Richard Purdie
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.