X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fdoc%2Fschroot.mdwn;h=874ebf514eda0a48c30fb373c99c9e9944ff1ccd;hb=042ad61a61320332ca48d42519d69ef266202925;hp=6266cc428b7968224f10ebda5c7e4a7a0c588105;hpb=7e639b510c06b270d0f9ac2f849f0b3843ccd626;p=mirror%2Fdsa-wiki.git diff --git a/input/doc/schroot.mdwn b/input/doc/schroot.mdwn index 6266cc4..874ebf5 100644 --- a/input/doc/schroot.mdwn +++ b/input/doc/schroot.mdwn @@ -1,16 +1,63 @@ using schroot in debian.org porterboxes ======================================= -Welcome to porterbox.debian.org, the Debian arch porterbox. +When logging into Debian porterbox machine: -See 'schroot -l' for a list of available chroots. Start new sessions -with 'schroot --begin-session -c ', run commands in sessions using -'schroot --run-session -c [-- command]', and tear down sessions -using 'schroot --end-session -c '. You can run a limited set of -privileged commands, for instance some of apt-get, using -'dd-schroot-cmd -c '. -Use 'schroot --list --all-sessions' or 'schroot-list-sessions []' -to list (your) open sessions. +* List available chroots: +

+	$ schroot -l
+
-This server is hosted at data centre. +* Set a session name: +

+	$ sessionid=sid-$USER-$RANDOM
+	$ echo "My session name is: $sessionid"
+
+* Begin a persistent schroot session on Debian unstable: +

+	$ schroot -b -c sid -n $sessionid
+
+ +* Update and upgrade Debian unstable chroot: +

+	$ dd-schroot-cmd -c $sessionid apt-get update
+	$ dd-schroot-cmd -c $sessionid apt-get upgrade
+	[..]
+	Do it for real [Y/n]: 
+	[..]
+
+ +* Install your broken package build dependencies: +

+	$ dd-schroot-cmd -c $sessionid apt-get build-dep gentoo
+	[..]
+	Do it for real [Y/n]: 
+	[..]
+
+ +* Change root to Debian unstable chroot: +

+	$ schroot -r -c $sessionid
+
+ +* Download your broken package source: +

+	(sid_arch-dchroot)user@porterbox:~$ apt-get source gentoo
+
+ +* 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: +

+	(sid_arch-dchroot)user@porterbox:~$ exit
+	$ schroot -e -c $sessionid
+	$ exit
+
+ +* List (your) open sessions: +

+	$ schroot --list --all-sessions
+or
+	$ schroot-list-sessions
+
+ +* You should be done by now. If you find any issue, please report to debian-admin@lists.debian.org.