Запускаем установку Rocky Linux 8, пытаемся использовать скрипт %post для запуска ansible-galaxy, но это сложно, так как возникает эта ошибка:
Код: Выделить всё
/mnt/sysimage/bin/ansible-galaxy: /usr/bin/python3.9: bad interpreter: No such file or directory
On my package part have added python3 and this is appearing under
Код: Выделить всё
/mnt/sysimage/bin/python3.9
Don’t really know best solution for this. Came up with link the one from /mnt to /usr and solve this with by changing the interpreter… So i have now this:
Код: Выделить всё
%post --nochroot --interpreter=/mnt/sysimage/bin/python3.9 --log=/root/ansible-post.log
Код: Выделить всё
/mnt/sysimage/bin/python3.9 error while loading shared libraries: libpython3.9.so.1.0: cannot open shared object file: No such file or directory
Источник: https://stackoverflow.com/questions/781 ... ost-script