Hi,

I think I found part of the issue:

paul@mulciber ~ $ sudo lxc-start test && sudo lxc-attach test -- "runlevel" ; echo $? && sudo lxc-stop test
unknown
1
paul@mulciber ~ $ sudo lxc-start test && sudo lxc-attach test -- "if [ -d /run/systemd/system ]; then echo systemd ; exit 0 ; else echo unknown ; exit 0 ; fi" ; echo $? && sudo lxc-stop test lxc-attach: test: ../src/lxc/attach.c: lxc_attach_run_command: 1839 No such file or directory - Failed to exec "if [ -d /run/systemd/system ]; then echo systemd ; exit 0 ; else echo unknown ; exit 0 ; fi"
127
paul@mulciber ~ $

It seems the first command in the new flow is not suitable to run while the container is still starting up.

Paul

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to