X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-wiki.git;a=blobdiff_plain;f=input%2Fdoc%2Fschroot.mdwn;h=38fb83f4a264cefd10167c9f014fa8d82a7e94c6;hp=874ebf514eda0a48c30fb373c99c9e9944ff1ccd;hb=a1c7d4782d4c18535bffcc8f9cf6852da6aba9c6;hpb=042ad61a61320332ca48d42519d69ef266202925 diff --git a/input/doc/schroot.mdwn b/input/doc/schroot.mdwn index 874ebf5..38fb83f 100644 --- a/input/doc/schroot.mdwn +++ b/input/doc/schroot.mdwn @@ -8,15 +8,12 @@ When logging into Debian porterbox machine: $ schroot -l -* Set a session name: -

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

-	$ schroot -b -c sid -n $sessionid
+	# 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: @@ -28,9 +25,9 @@ When logging into Debian porterbox machine: [..] -* Install your broken package build dependencies: +* Install your build dependencies:

-	$ dd-schroot-cmd -c $sessionid apt-get build-dep gentoo
+	$ dd-schroot-cmd -c $sessionid apt-get build-dep hello
 	[..]
 	Do it for real [Y/n]: 
 	[..]
@@ -41,9 +38,9 @@ When logging into Debian porterbox machine:
 	$ 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: @@ -55,9 +52,9 @@ When logging into Debian porterbox machine: * List (your) open sessions:

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