1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
This commit is contained in:
Managor 2025-04-28 10:42:53 +03:00 committed by GitHub
parent c3a83389ee
commit f8e9e045fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,23 +9,23 @@
- 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 {{[-P|--allpresets]}}` `sudo mkinitcpio {{[-P|--allpresets]}}`
- Generate a ramdisk environment based on the `linux` preset: - Generate a ramdisk environment based on the `linux` preset:
`mkinitcpio {{[-p|--preset]}} {{linux}}` `sudo 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 {{[-p|--preset]}} {{linux-lts}}` `sudo mkinitcpio {{[-p|--preset]}} {{linux-lts}}`
- Generate an initramfs image using an alternative configuration file: - Generate an initramfs image using an alternative configuration file:
`mkinitcpio {{[-c|--config]}} {{path/to/mkinitcpio.conf}} {{[-g|--generate]}} {{path/to/initramfs.img}}` `sudo 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 {{[-k|--kernel]}} {{kernel_version}} {{[-g|--generate]}} {{path/to/initramfs.img}}` `sudo mkinitcpio {{[-k|--kernel]}} {{kernel_version}} {{[-g|--generate]}} {{path/to/initramfs.img}}`
- List all available hooks: - List all available hooks: