[libvirt-jenkins-ci PATCH v3 1/5] guests: users: Discard the .bash_logout skeleton file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As part of the users tasks, we remove the .profile file after we create
our own .bash_profile. As part of that effort, let's remove the .bash_logout
skeleton file as well, the reason being gitlab's runner agent which
has a hard time initializing a build environment on Debian where the
system populates the .bash_logout with console cleaning code which
messes up the runner and causes the build to fail instantly [1].
Since Debian is the only distro actually populating the file and the
machines are assumed to be accessed over SSH, we can safely drop it.

[1] https://gitlab.com/gitlab-org/gitlab-runner/issues/4449

Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx>
Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 guests/playbooks/update/tasks/users.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guests/playbooks/update/tasks/users.yml b/guests/playbooks/update/tasks/users.yml
index 30e5fca..a07349f 100644
--- a/guests/playbooks/update/tasks/users.yml
+++ b/guests/playbooks/update/tasks/users.yml
@@ -63,9 +63,10 @@
     - bash_profile
     - bashrc
 
-- name: '{{ flavor }}: Remove existing shell profile'
+- name: '{{ flavor }}: Remove unnecessary home skeleton files'
   file:
     path: /home/{{ flavor }}/.{{ item }}
     state: absent
   with_items:
     - profile
+    - bash_logout
-- 
2.25.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux