<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>somehow, when using machinectl shell to access my nspawn
containers, my .bashrc is ignored, although bash is correctly used
as my shell. However, when specifying /bin/bash explicitly, the
.bashrc gets sourced correctly. Any ideas?</p>
<pre><span style="color:#FFFF55"><b>lukas@home</b></span>:<span
style="color:#5555FF"><b>~</b></span>$ sudo machinectl shell x11
Connected to machine x11. Press ^] three times within 1s to exit session.
[root@x11 ~]# echo $HISTFILESIZE; echo $0;
500
/bin/bash
[root@x11 ~]#
logout
Connection to machine x11 terminated.
<span style="color:#FFFF55"><b>lukas@home</b></span>:<span
style="color:#5555FF"><b>~</b></span>$ sudo machinectl shell x11 /bin/bash
Connected to machine x11. Press ^] three times within 1s to exit session.
<span style="color:#FF5555"><b>root@x11</b></span>:<span
style="color:#5555FF"><b>~</b></span># echo $HISTFILESIZE; echo $0;
/bin/bash
<span style="color:#FF5555"><b>root@x11</b></span>:<span
style="color:#5555FF"><b>~</b></span>#
exit
Connection to machine x11 terminated.
<span style="color:#FFFF55"><b>lukas@home</b></span>:<span
style="color:#5555FF"><b>~</b></span>$
</pre>
<p></p>
<p>Thanks,<br>
lukaro<br>
</p>
</body>
</html>