X-Git-Url: https://fred1m.tech/gitweb/papier-crayon.git/blobdiff_plain/11404f96bef69f08f89e5552f813f5ef84cfbcec..b946bd31e00a1bbc7dbfa51ea9847b2b4e81f349:/source/machine/FS-mmdebstrap.rst?ds=sidebyside diff --git a/source/machine/FS-mmdebstrap.rst b/source/machine/FS-mmdebstrap.rst index 5274ddc..3994bba 100644 --- a/source/machine/FS-mmdebstrap.rst +++ b/source/machine/FS-mmdebstrap.rst @@ -6,7 +6,9 @@ Gérer un emplacement pertinent *sans* super-privilège -:: +.. code-block:: bash + :linenos: + :emphasize-lines: 20,28 cd pwd @@ -34,9 +36,6 @@ Gérer un emplacement pertinent # respectons-nous ls -rtlh /var/lib/machines - # ln -s CIBLE NOM_LIEN - export NM=cnt0 ; ln -s /Chemin_Absolu/$NM /var/lib/machines/$NM - Initialiser un système de fichier supplémentaire ------------------------------------------------ @@ -51,11 +50,11 @@ Initialiser un système de fichier supplémentaire :: - export NM=cnt0 ; https_proxy=http://10.0.2.2:3128 mmdebstrap \ - bookworm . https://deb.debian.org/debian \ + http_proxy=http://172.20.100.242:3142 mmdebstrap \ + trixie . http://deb.debian.org/debian \ --include=systemd-container,network-manager,sudo,ca-certificates \ - --customize-hook='echo "$NM" > "$1"/etc/hostname' \ - --customize-hook='echo 127.0.1.1 "$NM" >> "$1"/etc/hosts' + --customize-hook='echo cnt0 > "$1"/etc/hostname' \ + --customize-hook='echo 127.0.1.1 cnt0 >> "$1"/etc/hosts' .. warning::