Skip to contentSkip to conversation

anaconda_oe.py: correct image name

PATCH In review [email protected] 2 participants 2 messages Oct 18, 2023 – Oct 20, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 anaconda_oe.py: correct image name

From: Changqing Li <[email protected]>

Since oe-core commit 26d97acc713 [image-artifact-names: include ${IMAGE_NAME_SUFFIX} directly in both ${IMAGE_NAME} and ${IMAGE_LINK_NAME}], image name has changed to core-image-minimal-qemux86.rootfs.ext4, change accordingly to fix error:
INSTALLER_TARGET_BUILD does not exist

---
 README                                 | 2 +-
 lib/oeqa/selftest/cases/anaconda_oe.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
README +1 -1
index 07b63fe..76e9665 100644
@@ -162,7 +162,7 @@ Building the target installer
            Edit conf/local.conf to use:
            $ echo 'PACKAGE_CLASSES = "package_rpm"' >> conf/local.conf
            $ echo 'DISTRO = "anaconda"' >> conf/local.conf
-           $ echo 'INSTALLER_TARGET_BUILD = "<target_build>/tmp-glibc/deploy/images/qemux86/core-image-minimal-qemux86.ext4"' >> conf/local.conf
+           $ echo 'INSTALLER_TARGET_BUILD = "<target_build>/tmp-glibc/deploy/images/qemux86/core-image-minimal-qemux86.rootfs.ext4"' >> conf/local.conf
 
            Edit conf/bblayers.conf to include other layers
            BBLAYERS ?= " \
lib/oeqa/selftest/cases/anaconda_oe.py +2 -2
index bf55308..20b8d5b 100644
@@ -146,7 +146,7 @@ class TestAnacondaOE(OESelftestTestCase):
         ks_file = os.path.join(self.layer_path, 'example/ks-imagecopy.cfg')
         features = 'TMPDIR .= "_host"\n'
         features += 'DISTRO = "%s"\n' % self.anaconda_distro
-        features += 'INSTALLER_TARGET_BUILD = "%s/%s-%s.ext4"\n' % (self.target_deploy_dir_image, self.target_recipe, self.machine)
+        features += 'INSTALLER_TARGET_BUILD = "%s/%s-%s.rootfs.ext4"\n' % (self.target_deploy_dir_image, self.target_recipe, self.machine)
         features += 'KICKSTART_FILE = "%s"\n' % ks_file
         features += 'SYSLINUX_TIMEOUT = "10"\n'
         features += 'APPEND:append = " textinst"\n'
@@ -164,7 +164,7 @@ class TestAnacondaOE(OESelftestTestCase):
     def test_testanaconda_imagecopy_install(self):
         features = 'TMPDIR .= "_host"\n'
         features += 'DISTRO = "%s"\n' % self.anaconda_distro
-        features += 'INSTALLER_TARGET_BUILD = "%s/%s-%s.ext4"\n' % (self.target_deploy_dir_image, self.target_recipe, self.machine)
+        features += 'INSTALLER_TARGET_BUILD = "%s/%s-%s.rootfs.ext4"\n' % (self.target_deploy_dir_image, self.target_recipe, self.machine)
         self.logger.info('extra local.conf:\n%s' % features)
         self.append_config(features)
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 7 lines · Changqing Li

From: Changqing Li <[email protected]>

Since oe-core commit 26d97acc713 [image-artifact-names: include ${IMAGE_NAME_SUFFIX} directly in both ${IMAGE_NAME} and ${IMAGE_LINK_NAME}], image name has changed to core-image-minimal-qemux86.rootfs.ext4, change accordingly to fix error:
INSTALLER_TARGET_BUILD does not exist

Merged. Thanks.

Kai

Quoted 51 lines
---
  README                                 | 2 +-
  lib/oeqa/selftest/cases/anaconda_oe.py | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
README +1 -1
index 07b63fe..76e9665 100644
@@ -162,7 +162,7 @@ Building the target installer
             Edit conf/local.conf to use:
             $ echo 'PACKAGE_CLASSES = "package_rpm"' >> conf/local.conf
             $ echo 'DISTRO = "anaconda"' >> conf/local.conf
-           $ echo 'INSTALLER_TARGET_BUILD = "<target_build>/tmp-glibc/deploy/images/qemux86/core-image-minimal-qemux86.ext4"' >> conf/local.conf
+           $ echo 'INSTALLER_TARGET_BUILD = "<target_build>/tmp-glibc/deploy/images/qemux86/core-image-minimal-qemux86.rootfs.ext4"' >> conf/local.conf
 
             Edit conf/bblayers.conf to include other layers
             BBLAYERS ?= " \
lib/oeqa/selftest/cases/anaconda_oe.py +2 -3
index bf55308..20b8d5b 100644
@@ -146,7 +146,7 @@ class TestAnacondaOE(OESelftestTestCase):
          ks_file = os.path.join(self.layer_path, 'example/ks-imagecopy.cfg')
          features = 'TMPDIR .= "_host"\n'
          features += 'DISTRO = "%s"\n' % self.anaconda_distro
-        features += 'INSTALLER_TARGET_BUILD = "%s/%s-%s.ext4"\n' % (self.target_deploy_dir_image, self.target_recipe, self.machine)
+        features += 'INSTALLER_TARGET_BUILD = "%s/%s-%s.rootfs.ext4"\n' % (self.target_deploy_dir_image, self.target_recipe, self.machine)
          features += 'KICKSTART_FILE = "%s"\n' % ks_file
          features += 'SYSLINUX_TIMEOUT = "10"\n'
          features += 'APPEND:append = " textinst"\n'
@@ -164,7 +164,7 @@ class TestAnacondaOE(OESelftestTestCase):
      def test_testanaconda_imagecopy_install(self):
          features = 'TMPDIR .= "_host"\n'
          features += 'DISTRO = "%s"\n' % self.anaconda_distro
-        features += 'INSTALLER_TARGET_BUILD = "%s/%s-%s.ext4"\n' % (self.target_deploy_dir_image, self.target_recipe, self.machine)
+        features += 'INSTALLER_TARGET_BUILD = "%s/%s-%s.rootfs.ext4"\n' % (self.target_deploy_dir_image, self.target_recipe, self.machine)
          self.logger.info('extra local.conf:\n%s' % features)
          self.append_config(features)
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#61383): https://lists.yoctoproject.org/g/yocto/message/61383
Mute This Topic: https://lists.yoctoproject.org/mt/102032096/3616933
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
Kai Kang
Wind River Linux