[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 505e4aa 1/2: Expediently patch over some redh
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 505e4aa 1/2: Expediently patch over some redhat issues |
Date: |
Tue, 8 Oct 2019 12:55:37 -0400 (EDT) |
branch: master
commit 505e4aaa3f65c734932802f1421c7fe947b1554d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Expediently patch over some redhat issues
---
install_redhat.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/install_redhat.sh b/install_redhat.sh
index 8f10001..5421ed1 100755
--- a/install_redhat.sh
+++ b/install_redhat.sh
@@ -29,9 +29,10 @@ stamp0=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
echo "Started: $stamp0"
# First, destroy any chroot left by a prior run.
-grep "${CHRTNAME}" /proc/mounts | cut -f2 -d" " | xargs umount
+grep "${CHRTNAME}" /proc/mounts | cut -f2 -d" " | xargs umount || echo "None?"
rm -rf /srv/chroot/"${CHRTNAME}"
-rm /etc/schroot/chroot.d/"${CHRTNAME}".conf
+rm /etc/schroot/chroot.d/"${CHRTNAME}".conf || echo "None?"
+umount /srv
mount -t tmpfs -o size=10G tmpfs /srv
findmnt /tmp
@@ -97,6 +98,10 @@ wget -N
'https://github.com/vadz/lmi/raw/master/lmi_setup_43.sh'
wget -N 'https://github.com/vadz/lmi/raw/master/lmi_setup_inc.sh'
chmod +x lmi_setup_*.sh
+for z in lmi_setup_*.sh; do \
+ sed -i "$z" -e
's,https://git.savannah.nongnu.org/cgit/lmi.git/plain/,https://github.com/vadz/lmi/raw/master/,'
+done
+
. ./lmi_setup_inc.sh
set -evx