wic: pylinted direct_plugin
Fixed wrong continued indentation, unused import and trailing new line pyling warnings. [YOCTO #10619] (From OE-Core rev: e78762a4b52c31357ef29a5b93c53db7190fa4f2) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f36c70b067
commit
59496d9cdc
|
@ -27,7 +27,6 @@ import os
|
|||
import shutil
|
||||
import uuid
|
||||
import tempfile
|
||||
import time
|
||||
|
||||
from time import strftime
|
||||
from os.path import basename, splitext
|
||||
|
@ -307,19 +306,13 @@ class DirectImageCreator:
|
|||
self.bootimg_dir, self.kernel_dir, self.native_sysroot)
|
||||
|
||||
|
||||
self._image.add_partition(part.disk_size,
|
||||
part.disk,
|
||||
part.mountpoint,
|
||||
part.source_file,
|
||||
part.fstype,
|
||||
part.label,
|
||||
fsopts=part.fsopts,
|
||||
boot=part.active,
|
||||
align=part.align,
|
||||
no_table=part.no_table,
|
||||
part_type=part.part_type,
|
||||
uuid=part.uuid,
|
||||
system_id=part.system_id)
|
||||
self._image.add_partition(part.disk_size, part.disk,
|
||||
part.mountpoint, part.source_file,
|
||||
part.fstype, part.label,
|
||||
fsopts=part.fsopts, boot=part.active,
|
||||
align=part.align, no_table=part.no_table,
|
||||
part_type=part.part_type, uuid=part.uuid,
|
||||
system_id=part.system_id)
|
||||
|
||||
if fstab_path:
|
||||
shutil.move(fstab_path + ".orig", fstab_path)
|
||||
|
@ -443,4 +436,3 @@ class DirectImageCreator:
|
|||
|
||||
# remove work directory
|
||||
shutil.rmtree(self.workdir, ignore_errors=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue