1 using schroot in debian.org porterboxes
2 =======================================
4 When logging into Debian porterbox machine:
6 * List available chroots:
11 * Begin a persistent schroot session on Debian unstable (or in the case of backports replace sid with, for example, jessie-backports):
13 # Pick your own session name:
14 $ echo -n "Session ID: " && read sessionid && schroot -b -c sid -n $sessionid
15 # or use a random one:
16 $ sessionid=$(schroot -b -c sid)
19 * Update and upgrade Debian unstable chroot:
21 $ dd-schroot-cmd -c $sessionid apt-get update
22 $ dd-schroot-cmd -c $sessionid apt-get upgrade
24 Do it for real [Y/n]: <Enter>
28 * Install your build dependencies:
30 $ dd-schroot-cmd -c $sessionid apt-get build-dep hello
32 Do it for real [Y/n]: <Enter>
36 * In the case of backports, you can install a given package. You could use, for example:
38 $ dd-schroot-cmd -c $sessionid apt-get install debhelper/jessie-backports
42 * Change root to Debian unstable chroot:
44 $ schroot -r -c $sessionid
47 * Download your source:
49 (sid_arch-dchroot)user@porterbox:~$ apt-get source hello
52 * You should be able to reproduce your issue, hack on the package, fix the bug. Once you are done with your work, please, finish your schroot session:
54 (sid_arch-dchroot)user@porterbox:~$ exit
55 $ schroot -e -c $sessionid
59 * List your currently open sessions:
61 $ schroot-list-sessions
64 * List all currently open sessions:
66 $ schroot --list --all-sessions
69 * You should be done by now. If you find any issue, please report to debian-admin@lists.debian.org.