[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master d7d4d09 1/2: Update chroot from debian-9 "str
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master d7d4d09 1/2: Update chroot from debian-9 "stretch" to debian-10 "buster" |
Date: |
Fri, 2 Mar 2018 12:11:29 -0500 (EST) |
branch: master
commit d7d4d09beb5f459876b695b8b08de2f4bfa70bf1
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Update chroot from debian-9 "stretch" to debian-10 "buster"
Used debian release names more extensively, to make future changes
easier and more reliable. Next time, a simple s/buster/bullseye/gc
should suffice.
s/debian-9/debian buster/ to make future version updates easier.
s/cross-lmi/lmi-buster/ to make it easier to have multiple chroots.
---
README.schroot | 46 +++++++++++++++++++++++-----------------------
1 file changed, 23 insertions(+), 23 deletions(-)
diff --git a/README.schroot b/README.schroot
index b623788..3063a58 100644
--- a/README.schroot
+++ b/README.schroot
@@ -33,22 +33,22 @@ apt-get install schroot debootstrap
# Download all OS essentials. This step may be done a single time, and
# its tarball used repeatedly. The target ('/tmp/eraseme') directory
# will be created and erased automatically.
-debootstrap --arch=amd64 --make-tarball=/var/cache/stretch_bootstrap.tar
stretch /tmp/eraseme
+debootstrap --arch=amd64 --make-tarball=/var/cache/buster_bootstrap.tar buster
/tmp/eraseme
# Unpack the OS tarball into the particular chroot being created.
# (If the preceding apt-get and debootstrap steps have already been
# completed once, then skip them and start here.)
-mkdir -p /srv/chroot/cross-lmi
-debootstrap --arch=amd64 --unpack-tarball=/var/cache/stretch_bootstrap.tar \
- stretch /srv/chroot/cross-lmi >cross-lmi-debootstrap-log 2>&1
+mkdir -p /srv/chroot/lmi-buster
+debootstrap --arch=amd64 --unpack-tarball=/var/cache/buster_bootstrap.tar \
+ buster /srv/chroot/lmi-buster >lmi-buster-debootstrap-log 2>&1
# This command should produce no output:
-grep --invert-match '^I:' cross-lmi-debootstrap-log
+grep --invert-match '^I:' lmi-buster-debootstrap-log
-cat >/etc/schroot/chroot.d/cross-lmi.conf <<\EOF
-[cross-lmi]
-description=debian-9 cross build
-directory=/srv/chroot/cross-lmi
+cat >/etc/schroot/chroot.d/lmi-buster.conf <<\EOF
+[lmi-buster]
+description=debian buster cross build
+directory=/srv/chroot/lmi-buster
users=greg
groups=greg
root-groups=root
@@ -61,7 +61,7 @@ exit
# This command--to start a root shell in the chroot--can be run as a
# normal user. It will prompt for the root password.
-schroot --chroot=cross-lmi --user=root --directory=/
+schroot --chroot=lmi-buster --user=root --directory=/
# enter password
# Add i386 before installing wine, so that wine can run 32-bit .exe's .
@@ -92,20 +92,20 @@ mount -t proc -o rw,nosuid,nodev,noexec,relatime proc /proc
# umount ./dev/pts
# umount ./proc
# ...or outside chroot:
-# umount /srv/chroot/cross-lmi/dev/pts/
-# umount /srv/chroot/cross-lmi/proc/
+# umount /srv/chroot/lmi-buster/dev/pts/
+# umount /srv/chroot/lmi-buster/proc/
# Then, and only then:
-# rm -rf /srv/chroot/cross-lmi/
-# rm /etc/schroot/chroot.d/cross-lmi.conf
+# rm -rf /srv/chroot/lmi-buster/
+# rm /etc/schroot/chroot.d/lmi-buster.conf
apt-get update
apt-get --assume-yes install g++-mingw-w64 automake libtool make \
pkg-config git cvs zsh bzip2 unzip sudo wine default-jre fop jing trang \
g++-multilib libxml2-utils libxslt1-dev vim-gtk vim-doc vim-fugitive \
- >cross-lmi-apt-get-log 2>&1
+ >lmi-buster-apt-get-log 2>&1
# This command should produce little output:
-<cross-lmi-apt-get-log sed -e'0,/^Preconfiguring/d' \
+<lmi-buster-apt-get-log sed -e'0,/^Preconfiguring/d' \
-e'/^Fetched\|^Preparing\|^Unpacking\|^Configuring\|^Selecting/d' \
-e'/^Setting up\|^Processing\|^Adding\|^update-alternatives\|^[Dd]one./d' \
-e'/^(Reading database\|^Linking\|^Moving old\|^Regenerating/d' \
@@ -248,9 +248,9 @@ EOF
# Enable stable and security upgrades:
cat >/etc/apt/sources.list <<\EOF
-deb http://deb.debian.org/debian/ stretch main
-deb http://deb.debian.org/debian/ stretch-updates main
-deb http://security.debian.org/ stretch/updates main
+deb http://deb.debian.org/debian/ buster main
+deb http://deb.debian.org/debian/ buster-updates main
+deb http://security.debian.org/ buster/updates main
EOF
# Apply any available upgrades:
@@ -269,11 +269,11 @@ exit
# chroot. For convenience, add a bare repository of proprietary files
# to this directory (after making sure it's up to date):
# cp --dereference --preserve --recursive /WHEREVER/blessed
/srv/cache_for_lmi
-# cp -a /srv/cache_for_lmi/* /srv/chroot/cross-lmi/cache_for_lmi/
+# cp -a /srv/cache_for_lmi/* /srv/chroot/lmi-buster/cache_for_lmi/
# Configure ssh, iff this chroot needs write access to savannah.
# The easiest way is to copy existing credentials, e.g.:
-# cp -a ~/.ssh/ /srv/chroot/cross-lmi/home/greg
+# cp -a ~/.ssh/ /srv/chroot/lmi-buster/home/greg
# Make sure the .ssh/config file contains:
# Protocol 2
# HashKnownHosts no
@@ -286,12 +286,12 @@ exit
# is available--e.g., save this file:
#
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html
# to /srv/cache_for_lmi/, then copy it into the chroot's filesystem:
-# cp -a /srv/cache_for_lmi/jre-1_5_0-windows-i586.exe
/srv/chroot/cross-lmi/cache_for_lmi
+# cp -a /srv/cache_for_lmi/jre-1_5_0-windows-i586.exe
/srv/chroot/lmi-buster/cache_for_lmi
# where it can be run later. Only the JRE is wanted, and nothing else.
# Enter the chroot as a normal user
-schroot --chroot=cross-lmi
+schroot --chroot=lmi-buster
# Configure git. See:
# http://lists.nongnu.org/archive/html/lmi/2016-03/msg00006.html