summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMaciej Borzecki <maciej.borzecki@open-rnd.pl>2014-07-21 13:01:57 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-15 18:21:53 +0100
commitf12ac6101c756a1925f36c8ff16883427592fc94 (patch)
tree1d4e0500a6aa2b2a2b5cdb961e5aeae93d0fdbcf /scripts
parent4ac5071e977216f39eb4652b9734ab23aa6864ba (diff)
downloadpoky-f12ac6101c756a1925f36c8ff16883427592fc94.tar.gz
wic: include partition label in fs image file name
Not including the label image but having multiple partitions of the same type, the image file of one partition would overwrite the other. (From OE-Core rev: acf2fb7c6dfa3217ffcbf9483c190057d9f41bbf) Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl> Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/kickstart/custom_commands/partition.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py
index a3d5ef35c7..abf3498134 100644
--- a/scripts/lib/wic/kickstart/custom_commands/partition.py
+++ b/scripts/lib/wic/kickstart/custom_commands/partition.py
@@ -385,7 +385,7 @@ class Wic_PartData(Mic_PartData):
385 """ 385 """
386 Prepare an empty ext2/3/4 partition. 386 Prepare an empty ext2/3/4 partition.
387 """ 387 """
388 fs = "%s/fs.%s" % (cr_workdir, self.fstype) 388 fs = "%s/fs_%s.%s" % (cr_workdir, self.label, self.fstype)
389 389
390 dd_cmd = "dd if=/dev/zero of=%s bs=1M seek=%d count=0" % \ 390 dd_cmd = "dd if=/dev/zero of=%s bs=1M seek=%d count=0" % \
391 (fs, self.size) 391 (fs, self.size)
@@ -405,7 +405,7 @@ class Wic_PartData(Mic_PartData):
405 """ 405 """
406 Prepare an empty btrfs partition. 406 Prepare an empty btrfs partition.
407 """ 407 """
408 fs = "%s/fs.%s" % (cr_workdir, self.fstype) 408 fs = "%s/fs_%s.%s" % (cr_workdir, self.label, self.fstype)
409 409
410 dd_cmd = "dd if=/dev/zero of=%s bs=1M seek=%d count=0" % \ 410 dd_cmd = "dd if=/dev/zero of=%s bs=1M seek=%d count=0" % \
411 (fs, self.size) 411 (fs, self.size)
@@ -426,7 +426,7 @@ class Wic_PartData(Mic_PartData):
426 """ 426 """
427 Prepare an empty vfat partition. 427 Prepare an empty vfat partition.
428 """ 428 """
429 fs = "%s/fs.%s" % (cr_workdir, self.fstype) 429 fs = "%s/fs_%s.%s" % (cr_workdir, self.label, self.fstype)
430 430
431 blocks = self.size * 1024 431 blocks = self.size * 1024
432 432