diff options
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: |
