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

[Discussion] strange behavior of init_hooks in .ini file #1326

Open
zhenyamega opened this issue Apr 4, 2024 · 3 comments
Open

[Discussion] strange behavior of init_hooks in .ini file #1326

zhenyamega opened this issue Apr 4, 2024 · 3 comments
Labels
question Further information is requested

Comments

@zhenyamega
Copy link

zhenyamega commented Apr 4, 2024

The Essence of the Problem

I am trying to understand how init_hooks works for automating container creation using distrobox assemble create.

First Version

[test]
image=registry.fedoraproject.org/fedora-toolbox:latest
entry=false
start_now=true
home=$HOME/containers/test
init_hooks=echo "some install" > ./log.txt;

And when executing the command distrobox assemble create --file distrobox.ini --dry-run, it output this:

/tmp/tmp.tGhWlZC9pI: line 5: install > ./log.txt;: No such file or directory
 - Creating test...
/usr/bin/distrobox-create --yes --name test --image registry.fedoraproject.org/fedora-toolbox:latest --no-entry --home /var/home/zhenyamega/containers/test

Second Version

[test]
image=registry.fedoraproject.org/fedora-toolbox:latest
entry=false
start_now=true
home=$HOME/containers/test
init_hooks="echo \"some install\" > ./log.txt";

When executing the command distrobox assemble create --file distrobox.ini --dry-run, it output this:

 - Creating test...
/usr/bin/distrobox-create --yes --name test --image registry.fedoraproject.org/fedora-toolbox:latest --no-entry --home /var/home/zhenyamega/containers/test --init-hooks ": ;  echo "some install" > ./log.txt"

But after removing --dry-run, the command output this:

 - Creating test...
Creating 'install > ./log.txt' using image registry.fedoraproject.org/fedora-toolbox:latest     Error: running container create option: names must match [a-zA-Z0-9][a-zA-Z0-9_.-]*: invalid argument
 [ ERR ]
Error: no such container test
Create it now, out of image registry.fedoraproject.org/fedora-toolbox:39? [Y/n]:
distrobox assemble create --file distrobox.ini --verbose
+ '[' 0 -eq -1 ']'
+ '[' -z distrobox.ini ']'
+ '[' '!' -e distrobox.ini ']'
+ parse_file distrobox.ini
+ file=distrobox.ini
+ name=
+ IFS='
        '
