Closed RashiqAzhan closed 2 weeks ago
Describe the bug Git clone in init_hook doesn't work with assemble. Container never starts.
To Reproduce Run distrobox assemble create.
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=git clone https://aur.archlinux.org/yay-bin.git; init_hooks=cd yay-bin && makepkg -si; init_hooks=ln -s /usr/bin/distrobox-host-exec /usr/local/bin/docker
Expected behavior Container starts.
Logs Run the commands with --verbose and post the log here as a file upload distrobox_assemblecreate--verbose.txt
--verbose
Attach also the output of podman logs or docker logs, possibly with --latest flag podmanlogs--latest.txt
podman logs
docker logs
--latest
Desktop (please complete the following information):
yay cannot run as root
yay
so what you can do is to run it with sudo as your user:
sudo
init_hooks=sudo -u your-user-name sh -c "cd yay-bin && makepkg -si"
Describe the bug Git clone in init_hook doesn't work with assemble. Container never starts.
To Reproduce Run
distrobox assemble create
.distrobox.ini
Expected behavior Container starts.
Logs Run the commands with
--verbose
and post the log here as a file upload distrobox_assemblecreate--verbose.txtAttach also the output of
podman logs
ordocker logs
, possibly with--latest
flag podmanlogs--latest.txtDesktop (please complete the following information):