pastebin - collaborative debugging tool
rovema.kpaste.net RSS

Difference between
modified post 1fac by Anonymous on Thu 12th Jan 2023 10:59
original post 1aba90 by Anonymous on Tue 10th Jan 2023 18:42
Download diff
Show old version | new version | both versions

    
1-
# cat /etc/schroot/chroot.d/jessie-test-home-rmainz-proconos
1+
# cat /etc/schroot/chroot.d/jessie-test-home-rmainz-debian_xorg_pkg_test2
2-
[jessie-test-home-rmainz-proconos]
2+
[jessie-test-home-rmainz-debian_xorg_pkg_test2]
3-
description=32bit test chroot for proconos
3+
description=32bit test chroot for Xserver package work, try2
4-
aliases=test-32bit
4+
#aliases=test-32bit
55
type=directory
6-
directory=/home/rmainz/work/proconos_chroot/try3/new_root_dir
6+
directory=/home/rmainz/tmp/debian_xorg_pkg_test1/jessie_schroot2/root_dir/
7-
users=test001,rmainz,swulsch
7+
users=test001,rmainz,swulsch,mwenzel
88
root-groups=root
99
profile=desktop
1010
personality=linux
1111
preserve-environment=true
1212
17-
# printf 'root:tiger12maus\n' | chpasswd -m --root $PWD
1813
14+
# mkdir -p /home/rmainz/tmp/debian_xorg_pkg_test1/jessie_schroot2/root_dir/
1919
2220
21+
#### Add autofs to chroot start:
2325
24-
#### within chroot environment:
26+
set -o errexit
2727
28-
#### edit /etc/apt/sources.list
28+
. "$SETUP_DATA_DIR/common-data"
29-
 diff -u /etc/apt/sources.list.old /etc/apt/sources.list
29+
. "$SETUP_DATA_DIR/common-functions"
30-
--- /etc/apt/sources.list.old   2023-01-09 15:01:39.579608530 +0000
30+
. "$SETUP_DATA_DIR/common-config"
31-
+++ /etc/apt/sources.list       2023-01-09 15:02:21.462900051 +0000
31+
32-
@@ -1 +1,9 @@
32+
if [ $STAGE = "setup-start" ] || [ $STAGE = "setup-recover" ]; then
33-
-deb http://deb.debian.org/debian jessie main
33+
        [ -r "$CHROOT_PATH/etc/auto.home" ] && chroot "$CHROOT_PATH" /usr/sbin/service autofs restart
34-
+deb http://cdn-fastly.deb.debian.org/debian/ jessie main
34+
elif [ $STAGE = "setup-stop" ]; then
35-
+deb-src http://cdn-fastly.deb.debian.org/debian/ jessie main
35+
        true
36-
+
36+
fi
37-
+deb http://security.debian.org/ jessie/updates main
37+
---- snip ----
4338
47-
# apt-file update
4839
49-
#### Add autofs to chroot start:
40+
#### run interactive shell within chroot environment
50-
---- snip ----
41+
# schroot -c jessie-test-home-rmainz-debian_xorg_pkg_test2 -u root --directory / -- /bin/bash
5342
5543
56-
. "$SETUP_DATA_DIR/common-data"
44+
#### within chroot environment:
57-
. "$SETUP_DATA_DIR/common-functions"
45+
# service autofs start # required so others have their home dir
58-
. "$SETUP_DATA_DIR/common-config"
46+
# dpkg-reconfigure locales
5947
6648
67-
49+
#### edit /etc/apt/sources.list
68-
50+
# diff -u /etc/apt/sources.list.old /etc/apt/sources.list
69-
51+
--- /etc/apt/sources.list.old   2023-01-12 10:31:30.886590771 +0000
70-
52+
+++ /etc/apt/sources.list       2023-01-12 10:52:04.397174191 +0000
71-
53+
@@ -1 +1,9 @@
72-
54+
-deb http://deb.debian.org/debian jessie main
73-
55+
+deb [trusted=yes] http://archive.debian.org/debian jessie-backports main
74-
56+
+deb-src [trusted=yes] http://archive.debian.org/debian jessie-backports main
75-
57+
+
76-
58+
+deb [trusted=yes] http://security.debian.org/ jessie/updates main
77-
59+
+deb-src [trusted=yes] http://security.debian.org/ jessie/updates main
78-
60+
+
79-
61+
+deb [trusted=yes] http://cdn-fastly.deb.debian.org/debian/ jessie main
80-
62+
+deb-src [trusted=yes] http://cdn-fastly.deb.debian.org/debian/ jessie main
81-
63+
+
8264
8365
84-
66+
#### Force Debian jessie apt-get update
85-
67+
# printf '%s\n' 'Acquire::Check-Valid-Until "false";' >/etc/apt/apt.conf.d/80use_expired_apt_repository
86-
68+
# apt-get update
87-
69+
# apt-file update
88-
70+
# apt-get -t jessie-backports update
89-
71+
# apt-get -t jessie-backports upgrade
9072
9173

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