Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When you run something like mkinitcpio -p linux, where is the resulting file saved?

share|improve this question
up vote 2 down vote accepted

mkinitcpio's option -p stands for "preset". Therefore, the settings used when you give -p linux are defined in the file /etc/mkinitcpio.d/linux.preset:


This happens to be documented in the mkinitcpio(8) manual page:

-p, --preset preset

Build initramfs image(s) according to specified preset. This may be a file in /etc/mkinitcpio.d (without the .preset extension) or a full, absolute path to a file.

share|improve this answer

The -g or --generate filename arguments are used to indicate mkinitcpio to generate a CPIO image as filename.

share|improve this answer
What if the g option is not used? – user1301428 Dec 22 '12 at 11:19
If -g is not provided nothing will be written to the filesystem. – user181993 Dec 28 '12 at 12:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.