mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
wic: Use mke2fs to create the ext2/3/4 image
OE-core commit f3a95ca6886b55e5819b068bdbd2cceb882d91a6 removed the populate-extfs.sh. So mke2fs should be used to create ext2/3/4 image. (From OE-Core rev: 4dea928eef325364922b1e0cbabc2a581356e804) Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com> Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
463cd34f8c
commit
2b4a00a65a
@@ -174,7 +174,6 @@ class Wic_PartData(Mic_PartData):
|
||||
"""
|
||||
Prepare content for an ext2/3/4 rootfs partition.
|
||||
"""
|
||||
populate_script = "%s/usr/bin/populate-extfs.sh" % native_sysroot
|
||||
|
||||
image_rootfs = rootfs_dir
|
||||
rootfs = "%s/rootfs.%s" % (cr_workdir, self.fstype)
|
||||
@@ -199,11 +198,10 @@ class Wic_PartData(Mic_PartData):
|
||||
|
||||
extra_imagecmd = "-i 8192"
|
||||
|
||||
mkfs_cmd = "mkfs.%s -F %s %s" % (self.fstype, extra_imagecmd, rootfs)
|
||||
mkfs_cmd = "mkfs.%s -F %s %s -d %s" % \
|
||||
(self.fstype, extra_imagecmd, rootfs, image_rootfs)
|
||||
rc, out = exec_native_cmd(mkfs_cmd, native_sysroot)
|
||||
|
||||
populate_cmd = populate_script + " " + image_rootfs + " " + rootfs
|
||||
rc, out = exec_native_cmd(pseudo + populate_cmd, native_sysroot)
|
||||
|
||||
# get the rootfs size in the right units for kickstart (Mb)
|
||||
du_cmd = "du -Lbms %s" % rootfs
|
||||
|
||||
Reference in New Issue
Block a user