From cf594d1f6e2dc1beea416d007b70c38a5e54ba7f Mon Sep 17 00:00:00 2001 From: teutat3s <10206665+teutat3s@users.noreply.github.com> Date: Mon, 6 Jun 2022 20:54:26 +0200 Subject: [PATCH] cloud-init: fix missing pyserial dependency and check for all required imports as per requirements.txt While debugging missing metadata in the cloud-init boot local phase in a NixOS VM on SmartOS, the following error was observed: SystemError: Unable to open /dev/ttyS1 Adding the missing pyserial dependency fixes the above error and cloud-init metadata detection now works in NixOS VMs on SmartOS --- pkgs/tools/virtualization/cloud-init/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/virtualization/cloud-init/default.nix b/pkgs/tools/virtualization/cloud-init/default.nix index 9da4290dadde..a2e156f2a10b 100644 --- a/pkgs/tools/virtualization/cloud-init/default.nix +++ b/pkgs/tools/virtualization/cloud-init/default.nix @@ -51,6 +51,7 @@ python3.pkgs.buildPythonApplication rec { jsonschema netifaces oauthlib + pyserial pyyaml requests ];