diff options
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/plugins/source/isoimage-isohybrid.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py index 31dc9b6ce6..de99ad8495 100644 --- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py +++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py | |||
@@ -23,6 +23,7 @@ | |||
23 | import os | 23 | import os |
24 | import re | 24 | import re |
25 | import shutil | 25 | import shutil |
26 | import glob | ||
26 | 27 | ||
27 | from wic import msger | 28 | from wic import msger |
28 | from wic.pluginbase import SourcePlugin | 29 | from wic.pluginbase import SourcePlugin |
@@ -150,8 +151,7 @@ class IsoImagePlugin(SourcePlugin): | |||
150 | if not machine_arch: | 151 | if not machine_arch: |
151 | msger.error("Couldn't find MACHINE_ARCH, exiting.\n") | 152 | msger.error("Couldn't find MACHINE_ARCH, exiting.\n") |
152 | 153 | ||
153 | initrd = "%s/%s-initramfs-%s.%s" \ | 154 | initrd = glob.glob('%s/%s*%s.%s' % (initrd_dir, image_name, machine_arch, image_type))[0] |
154 | % (initrd_dir, image_name, machine_arch, image_type) | ||
155 | 155 | ||
156 | if not os.path.exists(initrd): | 156 | if not os.path.exists(initrd): |
157 | # Create initrd from rootfs directory | 157 | # Create initrd from rootfs directory |