89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
9.86k stars 405 forks source link

[Error] yay not working in init_hooks distrobox assemble #1408

Closed RashiqAzhan closed 3 months ago

RashiqAzhan commented 4 months ago

Describe the bug yay not found and not working in init_hooks with distrobox assemble. Works as expected if container is start and the init_hooks are input manually in their order.

To Reproduce Run distrobox assemble create.

distrobox.ini

[arch]
image=quay.io/toolbx/arch-toolbox:latest
pull=true
replace=true
start_now=true
additional_packages="git base-devel"
init_hooks=pacman -S --needed git base-devel;
init_hooks=cd yay-bin && makepkg -si;
init_hooks=yay -Sy --noconfirm keepassxc;
init_hooks=ln -s /usr/bin/distrobox-host-exec /usr/local/bin/docker

Expected behavior Container building finishes without error and starts.

Logs Run the commands with --verbose and post the log here as a file upload distrobox_assemblecreate--verbose.txt

Attach also the output of podman logs or docker logs, possibly with --latest flag podmanlogs--latest.txt

Desktop (please complete the following information):

89luca89 commented 3 months ago

Duplicate of #1407

And it has the same solution