mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
sudo
This commit is contained in:
parent
c3a83389ee
commit
f8e9e045fd
1 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue