X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fdoc%2Fschroot.mdwn;h=1da167851993b2faa4b32d352df56fdb89f1c6d5;hb=fc1c3cc3531af5ade302057d7caf6b0978d73532;hp=0f4776c0974ac61ae34ba8161173db5c7c2afb49;hpb=1d26a842959ffd0c5ecef2069140cd53f4d2be46;p=mirror%2Fdsa-wiki.git diff --git a/input/doc/schroot.mdwn b/input/doc/schroot.mdwn index 0f4776c..1da1678 100644 --- a/input/doc/schroot.mdwn +++ b/input/doc/schroot.mdwn @@ -10,13 +10,16 @@ When logging into Debian porterbox machine: * 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]: 
 	[..]
@@ -24,7 +27,7 @@ When logging into Debian porterbox machine:
 
 * Install your broken package build dependencies:
 

-	$ dd-schroot-cmd -c mysid apt-get build-dep gentoo
+	$ dd-schroot-cmd -c $sessionid apt-get build-dep gentoo
 	[..]
 	Do it for real [Y/n]: 
 	[..]
@@ -32,7 +35,7 @@ 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: @@ -43,7 +46,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:

 	(sid_arch-dchroot)user@porterbox:~$ exit
-	$ schroot -e -c mysid
+	$ schroot -e -c $sessionid
 	$ exit
 
@@ -51,7 +54,7 @@ When logging into Debian porterbox machine:

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