[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f45984af 1/2: Fix defect introduced 20220306T
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f45984af 1/2: Fix defect introduced 20220306T1926Z: incomplete substitution |
Date: |
Sun, 6 Mar 2022 15:22:37 -0500 (EST) |
branch: master
commit f45984afe1a9716c5dbed494ded9153922033bf3
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Fix defect introduced 20220306T1926Z: incomplete substitution
Commit 3124c2ce3d5a6 of 20220306T1926Z substituted
/srv/chroot --> /srv/
in most places in this file, but not in all.
---
lmi_setup_05r.sh | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lmi_setup_05r.sh b/lmi_setup_05r.sh
index 24f6d675..69e79d6e 100755
--- a/lmi_setup_05r.sh
+++ b/lmi_setup_05r.sh
@@ -30,7 +30,7 @@ set -evx
assert_su
assert_not_chrooted
-umount /srv/chroot
+umount /srv
# On a server with tiny 4G partitions for /usr, /var, /tmp, /opt,
# etc., no partition had room for a chroot. Using RAM:
@@ -52,11 +52,11 @@ umount /srv/chroot
# /dev/sdb2: LABEL="lmi" ... TYPE="xfs"
# Then do:
# echo "LABEL=lmi /srv xfs defaults 0 0" >> /etc/fstab
-# removing any former /srv/chroot line.
+# removing any former /srv line.
#
-# Here, explicitly remount /srv/chroot because it was umounted above:
-mount LABEL=lmi /srv/chroot
-findmnt /srv/chroot
+# Here, explicitly remount /srv because it was umounted above:
+mount LABEL=lmi /srv
+findmnt /srv
stamp=$(date -u +'%Y%m%dT%H%M%SZ')
echo "$stamp $0: Reconfigured redhat chroot." | tee /dev/tty