Как запустить команду ansible-galaxy в сценарии кикстарта %postLinux

Гость
Как запустить команду ansible-galaxy в сценарии кикстарта %post

Сообщение Гость »


Запускаем установку Rocky Linux 8, пытаемся использовать скрипт %post для запуска ansible-galaxy, но это сложно, так как возникает эта ошибка:

Код: Выделить всё

/mnt/sysimage/bin/ansible-galaxy: /usr/bin/python3.9: bad interpreter: No such file or directory 
Any solution for this?
On my package part have added python3 and this is appearing under

Код: Выделить всё

/mnt/sysimage/bin/python3.9
my guess for this error is that ansible-galaxy is looking for python and not finding it under /usr/bin
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 
But it comes out now with another error:

Код: Выделить всё

/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

Вернуться в «Linux»