1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

mkinitcpio

This commit is contained in:
Antti Savolainen 2025-04-27 17:10:32 +03:00
parent 63229711c7
commit ac890b68db

View file

@ -9,28 +9,28 @@
- Generate a ramdisk environment based on the `linux` preset: - Generate a ramdisk environment based on the `linux` preset:
`mkinitcpio --preset {{linux}}` `mkinitcpio {{[-p|--preset]}} {{linux}}`
- Generate a ramdisk environment based on the `linux-lts` preset: - Generate a ramdisk environment based on the `linux-lts` preset:
`mkinitcpio --preset {{linux-lts}}` `mkinitcpio {{[-p|--preset]}} {{linux-lts}}`
- Generate ramdisk environments based on all existing presets (used to regenerate all the initramfs images after a change in `/etc/mkinitcpio.conf`): - Generate ramdisk environments based on all existing presets (used to regenerate all the initramfs images after a change in `/etc/mkinitcpio.conf`):
`mkinitcpio --allpresets` `mkinitcpio {{[-P|--allpresets]}}`
- Generate an initramfs image using an alternative configuration file: - Generate an initramfs image using an alternative configuration file:
`mkinitcpio --config {{path/to/mkinitcpio.conf}} --generate {{path/to/initramfs.img}}` `mkinitcpio {{[-c|--config]}} {{path/to/mkinitcpio.conf}} {{[-g|--generate]}} {{path/to/initramfs.img}}`
- Generate an initramfs image for a kernel other than the one currently running (the installed kernel releases can be found in `/usr/lib/modules/`): - Generate an initramfs image for a kernel other than the one currently running (the installed kernel releases can be found in `/usr/lib/modules/`):
`mkinitcpio --kernel {{kernel_version}} --generate {{path/to/initramfs.img}}` `mkinitcpio {{[-k|--kernel]}} {{kernel_version}} {{[-g|--generate]}} {{path/to/initramfs.img}}`
- List all available hooks: - List all available hooks:
`mkinitcpio --listhooks` `mkinitcpio {{[-L|--listhooks]}}`
- Display help for a specific hook: - Display help for a specific hook:
`mkinitcpio --hookhelp {{hook_name}}` `mkinitcpio {{[-H|--hookhelp]}} {{hook_name}}`