summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugins')
-rw-r--r--scripts/lib/wic/plugins/source/isoimage-isohybrid.py14
-rw-r--r--scripts/lib/wic/plugins/source/rootfs.py14
-rw-r--r--scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py2
3 files changed, 15 insertions, 15 deletions
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
index 9ad0bc7c9b..b5ca4d39f6 100644
--- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
+++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
@@ -262,26 +262,26 @@ class IsoImagePlugin(SourcePlugin):
262 262
263 isodir = "%s/ISO" % cr_workdir 263 isodir = "%s/ISO" % cr_workdir
264 264
265 if part.rootfs is None: 265 if part.rootfs_dir is None:
266 if not 'ROOTFS_DIR' in rootfs_dir: 266 if not 'ROOTFS_DIR' in rootfs_dir:
267 msger.error("Couldn't find --rootfs-dir, exiting.\n") 267 msger.error("Couldn't find --rootfs-dir, exiting.\n")
268 rootfs_dir = rootfs_dir['ROOTFS_DIR'] 268 rootfs_dir = rootfs_dir['ROOTFS_DIR']
269 else: 269 else:
270 if part.rootfs in rootfs_dir: 270 if part.rootfs_dir in rootfs_dir:
271 rootfs_dir = rootfs_dir[part.rootfs] 271 rootfs_dir = rootfs_dir[part.rootfs_dir]
272 elif part.rootfs: 272 elif part.rootfs_dir:
273 rootfs_dir = part.rootfs 273 rootfs_dir = part.rootfs_dir
274 else: 274 else:
275 msg = "Couldn't find --rootfs-dir=%s connection " 275 msg = "Couldn't find --rootfs-dir=%s connection "
276 msg += "or it is not a valid path, exiting.\n" 276 msg += "or it is not a valid path, exiting.\n"
277 msger.error(msg % part.rootfs) 277 msger.error(msg % part.rootfs_dir)
278 278
279 if not os.path.isdir(rootfs_dir): 279 if not os.path.isdir(rootfs_dir):
280 rootfs_dir = get_bitbake_var("IMAGE_ROOTFS") 280 rootfs_dir = get_bitbake_var("IMAGE_ROOTFS")
281 if not os.path.isdir(rootfs_dir): 281 if not os.path.isdir(rootfs_dir):
282 msger.error("Couldn't find IMAGE_ROOTFS, exiting.\n") 282 msger.error("Couldn't find IMAGE_ROOTFS, exiting.\n")
283 283
284 part.set_rootfs(rootfs_dir) 284 part.rootfs_dir = rootfs_dir
285 285
286 # Prepare rootfs.img 286 # Prepare rootfs.img
287 hdd_dir = get_bitbake_var("HDDDIR") 287 hdd_dir = get_bitbake_var("HDDDIR")
diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py
index a90712b247..425da8b22a 100644
--- a/scripts/lib/wic/plugins/source/rootfs.py
+++ b/scripts/lib/wic/plugins/source/rootfs.py
@@ -61,23 +61,23 @@ class RootfsPlugin(SourcePlugin):
61 'prepares' the partition to be incorporated into the image. 61 'prepares' the partition to be incorporated into the image.
62 In this case, prepare content for legacy bios boot partition. 62 In this case, prepare content for legacy bios boot partition.
63 """ 63 """
64 if part.rootfs is None: 64 if part.rootfs_dir is None:
65 if not 'ROOTFS_DIR' in krootfs_dir: 65 if not 'ROOTFS_DIR' in krootfs_dir:
66 msg = "Couldn't find --rootfs-dir, exiting" 66 msg = "Couldn't find --rootfs-dir, exiting"
67 msger.error(msg) 67 msger.error(msg)
68 rootfs_dir = krootfs_dir['ROOTFS_DIR'] 68 rootfs_dir = krootfs_dir['ROOTFS_DIR']
69 else: 69 else:
70 if part.rootfs in krootfs_dir: 70 if part.rootfs_dir in krootfs_dir:
71 rootfs_dir = krootfs_dir[part.rootfs] 71 rootfs_dir = krootfs_dir[part.rootfs_dir]
72 elif part.rootfs: 72 elif part.rootfs_dir:
73 rootfs_dir = part.rootfs 73 rootfs_dir = part.rootfs_dir
74 else: 74 else:
75 msg = "Couldn't find --rootfs-dir=%s connection" 75 msg = "Couldn't find --rootfs-dir=%s connection"
76 msg += " or it is not a valid path, exiting" 76 msg += " or it is not a valid path, exiting"
77 msger.error(msg % part.rootfs) 77 msger.error(msg % part.rootfs_dir)
78 78
79 real_rootfs_dir = cls.__get_rootfs_dir(rootfs_dir) 79 real_rootfs_dir = cls.__get_rootfs_dir(rootfs_dir)
80 80
81 part.set_rootfs(real_rootfs_dir) 81 part.rootfs_dir = real_rootfs_dir
82 part.prepare_rootfs(cr_workdir, oe_builddir, real_rootfs_dir, native_sysroot) 82 part.prepare_rootfs(cr_workdir, oe_builddir, real_rootfs_dir, native_sysroot)
83 83
diff --git a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py
index bdf1b54cb2..48b4817c9d 100644
--- a/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py
+++ b/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py
@@ -141,7 +141,7 @@ class RootfsPlugin(SourcePlugin):
141 141
142 real_rootfs_dir = cls._get_rootfs_dir(rootfs_dir) 142 real_rootfs_dir = cls._get_rootfs_dir(rootfs_dir)
143 143
144 part.set_rootfs(real_rootfs_dir) 144 part.rootfs_dir = real_rootfs_dir
145 part.prepare_rootfs(image_creator_workdir, oe_builddir, real_rootfs_dir, native_sysroot) 145 part.prepare_rootfs(image_creator_workdir, oe_builddir, real_rootfs_dir, native_sysroot)
146 146
147 # install syslinux into rootfs partition 147 # install syslinux into rootfs partition