summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMaciej Borzecki <maciej.borzecki@rndity.com>2016-11-10 13:18:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-11 11:46:41 +0000
commit44ce5b4bb0873d5a2dec25f2dc489a6ab8f7995e (patch)
tree5b765a93ca63c3435180375dad48e2aa93d0ed4d /scripts
parentdc4d1cfc4d6bd01432857448f66af5492cad7574 (diff)
downloadopenembedded-core-contrib-44ce5b4bb0873d5a2dec25f2dc489a6ab8f7995e.tar.gz
openembedded-core-contrib-44ce5b4bb0873d5a2dec25f2dc489a6ab8f7995e.tar.bz2
openembedded-core-contrib-44ce5b4bb0873d5a2dec25f2dc489a6ab8f7995e.zip
wic: fix function comment typos
Fix typos in documentation of Image.add_partition() and Image.__format_disks(). (From OE-Core rev: f5bf7bf253224912c66bab89f48ff63a73e0d698) Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/utils/partitionedfs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index cb03009fc7..9e76487844 100644
--- a/scripts/lib/wic/utils/partitionedfs.py
+++ b/scripts/lib/wic/utils/partitionedfs.py
@@ -92,7 +92,7 @@ class Image():
def add_partition(self, size, disk_name, mountpoint, source_file=None, fstype=None,
label=None, fsopts=None, boot=False, align=None, no_table=False,
part_type=None, uuid=None, system_id=None):
- """ Add the next partition. Prtitions have to be added in the
+ """ Add the next partition. Partitions have to be added in the
first-to-last order. """
ks_pnum = len(self.partitions)
@@ -292,7 +292,7 @@ class Image():
# even number of sectors.
if part['mountpoint'] == "/boot" and part['fstype'] in ["vfat", "msdos"] \
and part['size'] % 2:
- msger.debug("Substracting one sector from '%s' partition to " \
+ msger.debug("Subtracting one sector from '%s' partition to " \
"get even number of sectors for the partition" % \
part['mountpoint'])
part['size'] -= 1