diff options
author | João Henrique Ferreira de Freitas <joaohf@gmail.com> | 2014-03-29 00:12:05 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-30 10:10:35 +0100 |
commit | cbee7cb5f8d72374a756b80ff8e6d379046d03bd (patch) | |
tree | 0d8adaa8b379d2a48e6096cf599eefeb9126c662 /scripts/lib/mic | |
parent | 550e9317348dd6254c9dd55fa425b92f278b7c7a (diff) | |
download | poky-cbee7cb5f8d72374a756b80ff8e6d379046d03bd.tar.gz |
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>
Diffstat (limited to 'scripts/lib/mic')
-rw-r--r-- | scripts/lib/mic/kickstart/custom_commands/partition.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/mic/kickstart/custom_commands/partition.py b/scripts/lib/mic/kickstart/custom_commands/partition.py index c3bb9a5b86..8973edc110 100644 --- a/scripts/lib/mic/kickstart/custom_commands/partition.py +++ b/scripts/lib/mic/kickstart/custom_commands/partition.py | |||
@@ -172,7 +172,7 @@ class Wic_PartData(Mic_PartData): | |||
172 | """ | 172 | """ |
173 | 173 | ||
174 | image_rootfs = rootfs_dir | 174 | image_rootfs = rootfs_dir |
175 | rootfs = "%s/rootfs.%s" % (cr_workdir, self.fstype) | 175 | rootfs = "%s/rootfs_%s.%s" % (cr_workdir, self.label ,self.fstype) |
176 | 176 | ||
177 | du_cmd = "du -ks %s" % image_rootfs | 177 | du_cmd = "du -ks %s" % image_rootfs |
178 | rc, out = exec_cmd(du_cmd) | 178 | rc, out = exec_cmd(du_cmd) |
@@ -217,7 +217,7 @@ class Wic_PartData(Mic_PartData): | |||
217 | Currently handles ext2/3/4 and btrfs. | 217 | Currently handles ext2/3/4 and btrfs. |
218 | """ | 218 | """ |
219 | image_rootfs = rootfs_dir | 219 | image_rootfs = rootfs_dir |
220 | rootfs = "%s/rootfs.%s" % (cr_workdir, self.fstype) | 220 | rootfs = "%s/rootfs_%s.%s" % (cr_workdir, self.label, self.fstype) |
221 | 221 | ||
222 | du_cmd = "du -ks %s" % image_rootfs | 222 | du_cmd = "du -ks %s" % image_rootfs |
223 | rc, out = exec_cmd(du_cmd) | 223 | rc, out = exec_cmd(du_cmd) |