mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 21:32:13 +02:00
wic: extend list of used tools
Added sfdisk, e2fsck, mkswap, resize2fs, mkdosfs to the list of used tools in Disk class. They're going to be used in 'wic write' implementation. Added dependency to util-linux to wic-tools to ensure that sfdisk and mkswap are available from wic-tools native sysroot. (From OE-Core rev: 1add68e4d6150e3038609d8ce7e3cff28fe8fbb8) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bb1f418a61
commit
cee58f1d41
@@ -5,7 +5,8 @@ LICENSE = "MIT"
|
||||
DEPENDS = "\
|
||||
parted-native syslinux-native gptfdisk-native dosfstools-native \
|
||||
mtools-native bmap-tools-native grub-efi-native cdrtools-native \
|
||||
btrfs-tools-native squashfs-tools-native pseudo-native e2fsprogs-native \
|
||||
btrfs-tools-native squashfs-tools-native pseudo-native \
|
||||
e2fsprogs-native util-linux-native \
|
||||
"
|
||||
DEPENDS_append_x86 = " syslinux grub-efi systemd-boot"
|
||||
DEPENDS_append_x86-64 = " syslinux grub-efi systemd-boot"
|
||||
|
||||
@@ -276,7 +276,8 @@ class Disk:
|
||||
|
||||
def __getattr__(self, name):
|
||||
"""Get path to the executable in a lazy way."""
|
||||
if name in ("mdir", "mcopy", "mdel", "mdeltree"):
|
||||
if name in ("mdir", "mcopy", "mdel", "mdeltree", "sfdisk", "e2fsck",
|
||||
"resize2fs", "mkswap", "mkdosfs"):
|
||||
aname = "_%s" % name
|
||||
if aname not in self.__dict__:
|
||||
setattr(self, aname, find_executable(name, self.paths))
|
||||
|
||||
Reference in New Issue
Block a user