- # cat /etc/schroot/chroot.d/jessie-test-home-rmainz-proconos
- [jessie-test-home-rmainz-proconos]
- description=32bit test chroot for proconos
- aliases=test-32bit
- type=directory
- directory=/home/rmainz/work/proconos_chroot/try3/new_root_dir
- users=test001,rmainz,swulsch
- root-groups=root
- profile=desktop
- personality=linux
- preserve-environment=true
- # mkdir -p /home/rmainz/work/proconos_chroot/try3/new_root_dir
- # cd /home/rmainz/work/proconos_chroot/try3/new_root_dir
- # 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
- # cp -r /etc/autofs.conf /etc/auto.* etc/.
- # printf 'root:tiger12maus\n' | chpasswd -m --root $PWD
- #### run interactive shell within chroot environment
- # schroot -c jessie-test-home-rmainz-proconos -u root --directory / -- /bin/bash
- #### within chroot environment:
- # service autofs start # required so others have their home dir
- # dpkg-reconfigure locales
- #### edit /etc/apt/sources.list
- diff -u /etc/apt/sources.list.old /etc/apt/sources.list
- --- /etc/apt/sources.list.old 2023-01-09 15:01:39.579608530 +0000
- +++ /etc/apt/sources.list 2023-01-09 15:02:21.462900051 +0000
- @@ -1 +1,9 @@
- -deb http://deb.debian.org/debian jessie main
- +deb http://cdn-fastly.deb.debian.org/debian/ jessie main
- +deb-src http://cdn-fastly.deb.debian.org/debian/ jessie main
- +
- +deb http://security.debian.org/ jessie/updates main
- +deb-src http://security.debian.org/ jessie/updates main
- +
- +deb http://archive.debian.org/debian jessie-backports main
- +deb-src http://archive.debian.org/debian jessie-backports main
- +
- #### Force Debian jessie apt-get update
- # printf '%s\n' 'Acquire::Check-Valid-Until "false";' >/etc/apt/apt.conf.d/80use_expired_apt_repository
- # apt-get update
- #### Add autofs to chroot start:
- ---- snip ----
- # cat /etc/schroot/setup.d/71autofs
- #!/bin/sh
- set -e
- . "$SETUP_DATA_DIR/common-data"
- . "$SETUP_DATA_DIR/common-functions"
- . "$SETUP_DATA_DIR/common-config"
- if [ $STAGE = "setup-start" ] || [ $STAGE = "setup-recover" ]; then
- info "Starting services"
- chroot "$CHROOT_PATH" /usr/sbin/service autofs restart
- elif [ $STAGE = "setup-stop" ]; then
- true
- fi
- ---- snip ----
jessie 32bit/i386 chroot
Posted by Anonymous on Tue 10th Jan 2023 12:41
raw | new post
view followups (newest first): jessie 32bit/i386 chroot by Anonymous
modification of post by Anonymous (view diff)
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.