Advertisement
ikorus

mkinit

Feb 2nd, 2025
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. # vim:set ft=sh
  2. # MODULES
  3. # The following modules are loaded before any boot hooks are
  4. # run. Advanced users may wish to specify all system modules
  5. # in this array. For instance:
  6. # MODULES=(usbhid xhci_hcd)
  7. MODULES=()
  8.  
  9. # BINARIES
  10. # This setting includes any additional binaries a given user may
  11. # wish into the CPIO image. This is run last, so it may be used to
  12. # override the actual binaries included by a given hook
  13. # BINARIES are dependency parsed, so you may safely ignore libraries
  14. BINARIES=()
  15.  
  16. # FILES
  17. # This setting is similar to BINARIES above, however, files are added
  18. # as-is and are not parsed in any way. This is useful for config files.
  19. FILES=()
  20.  
  21. # HOOKS
  22. # This is the most important setting in this file. The HOOKS control the
  23. # modules and scripts added to the image, and what happens at boot time.
  24. # Order is important, and it is recommended that you do not change the
  25. # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
  26. # help on a given hook.
  27. # 'base' is _required_ unless you know precisely what you are doing.
  28. # 'udev' is _required_ in order to automatically load modules
  29. # 'filesystems' is _required_ unless you specify your fs modules in MODULES
  30. # Examples:
  31. ## This setup specifies all modules in the MODULES setting above.
  32. ## No RAID, lvm2, or encrypted root is needed.
  33. # HOOKS=(base)
  34. #
  35. ## This setup will autodetect all modules for your system and should
  36. ## work as a sane default
  37. # HOOKS=(base udev autodetect modconf block filesystems fsck)
  38. #
  39. ## This setup will generate a 'full' image which supports most systems.
  40. ## No autodetection is done.
  41. # HOOKS=(base udev modconf block filesystems fsck)
  42. #
  43. ## This setup assembles a mdadm array with an encrypted root file system.
  44. ## Note: See 'mkinitcpio -H mdadm_udev' for more information on RAID devices.
  45. # HOOKS=(base udev modconf keyboard keymap consolefont block mdadm_udev encrypt filesystems fsck)
  46. #
  47. ## This setup loads an lvm2 volume group.
  48. # HOOKS=(base udev modconf block lvm2 filesystems fsck)
  49. #
  50. ## This will create a systemd based initramfs which loads an encrypted root filesystem.
  51. # HOOKS=(base systemd autodetect modconf kms keyboard sd-vconsole sd-encrypt block filesystems fsck)
  52. #
  53. ## NOTE: If you have /usr on a separate partition, you MUST include the
  54. # usr and fsck hooks.
  55.  
  56.  
  57. #kms was between modconf and keyboard
  58. HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont numlock block filesystems fsck)
  59.  
  60. # COMPRESSION
  61. # Use this to compress the initramfs image. By default, zstd compression
  62. # is used for Linux ≥ 5.9 and gzip compression is used for Linux < 5.9.
  63. # Use 'cat' to create an uncompressed image.
  64. #COMPRESSION="zstd"
  65. #COMPRESSION="gzip"
  66. #COMPRESSION="bzip2"
  67. #COMPRESSION="lzma"
  68. #COMPRESSION="xz"
  69. #COMPRESSION="lzop"
  70. #COMPRESSION="lz4"
  71.  
  72. # COMPRESSION_OPTIONS
  73. # Additional options for the compressor
  74. #COMPRESSION_OPTIONS=()
  75.  
  76. # MODULES_DECOMPRESS
  77. # Decompress loadable kernel modules and their firmware during initramfs
  78. # creation. Switch (yes/no).
  79. # Enable to allow further decreasing image size when using high compression
  80. # (e.g. xz -9e or zstd --long --ultra -22) at the expense of increased RAM usage
  81. # at early boot.
  82. # Note that any compressed files will be placed in the uncompressed early CPIO
  83. # to avoid double compression.
  84. #MODULES_DECOMPRESS="no"
  85.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement