Difference between
modified post ca7609 by Anonymous on Tue 10th Jan 2023 12:53
original post 5d7f26f46 by Anonymous on Tue 10th Jan 2023 12:41
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | # cat /etc/schroot/chroot.d/jessie-test-home-rmainz-proconos | |
| 2 | 2 | [jessie-test-home-rmainz-proconos] | |
| 3 | 3 | description=32bit test chroot for proconos | |
| 4 | 4 | aliases=test-32bit | |
| 5 | 5 | type=directory | |
| 6 | 6 | directory=/home/rmainz/work/proconos_chroot/try3/new_root_dir | |
| 7 | 7 | users=test001,rmainz,swulsch | |
| 8 | 8 | root-groups=root | |
| 9 | 9 | profile=desktop | |
| 10 | 10 | personality=linux | |
| 11 | 11 | preserve-environment=true | |
| 12 | 12 | ||
| 13 | 13 | # mkdir -p /home/rmainz/work/proconos_chroot/try3/new_root_dir | |
| 14 | 14 | # cd /home/rmainz/work/proconos_chroot/try3/new_root_dir | |
| 15 | 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 | |
| 16 | 16 | # cp -r /etc/autofs.conf /etc/auto.* etc/. | |
| 17 | 17 | # printf 'root:tiger12maus\n' | chpasswd -m --root $PWD | |
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | 20 | #### run interactive shell within chroot environment | |
| 21 | 21 | # schroot -c jessie-test-home-rmainz-proconos -u root --directory / -- /bin/bash | |
| 22 | 22 | ||
| 23 | 23 | ||
| 24 | 24 | #### within chroot environment: | |
| 25 | 25 | # service autofs start # required so others have their home dir | |
| 26 | 26 | # dpkg-reconfigure locales | |
| 27 | 27 | ||
| 28 | 28 | #### edit /etc/apt/sources.list | |
| 29 | 29 | diff -u /etc/apt/sources.list.old /etc/apt/sources.list | |
| 30 | 30 | --- /etc/apt/sources.list.old 2023-01-09 15:01:39.579608530 +0000 | |
| 31 | 31 | +++ /etc/apt/sources.list 2023-01-09 15:02:21.462900051 +0000 | |
| 32 | 32 | @@ -1 +1,9 @@ | |
| 33 | 33 | -deb http://deb.debian.org/debian jessie main | |
| 34 | 34 | +deb http://cdn-fastly.deb.debian.org/debian/ jessie main | |
| 35 | 35 | +deb-src http://cdn-fastly.deb.debian.org/debian/ jessie main | |
| 36 | 36 | + | |
| 37 | 37 | +deb http://security.debian.org/ jessie/updates main | |
| 38 | 38 | +deb-src http://security.debian.org/ jessie/updates main | |
| 39 | 39 | + | |
| 40 | 40 | +deb http://archive.debian.org/debian jessie-backports main | |
| 41 | 41 | +deb-src http://archive.debian.org/debian jessie-backports main | |
| 42 | 42 | + | |
| 43 | 43 | ||
| 44 | 44 | #### Force Debian jessie apt-get update | |
| 45 | 45 | # printf '%s\n' 'Acquire::Check-Valid-Until "false";' >/etc/apt/apt.conf.d/80use_expired_apt_repository | |
| 46 | 46 | # apt-get update | |
| 47 | 47 | ||
| 48 | 48 | #### Add autofs to chroot start: | |
| 49 | 49 | ---- snip ---- | |
| 50 | 50 | # cat /etc/schroot/setup.d/71autofs | |
| 51 | 51 | #!/bin/sh | |
| 52 | 52 | ||
| 53 | 53 | set -e | |
| 54 | 54 | ||
| 55 | 55 | . "$SETUP_DATA_DIR/common-data" | |
| 56 | 56 | . "$SETUP_DATA_DIR/common-functions" | |
| 57 | 57 | . "$SETUP_DATA_DIR/common-config" | |
| 58 | 58 | ||
| 59 | 59 | if [ $STAGE = "setup-start" ] || [ $STAGE = "setup-recover" ]; then | |
| 60 | + | [ -r "$CHROOT_PATH/etc/auto.home" ] && chroot "$CHROOT_PATH" /usr/sbin/service autofs restart | |
| 60 | 65 | ||
| 62 | 66 | ||
| 64 | 67 | ||
| 65 | - | elif [ $STAGE = "setup-stop" ]; then | |
| 68 | + | ||
| 66 | - | true | |
| 69 | + | ||
| 67 | - | fi | |
| 70 | + | ||
| 68 | - | ---- snip ---- | |
| 71 | + | ||
| 69 | 72 | ||
| 70 | 73 | ||
| 71 | 74 |
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.
rovema.kpaste.net RSS