Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] git clone fails in init_hooks with distrobox assemble #1407

Closed
RashiqAzhan opened this issue May 22, 2024 · 1 comment
Closed

[Error] git clone fails in init_hooks with distrobox assemble #1407

RashiqAzhan opened this issue May 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@RashiqAzhan
Copy link

RashiqAzhan commented May 22, 2024

Describe the bug
Git clone in init_hook doesn't work with assemble. Container never starts.

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=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_assemble_create_--verbose.txt

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

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod? Podman
  • Which version or podman, docker or lilipod? 4.9.4
  • Which version of distrobox? 1.7.1.0
  • Which host distribution? Fedora Ublue - AuroraDX
  • How did you install distrobox? Built-in
@RashiqAzhan RashiqAzhan added the bug Something isn't working label May 22, 2024
@89luca89
Copy link
Owner

yay cannot run as root

so what you can do is to run it with sudo as your user:

init_hooks=sudo -u your-user-name sh -c "cd yay-bin && makepkg -si"

@89luca89 89luca89 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants