Différences
Ci-dessous, les différences entre deux révisions de la page.
| infrastructure:virtualisation:vms:debian:post-install-durcissement [01/11/2020 15:51] – créée Stéphane Paillet | infrastructure:virtualisation:vms:debian:post-install-durcissement [01/11/2020 16:30] (Version actuelle) – Stéphane Paillet | ||
|---|---|---|---|
| Ligne 4: | Ligne 4: | ||
| Une fois l' | Une fois l' | ||
| - | À venir. | + | ===== Hooks APT ===== |
| + | Afin de pouvoir repasser les partitions /boot et /usr en read / write, et la partion /tmp en exec lors de l' | ||
| + | |||
| + | Nous créons le fichier 00apt | ||
| + | < | ||
| + | # vi / | ||
| + | </ | ||
| + | |||
| + | Nous y ajoutons ceci | ||
| + | < | ||
| + | DPkg:: | ||
| + | "mount -o remount,rw / | ||
| + | "mount -o remount,rw / | ||
| + | "mount -o remount, | ||
| + | }; | ||
| + | DPkg:: | ||
| + | "mount -o remount,ro / | ||
| + | "mount -o remount,ro / | ||
| + | "mount -o remount, | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | ===== Fstab ===== | ||
| + | Nous éditons le fichier fstab | ||
| + | < | ||
| + | # vi / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | # /etc/fstab: static file system information. | ||
| + | # | ||
| + | # Use ' | ||
| + | # device; this may be used with UUID= as a more robust way to name devices | ||
| + | # that works even if disks are added and removed. See fstab(5). | ||
| + | # | ||
| + | # <file system> | ||
| + | / | ||
| + | # /boot was on /dev/sda1 during installation | ||
| + | UUID=8077782c-de8c-4850-88ca-d93a1b706979 /boot | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | /tmp / | ||
| + | / | ||
| + | </ | ||