mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
wic: Use partition label to be part of rootfs filename
When a partition from .wks file is set up like this:
part /standby --source rootfs --rootfs-dir=<special rootfs> ... --label \
--label secondary
This means that 'rootfs' must use '<special rootfs>' as rootfs and
the default partition filename in /var/tmp/wic/build/ will be create
using the '--label' as part of the name. E.g:
/var/tmp/wic/build/rootfs_secondary.ext3
(From OE-Core rev: c7efb3a21618ce3069811042279a0d898237ac0f)
Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
550e931734
commit
cbee7cb5f8
@@ -172,7 +172,7 @@ class Wic_PartData(Mic_PartData):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
image_rootfs = rootfs_dir
|
image_rootfs = rootfs_dir
|
||||||
rootfs = "%s/rootfs.%s" % (cr_workdir, self.fstype)
|
rootfs = "%s/rootfs_%s.%s" % (cr_workdir, self.label ,self.fstype)
|
||||||
|
|
||||||
du_cmd = "du -ks %s" % image_rootfs
|
du_cmd = "du -ks %s" % image_rootfs
|
||||||
rc, out = exec_cmd(du_cmd)
|
rc, out = exec_cmd(du_cmd)
|
||||||
@@ -217,7 +217,7 @@ class Wic_PartData(Mic_PartData):
|
|||||||
Currently handles ext2/3/4 and btrfs.
|
Currently handles ext2/3/4 and btrfs.
|
||||||
"""
|
"""
|
||||||
image_rootfs = rootfs_dir
|
image_rootfs = rootfs_dir
|
||||||
rootfs = "%s/rootfs.%s" % (cr_workdir, self.fstype)
|
rootfs = "%s/rootfs_%s.%s" % (cr_workdir, self.label, self.fstype)
|
||||||
|
|
||||||
du_cmd = "du -ks %s" % image_rootfs
|
du_cmd = "du -ks %s" % image_rootfs
|
||||||
rc, out = exec_cmd(du_cmd)
|
rc, out = exec_cmd(du_cmd)
|
||||||
|
|||||||
Reference in New Issue
Block a user