summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r--scripts/lib/wic/plugins/source/isoimage-isohybrid.py4
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 @@
23import os 23import os
24import re 24import re
25import shutil 25import shutil
26import glob
26 27
27from wic import msger 28from wic import msger
28from wic.pluginbase import SourcePlugin 29from 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