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
Signed by untrusted user: teutat3s
GPG key ID: 18DAE600A6BBE705

View file

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