++ cat distrobox.ini
+ for line in $(cat "${file}")
++ echo '[test]'
++ sed 's/\t/ /g'
++ sed 's/^#.*//g'
++ sed 's/].*#.*//g'
++ sed 's/ #.*//g'
++ sed 's/\s*$//g'
+ line='[test]'
+ '[' -z '[test]' ']'
++ echo '[test]'
++ cut -c 1
+ '[' '[' = '[' ']'
+ '[' -n '' ']'
++ echo '[test]'
++ tr -d '][ '
+ name=test
+ continue
+ for line in $(cat "${file}")
++ echo image=registry.fedoraproject.org/fedora-toolbox:latest
++ sed 's/\t/ /g'
++ sed 's/^#.*//g'
++ sed 's/].*#.*//g'
++ sed 's/ #.*//g'
++ sed 's/\s*$//g'
+ line=image=registry.fedoraproject.org/fedora-toolbox:latest
+ '[' -z image=registry.fedoraproject.org/fedora-toolbox:latest ']'
++ echo image=registry.fedoraproject.org/fedora-toolbox:latest
++ cut -c 1
+ '[' i = '[' ']'
++ echo image=registry.fedoraproject.org/fedora-toolbox:latest
++ cut -d= -f1
++ tr -d ' '
+ key=image
++ echo image=registry.fedoraproject.org/fedora-toolbox:latest
++ cut -d= -f2-
+ value=registry.fedoraproject.org/fedora-toolbox:latest
+ '[' registry.fedoraproject.org/fedora-toolbox:latest = true ']'
+ '[' registry.fedoraproject.org/fedora-toolbox:latest = false ']'
++ sanitize_variable registry.fedoraproject.org/fedora-toolbox:latest
++ variable=registry.fedoraproject.org/fedora-toolbox:latest
++ echo registry.fedoraproject.org/fedora-toolbox:latest
++ grep -q ' '
++ echo registry.fedoraproject.org/fedora-toolbox:latest
+ value=registry.fedoraproject.org/fedora-toolbox:latest
+ touch /tmp/tmp.w4DENTdMJU
+ '[' -n image ']'
+ '[' -n registry.fedoraproject.org/fedora-toolbox:latest ']'
+ grep -q '^image=' /tmp/tmp.w4DENTdMJU
+ echo image=registry.fedoraproject.org/fedora-toolbox:latest
+ for line in $(cat "${file}")
++ echo entry=false
++ sed 's/\t/ /g'
++ sed 's/^#.*//g'
++ sed 's/].*#.*//g'
++ sed 's/ #.*//g'
++ sed 's/\s*$//g'
+ line=entry=false
+ '[' -z entry=false ']'
++ echo entry=false
++ cut -c 1
+ '[' e = '[' ']'
++ echo entry=false
++ cut -d= -f1
++ tr -d ' '
+ key=entry
++ echo entry=false
++ cut -d= -f2-
+ value=false
+ '[' false = true ']'
+ '[' false = false ']'
+ value=0
++ sanitize_variable 0
++ variable=0
++ echo 0
++ grep -q ' '
++ echo 0
+ value=0
+ touch /tmp/tmp.w4DENTdMJU
+ '[' -n entry ']'
+ '[' -n 0 ']'
+ grep -q '^entry=' /tmp/tmp.w4DENTdMJU
+ echo entry=0
+ for line in $(cat "${file}")
++ echo start_now=true
++ sed 's/\t/ /g'
++ sed 's/^#.*//g'
++ sed 's/].*#.*//g'
++ sed 's/ #.*//g'
++ sed 's/\s*$//g'
+ line=start_now=true
+ '[' -z start_now=true ']'
++ echo start_now=true
++ cut -c 1
+ '[' s = '[' ']'
++ echo start_now=true
++ cut -d= -f1
++ tr -d ' '
+ key=start_now
++ echo start_now=true
++ cut -d= -f2-
+ value=true
+ '[' true = true ']'
+ value=1
+ '[' 1 = false ']'
++ sanitize_variable 1
++ variable=1
++ echo 1
++ grep -q ' '
++ echo 1
+ value=1
+ touch /tmp/tmp.w4DENTdMJU
+ '[' -n start_now ']'
+ '[' -n 1 ']'
+ grep -q '^start_now=' /tmp/tmp.w4DENTdMJU
+ echo start_now=1
+ for line in $(cat "${file}")
++ echo 'home=$HOME/containers/test'
++ sed 's/\t/ /g'
++ sed 's/^#.*//g'
++ sed 's/].*#.*//g'
++ sed 's/ #.*//g'
++ sed 's/\s*$//g'
+ line='home=$HOME/containers/test'
+ '[' -z 'home=$HOME/containers/test' ']'
++ echo 'home=$HOME/containers/test'
++ cut -c 1
+ '[' h = '[' ']'
++ echo 'home=$HOME/containers/test'
++ cut -d= -f1
++ tr -d ' '
+ key=home
++ echo 'home=$HOME/containers/test'
++ cut -d= -f2-
+ value='$HOME/containers/test'
+ '[' '$HOME/containers/test' = true ']'
+ '[' '$HOME/containers/test' = false ']'
++ sanitize_variable '$HOME/containers/test'
++ variable='$HOME/containers/test'
++ echo '$HOME/containers/test'
++ grep -q ' '
++ echo '$HOME/containers/test'
+ value='$HOME/containers/test'
+ touch /tmp/tmp.w4DENTdMJU
+ '[' -n home ']'
+ '[' -n '$HOME/containers/test' ']'
+ grep -q '^home=' /tmp/tmp.w4DENTdMJU
+ echo 'home=$HOME/containers/test'
+ for line in $(cat "${file}")
++ echo 'init_hooks="echo \"some install\" > ./log.txt";'
++ sed 's/\t/ /g'
++ sed 's/^#.*//g'
++ sed 's/].*#.*//g'
++ sed 's/ #.*//g'
++ sed 's/\s*$//g'
+ line='init_hooks="echo \"some install\" > ./log.txt";'
+ '[' -z 'init_hooks="echo \"some install\" > ./log.txt";' ']'
++ echo 'init_hooks="echo \"some install\" > ./log.txt";'
++ cut -c 1
+ '[' i = '[' ']'
++ echo 'init_hooks="echo \"some install\" > ./log.txt";'
++ cut -d= -f1
++ tr -d ' '
+ key=init_hooks
++ echo 'init_hooks="echo \"some install\" > ./log.txt";'
++ cut -d= -f2-
+ value='"echo \"some install\" > ./log.txt";'
+ '[' '"echo \"some install\" > ./log.txt";' = true ']'
+ '[' '"echo \"some install\" > ./log.txt";' = false ']'
++ sanitize_variable '"echo \"some install\" > ./log.txt";'
++ variable='"echo \"some install\" > ./log.txt";'
++ echo '"echo \"some install\" > ./log.txt";'
++ grep -q ' '
++ echo '"echo \"some install\" > ./log.txt";'
++ grep -Eq '^'\''|^"'
++ echo '"echo \"some install\" > ./log.txt";'
+ value='"echo \"some install\" > ./log.txt";'
+ touch /tmp/tmp.w4DENTdMJU
+ '[' -n init_hooks ']'
+ '[' -n '"echo \"some install\" > ./log.txt";' ']'
+ grep -q '^init_hooks=' /tmp/tmp.w4DENTdMJU
+ echo 'init_hooks="echo \"some install\" > ./log.txt";'
+ run_distrobox test
+ name=test
+ '[' '' '!=' '' ']'
+ '[' -e /tmp/tmp.w4DENTdMJU ']'
+ . /tmp/tmp.w4DENTdMJU
++ image=registry.fedoraproject.org/fedora-toolbox:latest
++ entry=0
++ start_now=1
++ home=/var/home/zhenyamega/containers/test
++ init_hooks='echo "some install" > ./log.txt'
+ rm -f /tmp/tmp.w4DENTdMJU
+ '[' -n '' ']'
+ '[' 0 -ne 0 ']'
+ '[' 0 -ne 0 ']'
+ printf ' - Creating %s...\n' test
 - Creating test...
