mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
wic: fix function comment typos
Fix typos in documentation of Image.add_partition() and Image.__format_disks(). (From OE-Core rev: f5bf7bf253224912c66bab89f48ff63a73e0d698) (From OE-Core rev: 44ce5b4bb0873d5a2dec25f2dc489a6ab8f7995e) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0a25fbfdb4
commit
d6f478d9df
@@ -92,7 +92,7 @@ class Image():
|
|||||||
def add_partition(self, size, disk_name, mountpoint, source_file=None, fstype=None,
|
def add_partition(self, size, disk_name, mountpoint, source_file=None, fstype=None,
|
||||||
label=None, fsopts=None, boot=False, align=None, no_table=False,
|
label=None, fsopts=None, boot=False, align=None, no_table=False,
|
||||||
part_type=None, uuid=None, system_id=None):
|
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. """
|
first-to-last order. """
|
||||||
|
|
||||||
ks_pnum = len(self.partitions)
|
ks_pnum = len(self.partitions)
|
||||||
@@ -292,7 +292,7 @@ class Image():
|
|||||||
# even number of sectors.
|
# even number of sectors.
|
||||||
if part['mountpoint'] == "/boot" and part['fstype'] in ["vfat", "msdos"] \
|
if part['mountpoint'] == "/boot" and part['fstype'] in ["vfat", "msdos"] \
|
||||||
and part['size'] % 2:
|
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" % \
|
"get even number of sectors for the partition" % \
|
||||||
part['mountpoint'])
|
part['mountpoint'])
|
||||||
part['size'] -= 1
|
part['size'] -= 1
|
||||||
|
|||||||
Reference in New Issue
Block a user