[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 8d2c26b 03/18: Fold unborn chroot step #12 in
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 8d2c26b 03/18: Fold unborn chroot step #12 into step #20 |
Date: |
Thu, 21 May 2020 19:43:10 -0400 (EDT) |
branch: master
commit 8d2c26bbbd2855a4fd27695260f025fad82f51a1
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Fold unborn chroot step #12 into step #20
It is cleaner to change this /etc/skel file while inside the chroot.
The nuisance was manifest only on a corporate server that doesn't allow
chsh even with sudo, so that everyone's shell is bash. Now, it's avoided
in all cases.
---
install_redhat.sh | 6 ------
lmi_setup_20.sh | 4 ++++
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/install_redhat.sh b/install_redhat.sh
index b352923..ba6ad19 100755
--- a/install_redhat.sh
+++ b/install_redhat.sh
@@ -125,12 +125,6 @@ mount --bind /srv/cache_for_lmi
/srv/chroot/"${CHRTNAME}"/srv/cache_for_lmi
# END ./lmi_setup_11.sh
# ./lmi_setup_11.sh
-# BEGIN ./lmi_setup_12.sh
-# Suppress a nuisance: debian-based distributions provide a default
-# bash logout file that clears the screen.
-sed -e'/^[^#]/s/^/# SUPPRESSED # /' -i
/srv/chroot/"${CHRTNAME}"/etc/skel/.bash_logout
-# END ./lmi_setup_12.sh
-
cp -a lmi_setup_*.sh /tmp/schroot_env /srv/chroot/${CHRTNAME}/tmp
schroot --chroot=${CHRTNAME} --user=root --directory=/tmp
./lmi_setup_20.sh
schroot --chroot=${CHRTNAME} --user=root --directory=/tmp
./lmi_setup_21.sh
diff --git a/lmi_setup_20.sh b/lmi_setup_20.sh
index afa9430..a9443d2 100755
--- a/lmi_setup_20.sh
+++ b/lmi_setup_20.sh
@@ -56,6 +56,10 @@ ln -s /bin/true /usr/bin/ischroot
# as of 2019-03, and the underlying defect is still unresolved:
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685034
+# Suppress a nuisance: debian-based distributions provide a default
+# bash logout file that clears the screen.
+sed -e'/^[^#]/s/^/# SUPPRESSED # /' -i /etc/skel/.bash_logout
+
# This being a "plain" schroot, mount essential directories:
mount -t devpts -o rw,nosuid,noexec,relatime,mode=600 devpts /dev/pts
mount -t proc -o rw,nosuid,nodev,noexec,relatime proc /proc
- [lmi-commits] [lmi] master updated (71eeb9b -> 8bc4085), Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 932c27b 01/18: Consolidate chroot step #10, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 8d2c26b 03/18: Fold unborn chroot step #12 into step #20,
Greg Chicares <=
- [lmi-commits] [lmi] master 90411ba 06/18: Use a variable to reduce literal repetition, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 8054eeb 09/18: Don't create chroot's own /var before running debootstrap, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 2b00752 10/18: Note some questions for later investigation, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 7f0f5fa 04/18: Announce the installation of each chroot, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 5134131 02/18: Rearrange some independent script blocks, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master a779e6f 05/18: Give all group users access to chroot, on debian host, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master bfd3dae 07/18: Regularize debootstrap invocations, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 0d9cf29 08/18: Clarify documentation, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 455d59e 11/18: Rearrange some script blocks, Greg Chicares, 2020/05/21
- [lmi-commits] [lmi] master 4a7d356 12/18: Extract marked blocks into sub-scripts #11, Greg Chicares, 2020/05/21