CONTENT
  • CHANGES
Szukaj
counter

#top mkinitrd


mkinitrd - creates initial ramdisk images for preloading modules

Powiązane:

SYNOPSIS
mkinitrd [--version] [-v] [-f]
[--preload=module] [--omit-scsi-modules]
[--omit-raid-modules] [--omit-lvm-modules]
[--with=module] [--image-version]
[--fstab=fstab] [--nocompress]
[--builtin=module] [--nopivot]
image kernel-version


DESCRIPTION



OPTIONS
--builtin=module
Act as if module is built into the kernel being used. mkinitrd will not look for this module, and will not emit an error if it does not exist. This option may be used multiple times.

-f
Allows mkinitrd to overwrite an existing image file.

--fstab=fstab
Use fstab to automatically determine what type of filesystem the root device is on. Normally, /etc/fstab is used.

--image-version
The kernel version number is appended to the initrd image path before the image is created.

--nocompress
Normally the created initrd image is compressed with gzip. If this option is specified, the compression is skipped.

--nopivot
Do not use the pivot_root system call as part of the initrd. This lets mkinitrd build proper images for Linux 2.2 kernels at the expense of some features. In particular, some filesystems (such as ext3) will not work properly and filesystem options will not be used to mount root. This option is not recommended, and will be removed in future versions.

--omit-lvm-modules
Do not load any lvm modules, even if /etc/fstab expects them.

--omit-raid-modules
Do not load any raid modules, even if /etc/fstab and /etc/raidtab expect them.

--omit-scsi-modules
Do not load any scsi modules, including 'scsi_mod' and 'sd_mod' modules, even if they are present. If the root partition is on a scsi device, mkinitrd will still include the necessary scsi modules to support that device.

--preload=module
Load the module module in the initial ramdisk image. The module gets loaded before any SCSI modules which are specified in /etc/modprobe.conf. This option may be used as many times as necessary.

-v
Prints out verbose information while creating the image (normally the mkinitrd runs silently).

--version
Prints the version of mkinitrd that's being used and then exits.

--with=module
Load the modules module in the initial ramdisk image. The module gets loaded after any SCSI modules which are specified in /etc/modprobe.conf. This option may be used as many times as necessary.



EXAMPLES
mkinitrd /boot/initramfs-2.6.18-128.el5.img 2.6.18-128.el5

mkinitrd /boot/initramfs-2.6.32-220.el6.img 2.6.32-220.el6
find: `/lib/modules/2.6.32-220.el6/': No such file or directory
find: `/lib/modules/2.6.32-220.el6/': No such file or directory
find: `/lib/modules/2.6.32-220.el6/': No such file or directory
find: `/lib/modules/2.6.32-220.el6/': No such file or directory
mkinitrd /boot/initramfs-2.6.32-220.el6.img 2.6.32-220.el6.i686




Zmodyfikowany ostatnio: 2014/05/15 09:59:09 (9 lat temu), textsize: 3,84 kB, htmlsize: 4,54 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników