Projet

Général

Profil

GitPackagingCreateSchroot » Historique » Version 5

Daniel Dehennin, 29/10/2013 14:40

1 1 Daniel Dehennin
La création du chroot en lui même est très simple mais nécessitera des
2 1 Daniel Dehennin
ajustements préalables décris ci-après en fonction du choix fait entre
3 1 Daniel Dehennin
@LVM@ et @btrfs@.
4 1 Daniel Dehennin
5 1 Daniel Dehennin
En assumant que le chroot doit être créer dans le répertoire
6 1 Daniel Dehennin
@/srv/chroot/${dist}-${arch}-sbuild/@, la commande pour installer le
7 1 Daniel Dehennin
chroot est la suivante :
8 1 Daniel Dehennin
9 1 Daniel Dehennin
<pre>
10 4 Daniel Dehennin
system@build:~$ sudo sbuild-createchroot --keyring /etc/apt/trusted.gpg.d/sbuild.gpg \
11 1 Daniel Dehennin
    --arch=${arch} \
12 1 Daniel Dehennin
    --components=main,restricted,universe,multiverse \
13 1 Daniel Dehennin
    --include=sudo \
14 1 Daniel Dehennin
    ${dist} \
15 1 Daniel Dehennin
    /srv/chroot/${dist}-${arch}-sbuild \
16 1 Daniel Dehennin
    http://eoleng.ac-dijon.fr/ubuntu
17 1 Daniel Dehennin
</pre>
18 1 Daniel Dehennin
19 1 Daniel Dehennin
L’utilisation de l’option @--components@ est importante pour la
20 1 Daniel Dehennin
résolution des dépendances.
21 5 Daniel Dehennin
22 5 Daniel Dehennin
h4. Démontage du système de fichier
23 5 Daniel Dehennin
24 5 Daniel Dehennin
<pre>
25 5 Daniel Dehennin
system@build:~$ sudo umount /srv/chroot/${dist}-${arch}-sbuild
26 5 Daniel Dehennin
</pre>