+ /usr/bin/distrobox-list
+ grep -qw 'test '
+ result_command='/usr/bin/distrobox-create --yes'
+ '[' 1 -ne 0 ']'
+ result_command='/usr/bin/distrobox-create --yes -v'
+ '[' -n test ']'
++ sanitize_variable test
++ variable=test
++ echo test
++ grep -q ' '
++ echo test
+ result_command='/usr/bin/distrobox-create --yes -v --name test'
+ '[' -n registry.fedoraproject.org/fedora-toolbox:latest ']'
++ sanitize_variable registry.fedoraproject.org/fedora-toolbox:latest
++ variable=registry.fedoraproject.org/fedora-toolbox:latest
++ echo registry.fedoraproject.org/fedora-toolbox:latest
++ grep -q ' '
++ echo registry.fedoraproject.org/fedora-toolbox:latest
+ result_command='/usr/bin/distrobox-create --yes -v --name test --image registry.fedoraproject.org/fedora-toolbox:latest'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n 0 ']'
+ '[' 0 -eq 0 ']'
+ result_command='/usr/bin/distrobox-create --yes -v --name test --image registry.fedoraproject.org/fedora-toolbox:latest --no-entry'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n /var/home/zhenyamega/containers/test ']'
++ sanitize_variable /var/home/zhenyamega/containers/test
++ variable=/var/home/zhenyamega/containers/test
++ echo /var/home/zhenyamega/containers/test
++ grep -q ' '
++ echo /var/home/zhenyamega/containers/test
+ result_command='/usr/bin/distrobox-create --yes -v --name test --image registry.fedoraproject.org/fedora-toolbox:latest --no-entry --home /var/home/zhenyamega/containers/test'
+ '[' -n 'echo "some install" > ./log.txt' ']'
+ IFS=¤
+ args=': ;'
+ separator=
+ for arg in ${init_hooks}
+ '[' -z 'echo "some install" > ./log.txt' ']'
+ args=': ;  echo "some install" > ./log.txt'
+ echo 'echo "some install" > ./log.txt'
+ grep -qE ';[[:space:]]{0,1}$'
+ echo 'echo "some install" > ./log.txt'
+ grep -qE '&&[[:space:]]{0,1}$'
+ separator='&&'
++ sanitize_variable ': ;  echo "some install" > ./log.txt'
++ variable=': ;  echo "some install" > ./log.txt'
++ echo ': ;  echo "some install" > ./log.txt'
++ grep -q ' '
++ echo ': ;  echo "some install" > ./log.txt'
++ grep -Eq '^'\''|^"'
++ variable='": ;  echo "some install" > ./log.txt"'
++ echo '": ;  echo "some install" > ./log.txt"'
+ result_command='/usr/bin/distrobox-create --yes -v --name test --image registry.fedoraproject.org/fedora-toolbox:latest --no-entry --home /var/home/zhenyamega/containers/test --init-hooks ": ;  echo "some install" > ./log.txt"'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' 0 -ne 0 ']'
+ eval '/usr/bin/distrobox-create --yes -v --name test --image registry.fedoraproject.org/fedora-toolbox:latest --no-entry --home /var/home/zhenyamega/containers/test --init-hooks ": ;  echo "some install" > ./log.txt"'
++ /usr/bin/distrobox-create --yes -v --name test --image registry.fedoraproject.org/fedora-toolbox:latest --no-entry --home /var/home/zhenyamega/containers/test --init-hooks ': ;  echo some' 'install > ./log.txt'
+ '[' -z '' ']'
+ '[' -z registry.fedoraproject.org/fedora-toolbox:latest ']'
+ '[' -z 'install > ./log.txt' ']'
+ '[' -z 'install > ./log.txt' ']'
+ '[' -z '' ']'
++ uname -n
+ container_hostname='install > ./log.txt.zhenyamega'
++ printf %s 'install > ./log.txt.zhenyamega'
++ wc -m
+ '[' 30 -gt 64 ']'
+ case "${container_manager}" in
+ command -v podman
+ container_manager=podman
+ command -v podman
+ '[' 1 -ne 0 ']'
+ container_manager='podman --log-level debug'
+ '[' 0 -ne 0 ']'
+ '[' 0 -ne 0 ']'
+ '[' -n '' ']'
+ '[' -z /usr/bin/distrobox-init ']'
+ '[' -z /usr/bin/distrobox-export ']'
+ '[' 0 -ne 0 ']'
+ podman --log-level debug inspect --type container 'install > ./log.txt'
+ '[' -n '' ']'
+ '[' 0 -eq 1 ']'
+ podman --log-level debug inspect --type image registry.fedoraproject.org/fedora-toolbox:latest
+ printf 'Creating '\''%s'\'' using image %s\t' 'install > ./log.txt' registry.fedoraproject.org/fedora-toolbox:latest
Creating 'install > ./log.txt' using image registry.fedoraproject.org/fedora-toolbox:latest     ++ generate_create_command
++ result_command='podman --log-level debug create'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root'
++ '[' 0 -eq 0 ']'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host'
++ '[' 0 -eq 0 ']'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host'
++ '[' 0 -eq 0 ']'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host'
+++ basename /bin/bash
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave'
++ '[' 0 -eq 0 ']'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave'
++ '[' 0 -eq 1 ']'
++ '[' 0 -eq 1 ']'
++ '[' 0 -eq 0 ']'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx'
++ '[' -e /sys/fs/selinux ']'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux
                        --volume /var/log/journal'
++ '[' -L /dev/shm ']'
++ RHEL_SUBSCRIPTION_FILES='
                /etc/pki/entitlement/:/run/secrets/etc-pki-entitlement:ro
                /etc/rhsm/:/run/secrets/rhsm:ro
                /etc/yum.repos.d/redhat.repo:/run/secrets/redhat.repo:ro
        '
