diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/wic/plugins/source/isoimage-isohybrid.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py index 1ceba62be0..b464263c3d 100644 --- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py +++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py | |||
@@ -162,11 +162,9 @@ class IsoImagePlugin(SourcePlugin): | |||
162 | if not image_type: | 162 | if not image_type: |
163 | raise WicError("Couldn't find INITRAMFS_FSTYPES, exiting.") | 163 | raise WicError("Couldn't find INITRAMFS_FSTYPES, exiting.") |
164 | 164 | ||
165 | target_arch = get_bitbake_var("TRANSLATED_TARGET_ARCH") | 165 | machine = os.path.basename(initrd_dir) |
166 | if not target_arch: | ||
167 | raise WicError("Couldn't find TRANSLATED_TARGET_ARCH, exiting.") | ||
168 | 166 | ||
169 | initrd = glob.glob('%s/%s*%s.%s' % (initrd_dir, image_name, target_arch, image_type))[0] | 167 | initrd = glob.glob('%s/%s*%s.%s' % (initrd_dir, image_name, machine, image_type))[0] |
170 | 168 | ||
171 | if not os.path.exists(initrd): | 169 | if not os.path.exists(initrd): |
172 | # Create initrd from rootfs directory | 170 | # Create initrd from rootfs directory |