about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorteutat3s <10206665+teutat3s@users.noreply.github.com>2022-06-06 20:54:26 +0200
committerteutat3s <10206665+teutat3s@users.noreply.github.com>2022-06-07 14:33:03 +0200
commitcf594d1f6e2dc1beea416d007b70c38a5e54ba7f (patch)
treebe4d70a57199a04fdbf818d04004d5fd5240f72d /pkgs/tools
parent9a995f5c6a0b7e782017b725eb8a34ff0d7de527 (diff)
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
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/virtualization/cloud-init/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/tools/virtualization/cloud-init/default.nix b/pkgs/tools/virtualization/cloud-init/default.nix
index 9da4290dadded..a2e156f2a10b7 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
   ];