++ for rhel_file in ${RHEL_SUBSCRIPTION_FILES}
+++ echo /etc/pki/entitlement/:/run/secrets/etc-pki-entitlement:ro
+++ cut -d: -f1
++ '[' -e /etc/pki/entitlement/ ']'
++ for rhel_file in ${RHEL_SUBSCRIPTION_FILES}
+++ echo /etc/rhsm/:/run/secrets/rhsm:ro
+++ cut -d: -f1
++ '[' -e /etc/rhsm/ ']'
++ for rhel_file in ${RHEL_SUBSCRIPTION_FILES}
+++ echo /etc/yum.repos.d/redhat.repo:/run/secrets/redhat.repo:ro
+++ cut -d: -f1
++ '[' -e /etc/yum.repos.d/redhat.repo ']'
++ '[' -n '' ']'
++ '[' -n /var/home/zhenyamega/containers/test ']'
++ '[' '!' -d /var/home/zhenyamega/containers/test ']'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux
                        --volume /var/log/journal
                        --env "HOME=/var/home/zhenyamega/containers/test"
                        --env "DISTROBOX_HOST_HOME=/var/home/zhenyamega"
                        --volume "/var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave"'
++ '[' /var/home/zhenyamega '!=' /var/home/zhenyamega ']'
++ '[' -d /run/user/1000 ']'
++ '[' 0 -eq 0 ']'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux
                        --volume /var/log/journal
                        --env "HOME=/var/home/zhenyamega/containers/test"
                        --env "DISTROBOX_HOST_HOME=/var/home/zhenyamega"
                        --volume "/var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave"
                        --volume /run/user/1000:/run/user/1000:rslave'
++ '[' 0 -eq 0 ']'
++ NET_FILES='
                        /etc/hosts
                        /etc/resolv.conf
                '
++ for net_file in ${NET_FILES}
++ '[' -e /etc/hosts ']'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux
                        --volume /var/log/journal
                        --env "HOME=/var/home/zhenyamega/containers/test"
                        --env "DISTROBOX_HOST_HOME=/var/home/zhenyamega"
                        --volume "/var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave"
                        --volume /run/user/1000:/run/user/1000:rslave
                                        --volume /etc/hosts:/etc/hosts:ro'
++ for net_file in ${NET_FILES}
++ '[' -e /etc/resolv.conf ']'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux
                        --volume /var/log/journal
                        --env "HOME=/var/home/zhenyamega/containers/test"
                        --env "DISTROBOX_HOST_HOME=/var/home/zhenyamega"
                        --volume "/var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave"
                        --volume /run/user/1000:/run/user/1000:rslave
                                        --volume /etc/hosts:/etc/hosts:ro
                                        --volume /etc/resolv.conf:/etc/resolv.conf:ro'
++ echo 'podman --log-level debug'
++ grep -q podman
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux
                        --volume /var/log/journal
                        --env "HOME=/var/home/zhenyamega/containers/test"
                        --env "DISTROBOX_HOST_HOME=/var/home/zhenyamega"
                        --volume "/var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave"
                        --volume /run/user/1000:/run/user/1000:rslave
                                        --volume /etc/hosts:/etc/hosts:ro
                                        --volume /etc/resolv.conf:/etc/resolv.conf:ro
                        --annotation run.oci.keep_original_groups=1
                        --ulimit host'
++ '[' 0 -eq 1 ']'
++ '[' 0 -eq 0 ']'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux
                        --volume /var/log/journal
                        --env "HOME=/var/home/zhenyamega/containers/test"
                        --env "DISTROBOX_HOST_HOME=/var/home/zhenyamega"
                        --volume "/var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave"
                        --volume /run/user/1000:/run/user/1000:rslave
                                        --volume /etc/hosts:/etc/hosts:ro
                                        --volume /etc/resolv.conf:/etc/resolv.conf:ro
                        --annotation run.oci.keep_original_groups=1
                        --ulimit host
                                --userns keep-id'
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux
                        --volume /var/log/journal
                        --env "HOME=/var/home/zhenyamega/containers/test"
                        --env "DISTROBOX_HOST_HOME=/var/home/zhenyamega"
                        --volume "/var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave"
                        --volume /run/user/1000:/run/user/1000:rslave
                                        --volume /etc/hosts:/etc/hosts:ro
                                        --volume /etc/resolv.conf:/etc/resolv.conf:ro
                        --annotation run.oci.keep_original_groups=1
                        --ulimit host
                                --userns keep-id
                '
++ result_command='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux
                        --volume /var/log/journal
                        --env "HOME=/var/home/zhenyamega/containers/test"
                        --env "DISTROBOX_HOST_HOME=/var/home/zhenyamega"
                        --volume "/var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave"
                        --volume /run/user/1000:/run/user/1000:rslave
                                        --volume /etc/hosts:/etc/hosts:ro
                                        --volume /etc/resolv.conf:/etc/resolv.conf:ro
                        --annotation run.oci.keep_original_groups=1
                        --ulimit host
                                --userns keep-id

        --entrypoint /usr/bin/entrypoint
        registry.fedoraproject.org/fedora-toolbox:latest
                --verbose
                --name "zhenyamega"
                --user 1000
                --group 1000
                --home "/var/home/zhenyamega/containers/test"
                --init "0"
                --nvidia "0"
                --pre-init-hooks ""
                --additional-packages ""
                -- '\'': ;  echo some'\''
        '
++ printf %s 'podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux
                        --volume /var/log/journal
                        --env "HOME=/var/home/zhenyamega/containers/test"
                        --env "DISTROBOX_HOST_HOME=/var/home/zhenyamega"
                        --volume "/var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave"
                        --volume /run/user/1000:/run/user/1000:rslave
                                        --volume /etc/hosts:/etc/hosts:ro
                                        --volume /etc/resolv.conf:/etc/resolv.conf:ro
                        --annotation run.oci.keep_original_groups=1
                        --ulimit host
                                --userns keep-id

        --entrypoint /usr/bin/entrypoint
        registry.fedoraproject.org/fedora-toolbox:latest
                --verbose
                --name "zhenyamega"
                --user 1000
                --group 1000
                --home "/var/home/zhenyamega/containers/test"
                --init "0"
                --nvidia "0"
                --pre-init-hooks ""
                --additional-packages ""
                -- '\'': ;  echo some'\''
        '
