Rocky 8 image creation problem with random_device
While running playbook compute-default.yml (https://github.com/clustervision/trinityX/commit/0a847796949ab0645e8a194a9beda21b67258da1) for a Rocky 8 image (without OpenOnDemand) on RHEL9 controller I receive the following error:
PLAY [base-rocky8.osimages.luna]
...
TASK [init : Install init packages] **********************************************************************************************************************************************************************************************************
failed: [base-rocky8.osimages.luna] (item=python3-libselinux) => {"ansible_loop_var": "item", "changed": false, "item": "python3-libselinux", "msg": "random_device::random_device(const std::string&)", "rc": 1, "results": []}
It appears there are no basic '/dev' files in the image A work-around is to chroot into the image on another console or create the mount by hand. This will also mount '/proc' and '/sys' in case that would be useful.
During the creation of a RHEL9 image on RHEL9 controller these are created with roles/trinity/image-create/tasks/redhat/base.yml e43803d started from site/roles/trinity/image-create/tasks/main.yml d432ae9 in the Creating base image task.
This step is skipped in the creation of Rocky8. Should these /dev files have been part of the downloaded base image? Or should the playbook basic /dev files be created in a different part of the playbook (which is run for both plays)?