[libvirt] [jenkins-ci PATCH 02/10] guests: Enable ~/.bashrc on FreeBSD

Pavel Hrdina phrdina at redhat.com
Fri Apr 6 12:00:10 UTC 2018


On Thu, Apr 05, 2018 at 02:22:12PM +0200, Andrea Bolognani wrote:
> Due to the way bash is compiled on FreeBSD, we need to flip an
> extra switch in order to convince it to process the shell profile
> even when we're running commands non-interactively through ssh.
> 
> Signed-off-by: Andrea Bolognani <abologna at redhat.com>
> ---
>  guests/tasks/kludges.yml | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/guests/tasks/kludges.yml b/guests/tasks/kludges.yml
> index 001b5c6..0196559 100644
> --- a/guests/tasks/kludges.yml
> +++ b/guests/tasks/kludges.yml
> @@ -29,3 +29,21 @@
>    when:
>      - os_name == 'FreeBSD'
>      - os_version == '11'
> +
> +# FreeBSD compiles bash without defining SSH_SOURCE_BASHRC, which means
> +# it won't try to detect when it's spawned by ssh and source ~/.bashrc
> +# when that's the case. Our workaround is setting $BASH_ENV globally

s/globally/globally./

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180406/a82a4402/attachment-0001.sig>


More information about the libvir-list mailing list