+ cmd='podman --log-level debug create
                --hostname "install > ./log.txt.zhenyamega"
                --name "install > ./log.txt"
                --privileged
                --security-opt label=disable
                --security-opt apparmor=unconfined
                --pids-limit=-1
                --user root:root
                        --ipc host
                        --network host
                        --pid host
                --label "manager=distrobox"
                --label "distrobox.unshare_groups=0"
                --env "SHELL=bash"
                --env "HOME=/var/home/zhenyamega"
                --env "container=podman --log-level debug"
                --env "TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"
                --volume /:/run/host:rslave
                --volume /tmp:/tmp:rslave
                --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro
                --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro
                --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro
                --volume "/var/home/zhenyamega":"/var/home/zhenyamega":rslave
                        --volume /dev:/dev:rslave
                        --volume /sys:/sys:rslave
                        --volume /dev/pts
                        --volume /dev/null:/dev/ptmx
                        --volume /sys/fs/selinux
                        --volume /var/log/journal
                        --env "HOME=/var/home/zhenyamega/containers/test"
                        --env "DISTROBOX_HOST_HOME=/var/home/zhenyamega"
                        --volume "/var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave"
                        --volume /run/user/1000:/run/user/1000:rslave
                                        --volume /etc/hosts:/etc/hosts:ro
                                        --volume /etc/resolv.conf:/etc/resolv.conf:ro
                        --annotation run.oci.keep_original_groups=1
                        --ulimit host
                                --userns keep-id

        --entrypoint /usr/bin/entrypoint
        registry.fedoraproject.org/fedora-toolbox:latest
                --verbose
                --name "zhenyamega"
                --user 1000
                --group 1000
                --home "/var/home/zhenyamega/containers/test"
                --init "0"
                --nvidia "0"
                --pre-init-hooks ""
                --additional-packages ""
                -- '\'': ;  echo some'\''
        '
