[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 4eca5fa 1/3: Suppress a redhat nuisance
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 4eca5fa 1/3: Suppress a redhat nuisance |
Date: |
Wed, 5 Feb 2020 10:16:08 -0500 (EST) |
branch: master
commit 4eca5fa1336e12ae26245abd0aee50231bff5e35
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Suppress a redhat nuisance
---
install_centos.sh | 4 ++++
install_redhat.sh | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/install_centos.sh b/install_centos.sh
index f5e35b4..ab74f32 100755
--- a/install_centos.sh
+++ b/install_centos.sh
@@ -89,6 +89,10 @@ yum --assumeyes install ncurses-term zsh
chsh -s /bin/zsh root
chsh -s /bin/zsh "${NORMAL_USER}"
+# Suppress a nuisance: rh-based distributions provide a default
+# zsh logout file that clears the screen.
+sed -e'/^[^#]/s/^/# SUPPRESSED # /' -i /srv/chroot/centos7lmi/etc/zlogout
+
# Make a more modern 'git' available via 'scl'. This is not needed
# if all real work is done in a debian chroot.
#yum --assumeyes install centos-release-scl
diff --git a/install_redhat.sh b/install_redhat.sh
index 219ecc9..906698c 100755
--- a/install_redhat.sh
+++ b/install_redhat.sh
@@ -37,6 +37,10 @@ umount /srv
mount -t tmpfs -o size=10G tmpfs /srv
findmnt /srv
+# Suppress a nuisance: rh-based distributions provide a default
+# zsh logout file that clears the screen.
+sed -e'/^[^#]/s/^/# SUPPRESSED # /' -i /etc/zlogout
+
# Make a more modern 'git' available via 'scl'. This is not needed
# if all real work is done in a debian chroot.
#yum --assumeyes install centos-release-scl