Update 2018

This commit is contained in:
nemunaire 2018-10-22 16:49:38 +02:00
commit b2b5c1c0eb
12 changed files with 197 additions and 185 deletions

View file

@ -16,7 +16,7 @@ commencer par créer le dossier de notre nouvelle racine :
<div lang="en-US">
```shell
mkdir newroot
mkdir newroot
```
</div>
@ -30,8 +30,8 @@ première isolation :
<div lang="en-US">
```shell
cp $(which busybox) newroot/
chroot newroot /busybox ash
cp $(which busybox) newroot/
chroot newroot /busybox ash
```
</div>
@ -40,9 +40,9 @@ Jusque là ... ça fonctionne, rien de surprenant ! Mais qu'en est-il pour
<div lang="en-US">
```shell
42sh$ cp $(which bash) newroot/
42sh# chroot newroot /bash
chroot: failed to run command bash: No such file or directory
42sh$ cp $(which bash) newroot/
42sh# chroot newroot /bash
chroot: failed to run command bash: No such file or directory
```
</div>
@ -58,7 +58,7 @@ l'utilisateur lors de l'installation) le système de base.
<div lang="en-US">
```shell
debootstrap jessie newroot/ http://httpredir.debian.org/debian/
debootstrap jessie newroot/ http://httpredir.debian.org/debian/
```
</div>
@ -67,13 +67,13 @@ debootstrap jessie newroot/ http://httpredir.debian.org/debian/
### *stage3*
Les distributions « à l'ancienne » proposent encore de télécharger leur système
Les distributions *à l'ancienne* proposent encore de télécharger leur système
de base sous forme de tarball :
<div lang="en-US">
```shell
wget ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/releases/amd64/autobuilds/20160929/stage3-amd64-20160929.tar.bz2
tar xpf stage3-amd64-*.tar.bz2 -C newroot/
wget http://gentoo.mirrors.ovh.net/gentoo-distfiles/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-20181021T214502Z.tar.xz
tar xpf stage3-amd64-*.tar.xz -C newroot/
```
</div>
@ -87,9 +87,9 @@ environnement qui tient dans 300 MB.
<div lang="en-US">
```shell
make escape
echo bar > ../foo
chroot .
make escape
echo bar > ../foo
chroot .
```
</div>
@ -97,7 +97,7 @@ Dans le nouvel environnement, vous ne devriez pas pouvoir faire :
<div lang="en-US">
```shell
cat ../foo
cat ../foo
```
</div>
@ -105,7 +105,7 @@ Mais une fois votre programme `escape` exécuté, vous devriez pouvoir !
<div lang="en-US">
```shell
./escape
cat /path/to/foo
./escape
cat /path/to/foo
```
</div>