[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master eba4fbb 1/2: Attempt to install a debian chro
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master eba4fbb 1/2: Attempt to install a debian chroot inside a centos chroot |
Date: |
Thu, 3 Oct 2019 10:32:17 -0400 (EDT) |
branch: master
commit eba4fbbc186d79018a2d5ef0df48fb7e72079c4d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Attempt to install a debian chroot inside a centos chroot
Copied instructions from mailing list. Expect difficulties.
---
install_centos.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/install_centos.sh b/install_centos.sh
index c987660..4bfd11b 100755
--- a/install_centos.sh
+++ b/install_centos.sh
@@ -74,6 +74,18 @@ yum --assumeyes install devtoolset-8 rh-git218
# In order to use the tools on the three preceding lines, do:
# scl enable devtoolset-8 rh-git218 $SHELL
# and then they'll be available in that environment.
+
+# Install a debian chroot inside this centos chroot. See:
+# https://lists.nongnu.org/archive/html/lmi/2019-09/msg00037.html
+yum --assumeyes install ca-certificates curl
+#
+rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+yum install -y debootstrap.noarch
+#
+mkdir -p /srv/chroot/debian-stable
+debootstrap stable /src/chroot/debian-stable http://deb.debian.org/debian/
+#
+echo Installed debian-stable.
EOF
chmod +x /srv/chroot/centos7/tmp/setup0.sh