Linux Commands Examples

A great documentation place for Linux commands

update-initramfs

generate an initramfs image


see also : mkinitramfs

Synopsis

update-initramfs -c|-d|-u [-k version] [-t] [-v] [-b] [-h]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0

Update the initramfs of the newest kernel:

update-initramfs -u

Create the initramfs for a specific kernel:

update-initramfs -c -k 2.6.18-1-686


description

The update-initramfs script manages your initramfs images on your local box. It keeps track of the existing initramfs archives in /boot. There are three modes of operation create, update or delete. You must at least specify one of those modes.

The initramfs is a gzipped cpio archive. At boot time, the kernel unpacks that archive into RAM disk, mounts and uses it as initial root file system. All finding of the root device happens in this early userspace.

options

-k version

Set the specific kernel version for whom the initramfs will be generated. For example the output of uname -r for your currently running kernel. This argument is optional for update. The default is the latest kernel version.

The use of "all" for the version string specifies update-initramfs to execute the chosen action for all kernel versions, that are already known to update-initramfs.

-c

This mode creates a new initramfs.

-u

This mode updates an existing initramfs.

-d

This mode removes an existing initramfs.

-t

Allows one to take over an custom initramfs with a newer one.

-v

This option increases the amount of information you are given during the chosen action.

-b

Set an different bootdir for the image creation.

-h

Print a short help page describing the available options in update-initramfs.

files

/etc/initramfs-tools/update-initramfs.conf


see also

initramfs.conf, initramfs-tools, mkinitramfs .


author

The initramfs-tools are written by Maximilian Attems <maks[:at:]debian[:dot:]org>, Jeff Bailey <jbailey[:at:]raspberryginger[:dot:]com> and numerous others.

How can this site be more helpful to YOU ?


give  feedback