[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 1d72971 2/2: Copy a chroot's log file to host
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 1d72971 2/2: Copy a chroot's log file to host |
Date: |
Mon, 24 Feb 2020 10:38:47 -0500 (EST) |
branch: master
commit 1d729719768b5c2a0a8d67595f863110be092c4c
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Copy a chroot's log file to host
It is convenient to store a copy in a home directory on the host, with
a name that embeds the same timestamp as the log for the script that
recreates the chroot.
---
install_redhat.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/install_redhat.sh b/install_redhat.sh
index 4db31bf..42042db 100755
--- a/install_redhat.sh
+++ b/install_redhat.sh
@@ -138,6 +138,8 @@ schroot --chroot=${CHRTNAME} --user="${NORMAL_USER}"
--directory=/tmp ./lmi_setu
schroot --chroot=${CHRTNAME} --user="${NORMAL_USER}" --directory=/tmp
./lmi_setup_42.sh
schroot --chroot=${CHRTNAME} --user="${NORMAL_USER}" --directory=/tmp
./lmi_setup_43.sh
+cp -a /srv/chroot/${CHRTNAME}/home/"${NORMAL_USER}"/log
/home/"${NORMAL_USER}"/lmi_rhlog_"$stamp0"
+
stamp1=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
echo "Finished: $stamp1"