Definir shell de login customizado no schroot

3

De acordo com a página man do schroot:

schroot allows the user to run a command or a login shell in a chroot environment. If no command is specified, a login shell will be started in the user's current working directory inside the chroot.

No meu caso, o schroot tenta executar / bin / bash quando nenhum comando é especificado. Existe alguma maneira de ter o schroot usando um shell de login diferente por padrão?

    
por Grodriguez 10.10.2014 / 09:34

1 resposta

3

Defina o shell=/bin/shell no seu arquivo /etc/schroot/schroot.conf :

Referenciando a página do manual schroot.conf :

shell=shell
When running a login shell a number of potential shells will be considered, in this order: the command in the SHELL environment variable (if --preserve-environment is used, or pre‐serve-environment is enabled), the user's shell in the ‘passwd’ database, /bin/bash and finally /bin/sh. This setting overrides this list, and will use the shell specified. It may be overridden using the --shell option.

    
por 10.10.2014 / 13:58

Tags