pastebin - collaborative debugging tool
rovema.kpaste.net RSS

Difference between
modified post aa by Anonymous on Tue 10th Jan 2023 14:15
original post ca7609 by Anonymous on Tue 10th Jan 2023 12:53
Download diff
Show old version | new version | both versions

    
11
# cat /etc/schroot/chroot.d/jessie-test-home-rmainz-proconos
22
[jessie-test-home-rmainz-proconos]
33
description=32bit test chroot for proconos
44
aliases=test-32bit
55
type=directory
66
directory=/home/rmainz/work/proconos_chroot/try3/new_root_dir
77
users=test001,rmainz,swulsch
88
root-groups=root
99
profile=desktop
1010
personality=linux
1111
preserve-environment=true
1212
1313
# mkdir -p /home/rmainz/work/proconos_chroot/try3/new_root_dir
1414
# cd /home/rmainz/work/proconos_chroot/try3/new_root_dir
15-
# debootstrap --arch i386 '--include=autofs,emacs,nedit,x11-apps,strace,ltrace,locales,task-german,task-japanese,nfs-common,nfs4-acl-tools,vim,ksh,xterm,w3m,lynx' --no-check-gpg jessie $PWD http://deb.debian.org/debian
15+
# debootstrap --arch i386 '--include=autofs,emacs,nedit,x11-apps,strace,ltrace,locales,task-german,task-japanese,nfs-common,nfs4-acl-tools,vim,ksh,xterm,w3m,lynx,apt-file,gdb' --no-check-gpg jessie $PWD http://deb.debian.org/debian
1616
# cp -r /etc/autofs.conf /etc/auto.* etc/.
1717
# printf 'root:tiger12maus\n' | chpasswd -m --root $PWD
1818
1919
2020
#### run interactive shell within chroot environment
2121
# schroot -c jessie-test-home-rmainz-proconos -u root --directory / -- /bin/bash
2222
2323
2424
#### within chroot environment:
2525
# service autofs start # required so others have their home dir
2626
# dpkg-reconfigure locales
2727
2828
#### edit /etc/apt/sources.list
2929
 diff -u /etc/apt/sources.list.old /etc/apt/sources.list
3030
--- /etc/apt/sources.list.old   2023-01-09 15:01:39.579608530 +0000
3131
+++ /etc/apt/sources.list       2023-01-09 15:02:21.462900051 +0000
3232
@@ -1 +1,9 @@
3333
-deb http://deb.debian.org/debian jessie main
3434
+deb http://cdn-fastly.deb.debian.org/debian/ jessie main
3535
+deb-src http://cdn-fastly.deb.debian.org/debian/ jessie main
3636
+
3737
+deb http://security.debian.org/ jessie/updates main
3838
+deb-src http://security.debian.org/ jessie/updates main
3939
+
4040
+deb http://archive.debian.org/debian jessie-backports main
4141
+deb-src http://archive.debian.org/debian jessie-backports main
4242
+
4343
4444
#### Force Debian jessie apt-get update
4545
# printf '%s\n' 'Acquire::Check-Valid-Until "false";' >/etc/apt/apt.conf.d/80use_expired_apt_repository
4646
# apt-get update
47+
# apt-file update
4748
4849
#### Add autofs to chroot start:
4950
---- snip ----
5051
# cat /etc/schroot/setup.d/71autofs
5152
#!/bin/sh
5253
5354
set -e
5455
5556
. "$SETUP_DATA_DIR/common-data"
5657
. "$SETUP_DATA_DIR/common-functions"
5758
. "$SETUP_DATA_DIR/common-config"
5859
5960
if [ $STAGE = "setup-start" ] || [ $STAGE = "setup-recover" ]; then
6061
        [ -r "$CHROOT_PATH/etc/auto.home" ] && chroot "$CHROOT_PATH" /usr/sbin/service autofs restart
6162
elif [ $STAGE = "setup-stop" ]; then
6263
        true
6364
fi
6465
---- snip ----
6566
6667
6768

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