pastebin - collaborative debugging tool
rovema.kpaste.net RSS

Difference between
modified post 23502a42 by Anonymous on Thu 12th Jan 2023 11:02
original post 1fac by Anonymous on Thu 12th Jan 2023 10:59
Download diff
Show old version | new version | both versions

    
11
# cat /etc/schroot/chroot.d/jessie-test-home-rmainz-debian_xorg_pkg_test2
22
[jessie-test-home-rmainz-debian_xorg_pkg_test2]
33
description=32bit test chroot for Xserver package work, try2
44
#aliases=test-32bit
55
type=directory
66
directory=/home/rmainz/tmp/debian_xorg_pkg_test1/jessie_schroot2/root_dir/
77
users=test001,rmainz,swulsch,mwenzel
88
root-groups=root
99
profile=desktop
1010
personality=linux
1111
preserve-environment=true
1212
1313
1414
# mkdir -p /home/rmainz/tmp/debian_xorg_pkg_test1/jessie_schroot2/root_dir/
1515
# cd /home/rmainz/tmp/debian_xorg_pkg_test1/jessie_schroot2/root_dir/
1616
# debootstrap --arch i386 '--include=autofs,emacs,nedit,x11-apps,strace,ltrace,locales,task-german,task-japanese,nfs-common,nfs4-acl-tools,vim,ksh,xterm,konsole,w3m,lynx,apt-file,gcc,clang,gdb,valgrind,build-essential' --no-check-gpg jessie $PWD http://deb.debian.org/debian
1717
# cp -r /etc/autofs.conf /etc/auto.* etc/.
1818
# printf 'root:tiger12maus\n' | chpasswd -m --root $PWD
1919
2020
2121
#### Add autofs to chroot start:
2222
---- snip ----
2323
# cat /etc/schroot/setup.d/71autofs
2424
#!/bin/sh
2525
2626
set -o errexit
2727
2828
. "$SETUP_DATA_DIR/common-data"
2929
. "$SETUP_DATA_DIR/common-functions"
3030
. "$SETUP_DATA_DIR/common-config"
3131
3232
if [ $STAGE = "setup-start" ] || [ $STAGE = "setup-recover" ]; then
3333
        [ -r "$CHROOT_PATH/etc/auto.home" ] && chroot "$CHROOT_PATH" /usr/sbin/service autofs restart
3434
elif [ $STAGE = "setup-stop" ]; then
3535
        true
3636
fi
3737
---- snip ----
3838
3939
4040
#### run interactive shell within chroot environment
4141
# schroot -c jessie-test-home-rmainz-debian_xorg_pkg_test2 -u root --directory / -- /bin/bash
4242
4343
4444
#### within chroot environment:
4545
# service autofs start # required so others have their home dir
4646
# dpkg-reconfigure locales
4747
4848
4949
#### edit /etc/apt/sources.list
5050
# diff -u /etc/apt/sources.list.old /etc/apt/sources.list
5151
--- /etc/apt/sources.list.old   2023-01-12 10:31:30.886590771 +0000
5252
+++ /etc/apt/sources.list       2023-01-12 10:52:04.397174191 +0000
5353
@@ -1 +1,9 @@
5454
-deb http://deb.debian.org/debian jessie main
5555
+deb [trusted=yes] http://archive.debian.org/debian jessie-backports main
5656
+deb-src [trusted=yes] http://archive.debian.org/debian jessie-backports main
5757
+
5858
+deb [trusted=yes] http://security.debian.org/ jessie/updates main
5959
+deb-src [trusted=yes] http://security.debian.org/ jessie/updates main
6060
+
6161
+deb [trusted=yes] http://cdn-fastly.deb.debian.org/debian/ jessie main
6262
+deb-src [trusted=yes] http://cdn-fastly.deb.debian.org/debian/ jessie main
6363
+
6464
6565
6666
#### Force Debian jessie apt-get update
6767
# printf '%s\n' 'Acquire::Check-Valid-Until "false";' >/etc/apt/apt.conf.d/80use_expired_apt_repository
6868
# apt-get update
69+
# apt-get upgrade
6970
# apt-file update
7071
# apt-get -t jessie-backports update
7172
# apt-get -t jessie-backports upgrade
7273
7374

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at