handle grub settings too

This commit is contained in:
Michael Hudson-Doyle 2020-04-01 22:17:26 +13:00
parent f1827f0356
commit f2e9e5407f
1 changed files with 8 additions and 1 deletions

View File

@ -164,8 +164,15 @@ class FilesystemController(SubiquityController):
meth(disks[-1])
elif 'config' in self.ai_data:
with self.context.child("applying_autoinstall"):
# needs to account for grub and swap data too.
self.model.apply_autoinstall_config(self.ai_data['config'])
grub = self.ai_data.get('grub', {})
install_devices = grub.get('install_devices')
if install_devices:
device = install_devices[0]
for action in self.model._actions:
if action['id'] == device:
self.model.grub_install_device = action
# Should handle 'swap' here too.
def start(self):
self._start_task = schedule_task(self._start())