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/direct.py | |
parent | 3cb93017e64b409e887e37f255ae49bb4e274465 (diff) | |
download | 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/direct.py')
-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 d24bc684fe..3827eb8e94 100644 --- a/scripts/lib/mic/imager/direct.py +++ b/scripts/lib/mic/imager/direct.py | |||
@@ -225,6 +225,12 @@ class DirectImageCreator(BaseImageCreator): | |||
225 | 225 | ||
226 | fstab = self.__write_fstab() | 226 | fstab = self.__write_fstab() |
227 | 227 | ||
228 | for p in parts: | ||
229 | # as a convenience, set source to the boot partition source | ||
230 | # instead of forcing it to be set via bootloader --source | ||
231 | if not self.ks.handler.bootloader.source and p.mountpoint == "/boot": | ||
232 | self.ks.handler.bootloader.source = p.source | ||
233 | |||
228 | self.boot_type = self.get_boot_type() | 234 | self.boot_type = self.get_boot_type() |
229 | 235 | ||
230 | if not self.bootimg_dir: | 236 | if not self.bootimg_dir: |