X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-wiki.git;a=blobdiff_plain;f=input%2Fdoc%2Fschroot.mdwn;h=e690a1841c64e44ce5411a7f876a262f98c88a45;hp=0a7322271459f7e295ebfec22129203cfcbcbae0;hb=eba3cc46986eda2324decd06afed3f78e9ec7864;hpb=6bcd301dacdf26e1bdc77a7b14596b78716771a0 diff --git a/input/doc/schroot.mdwn b/input/doc/schroot.mdwn index 0a73222..e690a18 100644 --- a/input/doc/schroot.mdwn +++ b/input/doc/schroot.mdwn @@ -8,29 +8,26 @@ When logging into Debian porterbox machine: $ schroot -l -* Set a session name: -

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

-	$ 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]: 
 	[..]
@@ -38,26 +35,29 @@ When logging into Debian porterbox machine:
 
 * 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.