+ eval podman --log-level debug create --hostname '"install' '>' './log.txt.zhenyamega"' --name '"install' '>' './log.txt"' --privileged --security-opt label=disable --security-opt apparmor=unconfined --pids-limit=-1 --user root:root --ipc host --network host --pid host --label '"manager=distrobox"' --label '"distrobox.unshare_groups=0"' --env '"SHELL=bash"' --env '"HOME=/var/home/zhenyamega"' --env '"container=podman' --log-level 'debug"' --env '"TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo"' --volume /:/run/host:rslave --volume /tmp:/tmp:rslave --volume '"/usr/bin/distrobox-init":/usr/bin/entrypoint:ro' --volume '"/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro' --volume '"/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro' --volume '"/var/home/zhenyamega":"/var/home/zhenyamega":rslave' --volume /dev:/dev:rslave --volume /sys:/sys:rslave --volume /dev/pts --volume /dev/null:/dev/ptmx --volume /sys/fs/selinux --volume /var/log/journal --env '"HOME=/var/home/zhenyamega/containers/test"' --env '"DISTROBOX_HOST_HOME=/var/home/zhenyamega"' --volume '"/var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave"' --volume /run/user/1000:/run/user/1000:rslave --volume /etc/hosts:/etc/hosts:ro --volume /etc/resolv.conf:/etc/resolv.conf:ro --annotation run.oci.keep_original_groups=1 --ulimit host --userns keep-id --entrypoint /usr/bin/entrypoint registry.fedoraproject.org/fedora-toolbox:latest --verbose --name '"zhenyamega"' --user 1000 --group 1000 --home '"/var/home/zhenyamega/containers/test"' --init '"0"' --nvidia '"0"' --pre-init-hooks '""' --additional-packages '""' -- ''\'':' ';' echo 'some'\'''
++ podman --log-level debug create --hostname 'install > ./log.txt.zhenyamega' --name 'install > ./log.txt' --privileged --security-opt label=disable --security-opt apparmor=unconfined --pids-limit=-1 --user root:root --ipc host --network host --pid host --label manager=distrobox --label distrobox.unshare_groups=0 --env SHELL=bash --env HOME=/var/home/zhenyamega --env 'container=podman --log-level debug' --env TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo --volume /:/run/host:rslave --volume /tmp:/tmp:rslave --volume /usr/bin/distrobox-init:/usr/bin/entrypoint:ro --volume /usr/bin/distrobox-export:/usr/bin/distrobox-export:ro --volume /usr/bin/distrobox-host-exec:/usr/bin/distrobox-host-exec:ro --volume /var/home/zhenyamega:/var/home/zhenyamega:rslave --volume /dev:/dev:rslave --volume /sys:/sys:rslave --volume /dev/pts --volume /dev/null:/dev/ptmx --volume /sys/fs/selinux --volume /var/log/journal --env HOME=/var/home/zhenyamega/containers/test --env DISTROBOX_HOST_HOME=/var/home/zhenyamega --volume /var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave --volume /run/user/1000:/run/user/1000:rslave --volume /etc/hosts:/etc/hosts:ro --volume /etc/resolv.conf:/etc/resolv.conf:ro --annotation run.oci.keep_original_groups=1 --ulimit host --userns keep-id --entrypoint /usr/bin/entrypoint registry.fedoraproject.org/fedora-toolbox:latest --verbose --name zhenyamega --user 1000 --group 1000 --home /var/home/zhenyamega/containers/test --init 0 --nvidia 0 --pre-init-hooks '' --additional-packages '' -- ': ; echo some'
INFO[0000] podman filtering at log level debug
DEBU[0000] Called create.PersistentPreRunE(podman --log-level debug create --hostname install > ./log.txt.zhenyamega --name install > ./log.txt --privileged --security-opt label=disable --security-opt apparmor=unconfined --pids-limit=-1 --user root:root --ipc host --network host --pid host --label manager=distrobox --label distrobox.unshare_groups=0 --env SHELL=bash --env HOME=/var/home/zhenyamega --env container=podman --log-level debug --env TERMINFO_DIRS=/usr/share/terminfo:/run/host/usr/share/terminfo --volume /:/run/host:rslave --volume /tmp:/tmp:rslave --volume /usr/bin/distrobox-init:/usr/bin/entrypoint:ro --volume /usr/bin/distrobox-export:/usr/bin/distrobox-export:ro --volume /usr/bin/distrobox-host-exec:/usr/bin/distrobox-host-exec:ro --volume /var/home/zhenyamega:/var/home/zhenyamega:rslave --volume /dev:/dev:rslave --volume /sys:/sys:rslave --volume /dev/pts --volume /dev/null:/dev/ptmx --volume /sys/fs/selinux --volume /var/log/journal --env HOME=/var/home/zhenyamega/containers/test --env DISTROBOX_HOST_HOME=/var/home/zhenyamega --volume /var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test:rslave --volume /run/user/1000:/run/user/1000:rslave --volume /etc/hosts:/etc/hosts:ro --volume /etc/resolv.conf:/etc/resolv.conf:ro --annotation run.oci.keep_original_groups=1 --ulimit host --userns keep-id --entrypoint /usr/bin/entrypoint registry.fedoraproject.org/fedora-toolbox:latest --verbose --name zhenyamega --user 1000 --group 1000 --home /var/home/zhenyamega/containers/test --init 0 --nvidia 0 --pre-init-hooks  --additional-packages  -- : ; echo some)
DEBU[0000] Using conmon: "/usr/bin/conmon"
INFO[0000] Using boltdb as database backend
DEBU[0000] Initializing boltdb state at /var/home/zhenyamega/.local/share/containers/storage/libpod/bolt_state.db
DEBU[0000] Using graph driver overlay
DEBU[0000] Using graph root /var/home/zhenyamega/.local/share/containers/storage
DEBU[0000] Using run root /run/user/1000/containers
DEBU[0000] Using static dir /var/home/zhenyamega/.local/share/containers/storage/libpod
DEBU[0000] Using tmp dir /run/user/1000/libpod/tmp
DEBU[0000] Using volume path /var/home/zhenyamega/.local/share/containers/storage/volumes
DEBU[0000] Using transient store: false
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that metacopy is not being used
DEBU[0000] Cached value indicated that native-diff is usable
DEBU[0000] backingFs=btrfs, projectQuotaSupported=false, useNativeDiff=true, usingMetacopy=false
DEBU[0000] Initializing event backend journald
DEBU[0000] Configured OCI runtime crun-wasm initialization failed: no valid executable found for OCI runtime crun-wasm: invalid argument
DEBU[0000] Configured OCI runtime runj initialization failed: no valid executable found for OCI runtime runj: invalid argument
DEBU[0000] Configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument
DEBU[0000] Configured OCI runtime youki initialization failed: no valid executable found for OCI runtime youki: invalid argument
DEBU[0000] Configured OCI runtime runc initialization failed: no valid executable found for OCI runtime runc: invalid argument
DEBU[0000] Configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument
DEBU[0000] Configured OCI runtime krun initialization failed: no valid executable found for OCI runtime krun: invalid argument
DEBU[0000] Configured OCI runtime ocijail initialization failed: no valid executable found for OCI runtime ocijail: invalid argument
DEBU[0000] Using OCI runtime "/usr/bin/crun"
INFO[0000] Setting parallel job count to 61
DEBU[0000] Successfully loaded network 1_default: &{1_default ac1b1b19d37bbc916b81b2fe2151d3d6b46432f90bdbc267eac230b99a9681a6 bridge podman8 2023-09-22 16:58:00.735543416 +0300 MSK [{{{10.89.7.0 ffffff00}} 10.89.7.1 <nil>}] [] false false true [] map[com.docker.compose.project:1 io.podman.compose.project:1] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network 2_default: &{2_default 7cf7be5b1ab3d1a21771d5fed8b3f1539365232b02ddf044209e54f9ab9beca5 bridge podman9 2023-10-24 20:51:05.030750684 +0300 MSK [{{{10.89.8.0 ffffff00}} 10.89.8.1 <nil>}] [] false false true [] map[com.docker.compose.project:2 io.podman.compose.project:2] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network cffi_default: &{cffi_default 73fc70bf8164268540f68794e28d3347256833459dcbd4fe2ada599882b1a0eb bridge podman10 2023-10-24 22:28:06.821915238 +0300 MSK [{{{10.89.9.0 ffffff00}} 10.89.9.1 <nil>}] [] false false true [] map[com.docker.compose.project:cffi io.podman.compose.project:cffi] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network desktop_default: &{desktop_default c4cf841f5fc04fe2a51c88799674fecf1fc2a6e26cd040ac31da95dbed66e257 bridge podman14 2024-03-04 10:02:16.445570624 +0300 MSK [{{{10.89.13.0 ffffff00}} 10.89.13.1 <nil>}] [] false false true [] map[com.docker.compose.project:desktop io.podman.compose.project:desktop] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network games_default: &{games_default ef39578cfab2e107c3ebcb580eea1752cd2b354ec5ca786d7200bcba79de6daa bridge podman3 2022-11-03 15:41:31.408906166 +0300 MSK [{{{10.89.2.0 ffffff00}} 10.89.2.1 <nil>}] [] false false true [] map[com.docker.compose.project:games io.podman.compose.project:games] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network gitea_default: &{gitea_default 6aabda093b42e445e4650ec435cd66795d7e9714c8660822b2d1802a3069b020 bridge podman12 2024-02-19 02:15:41.380171182 +0300 MSK [{{{10.89.11.0 ffffff00}} 10.89.11.1 <nil>}] [] false false true [] map[com.docker.compose.project:gitea io.podman.compose.project:gitea] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network lab_1_default: &{lab_1_default 44a2b8dc9db9abf108308799e60f2c09e56d25456d5059c64b5e26877a24713e bridge podman2 2022-10-24 20:47:58.80508925 +0300 MSK [{{{10.89.1.0 ffffff00}} 10.89.1.1 <nil>}] [] false false true [] map[com.docker.compose.project:lab_1 io.podman.compose.project:lab_1] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network lab_2_default: &{lab_2_default 890041cefa0db9f3c0268db62e9494fc9f3a89ea82c11f7a17ed18cf046951c4 bridge podman6 2022-11-20 18:57:15.656430272 +0300 MSK [{{{10.89.5.0 ffffff00}} 10.89.5.1 <nil>}] [] false false true [] map[com.docker.compose.project:lab_2 io.podman.compose.project:lab_2] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network linkding_default: &{linkding_default 99720ca1ecf154ed61e915957c9b842acbb83c48989b3290afa2d6f56e05cb32 bridge podman13 2024-03-04 09:29:12.260563718 +0300 MSK [{{{10.89.12.0 ffffff00}} 10.89.12.1 <nil>}] [] false false true [] map[com.docker.compose.project:linkding io.podman.compose.project:linkding] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network mdia__models_of_data_integration_and_applications_default: &{mdia__models_of_data_integration_and_applications_default 3b227401cd552e0ed441c1228c2573f3ff54ea92fd283d9f509bd231e9065116 bridge podman1 2022-10-04 09:29:45.783243937 +0300 MSK [{{{10.89.0.0 ffffff00}} 10.89.0.1 <nil>}] [] false false true [] map[com.docker.compose.project:mdia__models_of_data_integration_and_applications io.podman.compose.project:mdia__models_of_data_integration_and_applications] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network onedev_default: &{onedev_default f82d5bc6e7733e1cd2dae32ed284e58b43edcc0b8a890a7ea04d7df5ff508e8a bridge podman7 2023-02-16 11:25:49.272209018 +0300 MSK [{{{10.89.6.0 ffffff00}} 10.89.6.1 <nil>}] [] false false true [] map[com.docker.compose.project:onedev io.podman.compose.project:onedev] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network server_default: &{server_default 7613162c1560349b64ab3ecbe0c748fe38cae53b04c5335fa973cafb57efcc6e bridge podman4 2022-11-03 17:20:08.693591402 +0300 MSK [{{{10.89.3.0 ffffff00}} 10.89.3.1 <nil>}] [] false false true [] map[com.docker.compose.project:server io.podman.compose.project:server] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network temp_default: &{temp_default 40f4a9719adf2351a912bd2bcd1e958de0cddcd38299aabe2c91fc6fe1726f78 bridge podman5 2022-11-10 10:06:48.233734685 +0300 MSK [{{{10.89.4.0 ffffff00}} 10.89.4.1 <nil>}] [] false false true [] map[com.docker.compose.project:temp io.podman.compose.project:temp] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded network tmp_default: &{tmp_default a5e81d7e5c11516dd3aaf1e4036d2b8474fda71c75f30e7833b5fff8756f534c bridge podman11 2024-01-15 20:46:58.798086354 +0300 MSK [{{{10.89.10.0 ffffff00}} 10.89.10.1 <nil>}] [] false false true [] map[com.docker.compose.project:tmp io.podman.compose.project:tmp] map[] map[driver:host-local]}
DEBU[0000] Successfully loaded 15 networks
DEBU[0000] Pulling image registry.fedoraproject.org/fedora-toolbox:latest (policy: missing)
DEBU[0000] Looking up image "registry.fedoraproject.org/fedora-toolbox:latest" in local containers storage
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux  [] }
DEBU[0000] Trying "registry.fedoraproject.org/fedora-toolbox:latest" ...
DEBU[0000] parsed reference into "[overlay@/var/home/zhenyamega/.local/share/containers/storage+/run/user/1000/containers]@e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce"
DEBU[0000] Found image "registry.fedoraproject.org/fedora-toolbox:latest" as "registry.fedoraproject.org/fedora-toolbox:latest" in local containers storage
DEBU[0000] Found image "registry.fedoraproject.org/fedora-toolbox:latest" as "registry.fedoraproject.org/fedora-toolbox:latest" in local containers storage ([overlay@/var/home/zhenyamega/.local/share/containers/storage+/run/user/1000/containers]@e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce)
DEBU[0000] exporting opaque data as blob "sha256:e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce"
DEBU[0000] Looking up image "registry.fedoraproject.org/fedora-toolbox:latest" in local containers storage
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux  [] }
DEBU[0000] Trying "registry.fedoraproject.org/fedora-toolbox:latest" ...
DEBU[0000] parsed reference into "[overlay@/var/home/zhenyamega/.local/share/containers/storage+/run/user/1000/containers]@e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce"
DEBU[0000] Found image "registry.fedoraproject.org/fedora-toolbox:latest" as "registry.fedoraproject.org/fedora-toolbox:latest" in local containers storage
DEBU[0000] Found image "registry.fedoraproject.org/fedora-toolbox:latest" as "registry.fedoraproject.org/fedora-toolbox:latest" in local containers storage ([overlay@/var/home/zhenyamega/.local/share/containers/storage+/run/user/1000/containers]@e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce)
DEBU[0000] exporting opaque data as blob "sha256:e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce"
DEBU[0000] User mount /:/run/host options [rslave]
DEBU[0000] User mount /tmp:/tmp options [rslave]
DEBU[0000] User mount /usr/bin/distrobox-init:/usr/bin/entrypoint options [ro]
DEBU[0000] User mount /usr/bin/distrobox-export:/usr/bin/distrobox-export options [ro]
DEBU[0000] User mount /usr/bin/distrobox-host-exec:/usr/bin/distrobox-host-exec options [ro]
DEBU[0000] User mount /var/home/zhenyamega:/var/home/zhenyamega options [rslave]
DEBU[0000] User mount /dev:/dev options [rslave]
DEBU[0000] User mount /sys:/sys options [rslave]
DEBU[0000] User mount :/dev/pts options []
DEBU[0000] User mount /dev/null:/dev/ptmx options []
DEBU[0000] User mount :/sys/fs/selinux options []
DEBU[0000] User mount :/var/log/journal options []
DEBU[0000] User mount /var/home/zhenyamega/containers/test:/var/home/zhenyamega/containers/test options [rslave]
DEBU[0000] User mount /run/user/1000:/run/user/1000 options [rslave]
DEBU[0000] User mount /etc/hosts:/etc/hosts options [ro]
DEBU[0000] User mount /etc/resolv.conf:/etc/resolv.conf options [ro]
DEBU[0000] Looking up image "registry.fedoraproject.org/fedora-toolbox:latest" in local containers storage
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux  [] }
DEBU[0000] Trying "registry.fedoraproject.org/fedora-toolbox:latest" ...
DEBU[0000] parsed reference into "[overlay@/var/home/zhenyamega/.local/share/containers/storage+/run/user/1000/containers]@e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce"
DEBU[0000] Found image "registry.fedoraproject.org/fedora-toolbox:latest" as "registry.fedoraproject.org/fedora-toolbox:latest" in local containers storage
DEBU[0000] Found image "registry.fedoraproject.org/fedora-toolbox:latest" as "registry.fedoraproject.org/fedora-toolbox:latest" in local containers storage ([overlay@/var/home/zhenyamega/.local/share/containers/storage+/run/user/1000/containers]@e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce)
DEBU[0000] exporting opaque data as blob "sha256:e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce"
DEBU[0000] Inspecting image e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce
DEBU[0000] exporting opaque data as blob "sha256:e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce"
DEBU[0000] exporting opaque data as blob "sha256:e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce"
DEBU[0000] Inspecting image e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce
DEBU[0000] Inspecting image e8c6a36c07b778f0efcf7adb0c317ea2405afed5a3547fe8272c54b2495955ce
DEBU[0000] using systemd mode: false
DEBU[0000] setting container name install > ./log.txt
DEBU[0000] Loading seccomp profile from "/usr/share/containers/seccomp.json"
INFO[0000] Sysctl net.ipv4.ping_group_range=0 0 ignored in containers.conf, since Network Namespace set to host
DEBU[0000] Adding mount /sys/fs/cgroup
DEBU[0000] Adding mount /proc
Error: running container create option: names must match [a-zA-Z0-9][a-zA-Z0-9_.-]*: invalid argument
DEBU[0000] Shutting down engines
+ printf '\033[31m [ ERR ]\n\033[0m'
 [ ERR ]
+ '[' -n 1 ']'
+ '[' 1 -eq 1 ']'
+ /usr/bin/distrobox enter test -- touch /dev/null
Error: no such container test
Create it now, out of image registry.fedoraproject.org/fedora-toolbox:39? [Y/n]: n
Ok. For creating it, run this command:
        distrobox create <name-of-container> --image <remote>/<docker>:<tag>
+ '[' -n '' ']'
+ '[' -n '' ']'
+ rm -f /tmp/tmp.w4DENTdMJU

Conclusions

I don't understand how to write the line so that it executes correctly. How do I do it right?

@zhenyamega zhenyamega added the question Further information is requested label Apr 4, 2024
@m666m
Copy link

m666m commented Apr 29, 2024

Same issue.

When I use distrobox assemble create --file distrobox.ini --verbose to check the detail, the cmd output :

--entrypoint /usr/bin/entrypoint
    quay.io/toolbx-images/debian-toolbox:12
            --verbose
            --name "meme"
            --user 1000
            --group 1000
            --home "/home/meme"
            --init "0"
            --nvidia "0"
            --pre-init-hooks ""
            --additional-packages ""
            -- '\'': ;  echo '\''some install'\'' > ./log.txt'\''  <------- strange

@m666m
Copy link

m666m commented Apr 29, 2024

I have a more complex use case that seems impossible to implement

init_hooks='sed -i ":a;N;s@deb.debian.org/debian\n@mirrors.tuna.tsinghua.edu.cn/debian\n@g;ba" /etc/apt/sources.list.d/debian.sources'

Can it support calling .sh ?

@m666m
Copy link

m666m commented May 7, 2024

I have a more complex use case that seems impossible to implement

init_hooks='sed -i ":a;N;s@deb.debian.org/debian\n@mirrors.tuna.tsinghua.edu.cn/debian\n@g;ba" /etc/apt/sources.list.d/debian.sources'

Can it support calling .sh ?

I soled this by add a volume:

volume='/home/user/pre_sh:/pre_sh'
pre_init_hooks='bash /pre_sh/use_mirror.sh'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants