[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 5277c09 4/5: Add optional chroot-setup comman
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 5277c09 4/5: Add optional chroot-setup commands as comments |
Date: |
Tue, 28 Apr 2020 21:17:23 -0400 (EDT) |
branch: master
commit 5277c0932e11bad0f1ea2d6ee100ad7889f134a0
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Add optional chroot-setup commands as comments
---
lmi_setup_30.sh | 23 +++++++++++++++++++++--
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/lmi_setup_30.sh b/lmi_setup_30.sh
index 4d6b3ab..3381da4 100755
--- a/lmi_setup_30.sh
+++ b/lmi_setup_30.sh
@@ -29,6 +29,20 @@ set -vx
assert_not_su
assert_not_chrooted
+# To copy the cache in /srv from a different drive:
+#
+# src=/mnt/sda1/srv/cache_for_lmi
+#
+# dst=/srv/cache_for_lmi
+# sudo mkdir ${dst} &&
+# sudo chown greg:greg ${dst} &&
+# cp --dereference --preserve --recursive ${src}/* ${dst}
+#
+# dst=/srv/chroot/"${CHRTNAME}"/cache_for_lmi
+# sudo mkdir ${dst} &&
+# sudo chown greg:greg ${dst} &&
+# cp --dereference --preserve --recursive ${src}/* ${dst}
+
# If cached lmi downloads are available elsewhere, copy them now.
# Copying cache_for_lmi/downloads/ is an optional step that merely
# conserves bandwidth. Directory cache_for_lmi/ in a native msw
@@ -50,8 +64,13 @@ cp --dereference --preserve --recursive \
# Also copy any desired msw software into the chroot now, e.g.:
# cp -a /srv/chroot/some-prior-chroot/opt/xyzzy
/srv/chroot/${CHRTNAME}/opt/xyzzy
-# unless it requires running an "install" program, which must be postponed
-# until wine has been installed, below.
+# unless it requires running an "install" program, which must be
+# postponed until wine has been installed (in a later script). For
+# example, to copy all software installed in subdirectories of /opt/
+# other than /opt/lmi/ :
+#
+# setopt extended_glob &&
+# sudo cp -a /mnt/sda1/srv/chroot/lmi-buster2/opt/^lmi
/srv/chroot/"${CHRTNAME}"/opt
# Configure ssh, iff this chroot needs write access to savannah.
# The easiest way is to copy existing credentials, e.g.:
- [lmi-commits] [lmi] master updated (9f235b6 -> c9d97d5), Greg Chicares, 2020/04/28
- [lmi-commits] [lmi] master 6b3b67f 1/5: Improve 'ls' output, Greg Chicares, 2020/04/28
- [lmi-commits] [lmi] master db78f27 2/5: Make permissions more similar, Greg Chicares, 2020/04/28
- [lmi-commits] [lmi] master ea5c933 3/5: Improve documentation, Greg Chicares, 2020/04/28
- [lmi-commits] [lmi] master c9d97d5 5/5: Permit gcc-9.3.0, suppressing a new warning, Greg Chicares, 2020/04/28
- [lmi-commits] [lmi] master 5277c09 4/5: Add optional chroot-setup commands as comments,
Greg Chicares <=