schroot: set variable schroot session name
authorHéctor Orón Martínez <zumbi@debian.org>
Tue, 11 Mar 2014 12:16:03 +0000 (13:16 +0100)
committerHéctor Orón Martínez <zumbi@debian.org>
Tue, 11 Mar 2014 12:16:03 +0000 (13:16 +0100)
Signed-off-by: Héctor Orón Martínez <zumbi@debian.org>
input/doc/schroot.mdwn

index b0db692..307515d 100644 (file)
@@ -8,15 +8,21 @@ When logging into Debian porterbox machine:
        $ schroot -l
 </code></pre>
 
+* Set a session name:
+<pre><code>
+       $ mysid=sid$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>
        [..]
@@ -24,7 +30,7 @@ When logging into Debian porterbox machine:
 
 * 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>
        [..]
@@ -32,7 +38,7 @@ When logging into Debian porterbox machine:
 
 * Change root to Debian unstable chroot:
 <pre><code>
-       $ schroot -r -c mysid
+       $ schroot -r -c $mysid
 </code></pre>
 
 * Download your broken package source:
@@ -43,7 +49,7 @@ When logging into Debian porterbox machine:
 * 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>