From 0f23e61c596a22a8ed2744256df6ec80d8370c87 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Mon, 7 Dec 2020 12:48:09 +1300 Subject: [PATCH] stop listening to udev events when the filesystem gets configured Otherwise subiquity kicks off probes when there are the inevitable block device changes during the installation, which is at best useless but seems to occasionally cause install failures too. --- subiquity/server/controllers/filesystem.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subiquity/server/controllers/filesystem.py b/subiquity/server/controllers/filesystem.py index 1b1ac7ea..b3ad8c86 100644 --- a/subiquity/server/controllers/filesystem.py +++ b/subiquity/server/controllers/filesystem.py @@ -88,10 +88,13 @@ class FilesystemController(SubiquityController, FilesystemManipulator): log.debug("self.ai_data = %s", data) self.ai_data = data + def configured(self): + super().configured() + self.stop_listening_udev() + @with_context() async def apply_autoinstall_config(self, context=None): await self._start_task - self.stop_listening_udev() await self._probe_task.wait() self.convert_autoinstall_config(context=context) if not self.model.is_root_mounted():