Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 1 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:

…
default_image="/boot/initramfs-linux.img"
…
fallback_image="/boot/initramfs-linux-fallback.img"
…

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

 
discard

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.