Skip to content

Commit

Permalink
man/mkinitcio.8: Added examples to the manpage
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Linderud <morten@linderud.pw>
  • Loading branch information
Foxboron committed Apr 11, 2021
1 parent 4e9d263 commit 34be8f7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions man/mkinitcpio.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Options
or '/proc/cmdline'. Only used along with '--uefi'.

*-c, \--config* 'config'::
Use 'config' file to generate the ramdisk. Default: '/etc/mkinitcpio.conf'
Use 'config' file to generate the ramdisk. Default: '/etc/mkinitcpio.conf'.

*-d, \--generatedir* 'directory'::
Set 'directory' as the location where the initramfs is built. This might be
Expand Down Expand Up @@ -109,7 +109,7 @@ Options
*-r, \--moduleroot* 'root'::
Specifies the root directory to find modules in, defaulting to '/'.

*-R, \--osrelease* 'filename';;
*-R, \--osrelease* 'filename'::
Include a os-release file for the UEFI executable. Only used if '--uefi' is
specified. Default: '/etc/os-release' or '/usr/lib/os-release'.

Expand Down Expand Up @@ -383,6 +383,15 @@ Examples
Create an initial ramdisk for the kernel at /boot/vmlinuz-linux. The
resulting image will be written to /boot/initramfs-linux.img.
*mkinitcpio -g /boot/initramfs-linux.img -k /boot/vmlinuz-linux --uefi /efi/EFI/Linux/systemd-linux.efi*::
Create an initial ramdisk for the kernel along with a UEFI executable.
The resuling executable will be written to /efi/EFI/Linux/systemd-linux.efi.
*mkinitcpio -g /boot/initramfs-linux.img -k /boot/vmlinuz-linux -U /efi/EFI/Linux/systemd-linux.efi -M /boot/intel-ucode.img -l /usr/share/systemd/bootctl/splash-arch.bmp*::
Create an initial ramdisk for the kernel and an UEFI executable. This
also includes the Intel CPU microcode and a splash image which will be
used during boot.
See also
--------
A more thorough article on configuring mkinitcpio:
Expand Down

0 comments on commit 34be8f7

Please sign in to comment.