X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fdoc%2Fschroot.mdwn;h=f052c61ec1337bff961870f5f72b5d2683c9d8de;hb=f299792ce6099535da02bce03124b69ff4509566;hp=b0db69211f6bc03d6b50f6b5b703412d76766055;hpb=1ec9fd28b1c76e40b8b4fbcc50f13712157f8a4e;p=mirror%2Fdsa-wiki.git diff --git a/input/doc/schroot.mdwn b/input/doc/schroot.mdwn index b0db692..f052c61 100644 --- a/input/doc/schroot.mdwn +++ b/input/doc/schroot.mdwn @@ -8,50 +8,62 @@ When logging into Debian porterbox machine: $ schroot -l -* Begin a persistent schroot session on Debian unstable: +* Begin a persistent schroot session on Debian unstable (or in the case of backports replace sid with, for example, jessie-backports):

-	$ schroot -b -c sid -n mysid
+	# Pick your own session name:
+	$ echo -n "Session ID: " && read sessionid && schroot -b -c sid -n $sessionid
+	# or use a random one:
+	$ sessionid=$(schroot -b -c sid)
 
* Update and upgrade Debian unstable chroot:

-	$ dd-schroot-cmd -c mysid apt-get update
-	$ dd-schroot-cmd -c mysid apt-get upgrade
+	$ 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: +* Install your build dependencies:

-	$ dd-schroot-cmd -c mysid apt-get build-dep gentoo
+	$ dd-schroot-cmd -c $sessionid apt-get build-dep hello
 	[..]
 	Do it for real [Y/n]: 
 	[..]
 
+* In the case of backports, you can install a given package. You could use, for example: +

+	$ dd-schroot-cmd -c $sessionid apt-get install debhelper/jessie-backports
+	[..]
+
+ * Change root to Debian unstable chroot:

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

-	(sid_arch-dchroot)user@porterbox:~$ apt-get source gentoo
+	(sid_arch-dchroot)user@porterbox:~$ apt-get source hello
 
* 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 mysid
+	$ schroot -e -c $sessionid
 	$ exit
 
-* List (your) open sessions: +* List your currently open sessions:

-	$ schroot --list --all-sessions
-or
 	$ schroot-list-sessions
 
+* List all currently open sessions: +

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