X-Git-Url: https://fred1m.tech/gitweb/papier-crayon.git/blobdiff_plain/11404f96bef69f08f89e5552f813f5ef84cfbcec..eee373facf244d022d20720a2574dae40316f4bd:/source/machine/FS-mmdebstrap.rst diff --git a/source/machine/FS-mmdebstrap.rst b/source/machine/FS-mmdebstrap.rst index 5274ddc..a1eeb58 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 @@ -29,34 +31,37 @@ Gérer un emplacement pertinent machinectl list-images export NM=cnt0 ; machinectl image-status $NM - # AVEC super-privilège +*AVEC* super-privilège + +.. code-block:: bash + :linenos: # 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 ------------------------------------------------ - *changer ``cnt0`` !* +.. warning:: + + changer ``cnt0`` ! :: $ help cd ; help pwd - $ pwd ; mkdir SiBesoin ; cd commeIlFaut **AVEC** super-privilège :: - export NM=cnt0 ; https_proxy=http://10.0.2.2:3128 mmdebstrap \ - bookworm . https://deb.debian.org/debian \ + pwd ; mkdir SiBesoin ; cd commeIlFaut + + 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:: +.. tip:: Prendre connaissance des affichages