Reword the schroot session ID listing commands for people new to schroot
[mirror/dsa-wiki.git] / input / doc / schroot.mdwn
index bc70955..e690a18 100644 (file)
@@ -3,8 +3,6 @@ using schroot in debian.org porterboxes
 
 When logging into Debian porterbox machine:
 
-The previous description is rather compact and dense, so let's try to describe the usage in more friendly way.
-
 * List available chroots:
 <pre><code>
        $ schroot -l
@@ -12,21 +10,24 @@ The previous description is rather compact and dense, so let's try to describe t
 
 * Begin a persistent schroot session on Debian unstable:
 <pre><code>
-       $ 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)
 </code></pre>
 
 * Update and upgrade Debian unstable chroot:
 <pre><code>
-       $ 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]: <Enter>
        [..]
 </code></pre>
 
-* Install your broken package build dependencies:
+* Install your build dependencies:
 <pre><code>
-       $ 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]: <Enter>
        [..]
@@ -34,26 +35,29 @@ The previous description is rather compact and dense, so let's try to describe t
 
 * Change root to Debian unstable chroot:
 <pre><code>
-       $ schroot -r -c mysid
+       $ schroot -r -c $sessionid
 </code></pre>
 
-* Download your broken package source:
+* Download your source:
 <pre><code>
-       (sid_arch-dchroot)user@porterbox:~$ apt-get source gentoo
+       (sid_arch-dchroot)user@porterbox:~$ apt-get source hello
 </code></pre>
 
 * 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:
 <pre><code>
        (sid_arch-dchroot)user@porterbox:~$ exit
-       $ schroot -e -c mysid
+       $ schroot -e -c $sessionid
        $ exit
 </code></pre>
 
-* List (your) open sessions:
+* List your currently open sessions:
+<pre><code>
+       $ schroot-list-sessions
+</code></pre>
+
+* List all currently open sessions:
 <pre><code>
        $ schroot --list --all-sessions
-or
-       $ schroot-list-sessions [<userglob>]
 </code></pre>
 
 * You should be done by now. If you find any issue, please report to debian-admin@lists.debian.org.