pastebin - collaborative debugging tool
rovema.kpaste.net RSS


jessie 32bit/i386 chroot
Posted by Anonymous on Thu 12th Jan 2023 10:59
raw | new post
view followups (newest first): jessie 32bit/i386 chroot by Anonymous
modification of post by Anonymous (view diff)

  1. # cat /etc/schroot/chroot.d/jessie-test-home-rmainz-debian_xorg_pkg_test2
  2. [jessie-test-home-rmainz-debian_xorg_pkg_test2]
  3. description=32bit test chroot for Xserver package work, try2
  4. #aliases=test-32bit
  5. type=directory
  6. directory=/home/rmainz/tmp/debian_xorg_pkg_test1/jessie_schroot2/root_dir/
  7. users=test001,rmainz,swulsch,mwenzel
  8. root-groups=root
  9. profile=desktop
  10. personality=linux
  11. preserve-environment=true
  12.  
  13.  
  14. # mkdir -p /home/rmainz/tmp/debian_xorg_pkg_test1/jessie_schroot2/root_dir/
  15. # cd /home/rmainz/tmp/debian_xorg_pkg_test1/jessie_schroot2/root_dir/
  16. # 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
  17. # cp -r /etc/autofs.conf /etc/auto.* etc/.
  18. # printf 'root:tiger12maus\n' | chpasswd -m --root $PWD
  19.  
  20.  
  21. #### Add autofs to chroot start:
  22. ---- snip ----
  23. # cat /etc/schroot/setup.d/71autofs
  24. #!/bin/sh
  25.  
  26. set -o errexit
  27.  
  28. . "$SETUP_DATA_DIR/common-data"
  29. . "$SETUP_DATA_DIR/common-functions"
  30. . "$SETUP_DATA_DIR/common-config"
  31.  
  32. if [ $STAGE = "setup-start" ] || [ $STAGE = "setup-recover" ]; then
  33.         [ -r "$CHROOT_PATH/etc/auto.home" ] && chroot "$CHROOT_PATH" /usr/sbin/service autofs restart
  34. elif [ $STAGE = "setup-stop" ]; then
  35.         true
  36. fi
  37. ---- snip ----
  38.  
  39.  
  40. #### run interactive shell within chroot environment
  41. # schroot -c jessie-test-home-rmainz-debian_xorg_pkg_test2 -u root --directory / -- /bin/bash
  42.  
  43.  
  44. #### within chroot environment:
  45. # service autofs start # required so others have their home dir
  46. # dpkg-reconfigure locales
  47.  
  48.  
  49. #### edit /etc/apt/sources.list
  50. # diff -u /etc/apt/sources.list.old /etc/apt/sources.list
  51. --- /etc/apt/sources.list.old   2023-01-12 10:31:30.886590771 +0000
  52. +++ /etc/apt/sources.list       2023-01-12 10:52:04.397174191 +0000
  53. @@ -1 +1,9 @@
  54. -deb http://deb.debian.org/debian jessie main
  55. +deb [trusted=yes] http://archive.debian.org/debian jessie-backports main
  56. +deb-src [trusted=yes] http://archive.debian.org/debian jessie-backports main
  57. +
  58. +deb [trusted=yes] http://security.debian.org/ jessie/updates main
  59. +deb-src [trusted=yes] http://security.debian.org/ jessie/updates main
  60. +
  61. +deb [trusted=yes] http://cdn-fastly.deb.debian.org/debian/ jessie main
  62. +deb-src [trusted=yes] http://cdn-fastly.deb.debian.org/debian/ jessie main
  63. +
  64.  
  65.  
  66. #### Force Debian jessie apt-get update
  67. # printf '%s\n' 'Acquire::Check-Valid-Until "false";' >/etc/apt/apt.conf.d/80use_expired_apt_repository
  68. # apt-get update
  69. # apt-file update
  70. # apt-get -t jessie-backports update
  71. # apt-get -t jessie-backports upgrade

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