X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-wiki.git;a=blobdiff_plain;f=input%2Fdoc%2Fschroot.mdwn;h=52bd13a4cc01a40373c65cbf9e702abf9d6ed7cd;hp=bc70955bd9eb5dcf854b50af00f25d8a19bbb277;hb=21cabed49507fd529bafec66f7e70ac4dc446078;hpb=cf38429c046d9ea63212f88b6226e87a01c289f4 diff --git a/input/doc/schroot.mdwn b/input/doc/schroot.mdwn index bc70955..52bd13a 100644 --- a/input/doc/schroot.mdwn +++ b/input/doc/schroot.mdwn @@ -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:
$ 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:
- $ 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]:
[..]
-* Install your broken package build dependencies:
+* Install your 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]:
[..]
@@ -34,10 +35,10 @@ The previous description is rather compact and dense, so let's try to describe t
* Change root to Debian unstable chroot:
- $ schroot -r -c mysid
+ $ schroot -r -c $sessionid
-* Download your broken package source:
+* Download your source:
(sid_arch-dchroot)user@porterbox:~$ apt-get source gentoo
@@ -45,15 +46,15 @@ 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:
(sid_arch-dchroot)user@porterbox:~$ exit
- $ schroot -e -c mysid
+ $ schroot -e -c $sessionid
$ exit
* List (your) open sessions:
- $ schroot --list --all-sessions
+ $ schroot-list-sessions
or
- $ schroot-list-sessions []
+ $ schroot --list --all-sessions
* You should be done by now. If you find any issue, please report to debian-admin@lists.debian.org.