[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 2eae6aed 2/2: Work around a failing workaroun
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 2eae6aed 2/2: Work around a failing workaround |
Date: |
Sun, 6 Mar 2022 15:22:37 -0500 (EST) |
branch: master
commit 2eae6aed0021fafadb610f12cabf89f0c6462f76
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Work around a failing workaround
---
lmi_setup_05r.sh | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/lmi_setup_05r.sh b/lmi_setup_05r.sh
index 69e79d6e..130df471 100755
--- a/lmi_setup_05r.sh
+++ b/lmi_setup_05r.sh
@@ -30,7 +30,12 @@ set -evx
assert_su
assert_not_chrooted
-umount /srv
+# The intention here was to un-mount and re-mount, in the hope of
+# making the server work more reliably across reboots. However,
+# now it fails with a message like:
+# umount: /srv: target is busy.
+# so maybe it's not such a good idea.
+#umount /srv
# On a server with tiny 4G partitions for /usr, /var, /tmp, /opt,
# etc., no partition had room for a chroot. Using RAM:
@@ -54,8 +59,8 @@ umount /srv
# echo "LABEL=lmi /srv xfs defaults 0 0" >> /etc/fstab
# removing any former /srv line.
#
-# Here, explicitly remount /srv because it was umounted above:
-mount LABEL=lmi /srv
+# Here, explicitly remount /srv if it was umounted above:
+# mount LABEL=lmi /srv
findmnt /srv
stamp=$(date -u +'%Y%m%dT%H%M%SZ')