diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-02-03 19:16:56 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-04 12:57:35 +0000 |
commit | 363488fc9a045ef7415f0d07777c934a2c452714 (patch) | |
tree | 0381136053606aa9584369241154e66a6fdc2dff /scripts/lib/mic/imager | |
parent | 3cb93017e64b409e887e37f255ae49bb4e274465 (diff) | |
download | ast2050-yocto-poky-363488fc9a045ef7415f0d07777c934a2c452714.zip ast2050-yocto-poky-363488fc9a045ef7415f0d07777c934a2c452714.tar.gz |
wic: Add wic-specific bootloader subclass
Add a new wic-specific bootloader subclass so we can add a --source
param to hang non-partition plugin off of.
By default, the bootloader gets the /boot partition source plugin, but
this can be overridden by the --source bootloader param if needed.
(From OE-Core rev: f90e4097c4e69d4f61c69923cb5d1ebb6b74d2ff)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/mic/imager')
-rw-r--r-- | scripts/lib/mic/imager/direct.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/mic/imager/direct.py b/scripts/lib/mic/imager/direct.py index d24bc68..3827eb8 100644 --- a/scripts/lib/mic/imager/direct.py +++ b/scripts/lib/mic/imager/direct.py @@ -225,6 +225,12 @@ class DirectImageCreator(BaseImageCreator): fstab = self.__write_fstab() + for p in parts: + # as a convenience, set source to the boot partition source + # instead of forcing it to be set via bootloader --source + if not self.ks.handler.bootloader.source and p.mountpoint == "/boot": + self.ks.handler.bootloader.source = p.source + self.boot_type = self.get_boot_type() if not self.bootimg_dir: |