From 9936fdb77f5b6e54045c7cc45b764b8dd213abde Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 24 Nov 2021 15:54:30 +1300 Subject: [PATCH] actually run ubuntu-drivers install --- subiquity/server/controllers/install.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/subiquity/server/controllers/install.py b/subiquity/server/controllers/install.py index d853b31f..fd421693 100644 --- a/subiquity/server/controllers/install.py +++ b/subiquity/server/controllers/install.py @@ -196,6 +196,16 @@ class InstallController(SubiquityController): packages = await self.get_target_packages(context=context) for package in packages: await self.install_package(context=context, package=package) + if self.model.drivers.do_install: + with context.child( + "ubuntu-drivers-install", + "installing third-party drivers") as child: + cmd = ["ubuntu-drivers", "install"] + if self.model.source.current.variant == 'server': + cmd.append('--gpgpu') + await start_curtin_command( + self.app, child, "in-target", "-t", self.tpath(), + "--", *cmd) if self.model.network.has_network: self.app.update_state(ApplicationState.UU_RUNNING)