Include user in session name, and use - as separator
[mirror/dsa-wiki.git] / input / doc / schroot.mdwn
index bc70955..0a73222 100644 (file)
@@ -3,22 +3,26 @@ 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
 </code></pre>
 
+* Set a session name:
+<pre><code>
+       $ mysid=sid-$USER-$RANDOM
+       $ echo "My session name is: $mysid"
+</code></pre>
+
 * Begin a persistent schroot session on Debian unstable:
 <pre><code>
-       $ schroot -b -c sid -n mysid
+       $ schroot -b -c sid -n $mysid
 </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 $mysid apt-get update
+       $ dd-schroot-cmd -c $mysid apt-get upgrade
        [..]
        Do it for real [Y/n]: <Enter>
        [..]
@@ -26,7 +30,7 @@ The previous description is rather compact and dense, so let's try to describe t
 
 * Install your broken package build dependencies:
 <pre><code>
-       $ dd-schroot-cmd -c mysid apt-get build-dep gentoo
+       $ dd-schroot-cmd -c $mysid apt-get build-dep gentoo
        [..]
        Do it for real [Y/n]: <Enter>
        [..]
@@ -34,7 +38,7 @@ 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 $mysid
 </code></pre>
 
 * Download your broken package source:
@@ -45,7 +49,7 @@ The previous description is rather compact and dense, so let's try to describe t
 * 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 $mysid
        $ exit
 </code></pre>
 
@@ -53,7 +57,7 @@ The previous description is rather compact and dense, so let's try to describe t
 <pre><code>
        $ schroot --list --all-sessions
 or
-       $ schroot-list-sessions [<userglob>]
+       $ schroot-list-sessions
 </code></pre>
 
 * You should be done by now. If you find any issue, please report to debian-admin@lists.debian.org.