This isn't limited to busybox.
man lxc-start "--" currently not documented. Doesn't dictate that the command can't be interactive or that it should be an init replacement. Templates are being set up to allow console usage (i.e. default, no command without -d option)

This explains it.
root@lin:~# lxc-start -n busybox1 -s lxc.console=none ash
root@busybox1:/# tty
not a tty

root@lin:~# lxc-start -n busybox1 -- getty -L console 115200 vt100
busybox1 login: root
login[1]: root login on 'console'
~ # tty
/dev/console

You miss out on network setting if you use chroot. lxc-execute needs the init (with libs) added inside rootfs to work. Maybe a lxc-chroot script should be written; but this gets complicated if you have mounts set up.




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to