[Top][All Lists]

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

[lmi-commits] [lmi] master 2efaa10 1/6: Suppress a debian nuisance

From: Greg Chicares
Subject: [lmi-commits] [lmi] master 2efaa10 1/6: Suppress a debian nuisance
Date: Wed, 26 Feb 2020 17:43:35 -0500 (EST)

branch: master
commit 2efaa101bfb5f486338923f2b846032b5ca26cb8
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Suppress a debian nuisance
    Currently, debian stable's /etc/skel/.bash_logout has:
      if [ "$SHLVL" = 1 ]; then
          [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
    yet $SHLVL is 1 after schroot is invoked. The discussion here:
    ignores that possibility. This is why the correct policy is to write
    almost nothing but comments in /etc/skel/ files.
 install_redhat.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/install_redhat.sh b/install_redhat.sh
index 42042db..2e90d4c 100755
--- a/install_redhat.sh
+++ b/install_redhat.sh
@@ -93,6 +93,10 @@ debootstrap "${CODENAME}" /srv/chroot/"${CHRTNAME}" 
 echo Installed debian "${CODENAME}".
+# Suppress a nuisance: debian-based distributions provide a default
+# bash logout file that clears the screen.
+sed -e'/^[^#]/s/^/# SUPPRESSED # /' -i 
 cat >/etc/schroot/chroot.d/"${CHRTNAME}".conf <<EOF

reply via email to

[Prev in Thread] Current Thread [Next in Thread]