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
This commit is contained in:
teutat3s 2022-06-06 20:54:26 +02:00
parent 9a995f5c6a
commit cf594d1f6e
No known key found for this signature in database
GPG Key ID: 18DAE600A6BBE705

View File

@ -51,6 +51,7 @@ python3.pkgs.buildPythonApplication rec {
jsonschema
netifaces
oauthlib
pyserial
pyyaml
requests
];