Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| elearning:workbooks:lpic:11:500:l102 [2024/04/05 07:53] – admin | elearning:workbooks:lpic:11:500:l102 [2024/12/12 14:30] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 1053: | Ligne 1053: | ||
| ====Initramfs sous RHEL/CentOS 7==== | ====Initramfs sous RHEL/CentOS 7==== | ||
| - | Le fichier Initramfs //%%INITial Ram File System%%// | + | Copiez le fichier Initramfs //%%INITial Ram File System%%// |
| < | < | ||
| [root@centos7 ~]# cp / | [root@centos7 ~]# cp / | ||
| [root@centos7 ~]# cd /tmp | [root@centos7 ~]# cd /tmp | ||
| - | [root@centos7 tmp]# ls | ||
| - | custom | ||
| - | [root@centos7 tmp]# mv custom custom.gz | ||
| - | [root@centos7 tmp]# gunzip custom.gz | ||
| - | [root@centos7 tmp]# mkdir initramfs | ||
| - | [root@centos7 tmp]# cd initramfs | ||
| - | [root@centos7 initramfs]# cpio -cid -I ../custom | ||
| - | 113591 blocks | ||
| - | [root@centos7 initramfs]# ls | ||
| - | bin dev etc init lib lib64 proc root run sbin shutdown | ||
| - | [root@centos7 initramfs]# ls -l | ||
| - | total 4 | ||
| - | lrwxrwxrwx. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. 11 root root 520 Dec 4 11:00 etc | ||
| - | lrwxrwxrwx. | ||
| - | lrwxrwxrwx. | ||
| - | lrwxrwxrwx. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | lrwxrwxrwx. | ||
| - | -rwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| </ | </ | ||
| Ligne 1093: | Ligne 1065: | ||
| < | < | ||
| - | [root@centos7 initramfs]# cd .. | ||
| [root@centos7 tmp]# lsinitrd custom | more | [root@centos7 tmp]# lsinitrd custom | more | ||
| Image: custom: 56M | Image: custom: 56M | ||
| Ligne 2778: | Ligne 2749: | ||
| gpgkey=file:/// | gpgkey=file:/// | ||
| </ | </ | ||
| + | |||
| + | Depuis l'EOL de CentOS 7 , les dépôts ci-dessus ont été supprimés. Réparez donc les dépôts avec les commandes suivantes : | ||
| + | |||
| + | < | ||
| + | [root@centos7 ~]# sed -i ' | ||
| + | [root@centos7 ~]# sed -i ' | ||
| + | </ | ||
| + | |||
| ====Utilisation==== | ====Utilisation==== | ||