]> git.ipfire.org Git - thirdparty/dracut.git/commit - dracut
dracut: add --kernel-only and --no-kernel arguments
authorHarald Hoyer <harald@eeepc.(none)>
Wed, 22 Jul 2009 10:43:26 +0000 (12:43 +0200)
committerHarald Hoyer <harald@eeepc.(none)>
Wed, 22 Jul 2009 13:07:11 +0000 (15:07 +0200)
commit33ee031c4ac32b113d0319f082d426139c48990c
tree4bb1f5bb824b70e0939299b2105929e2d21617fb
parentf24a2d46b73993e79967a7a0cd9afe8222ba7f36
dracut: add --kernel-only and --no-kernel arguments

       --kernel-only
              only install kernel drivers and firmware files

       --no-kernel
              do not install kernel drivers and firmware files

All kernel module related install commands moved from "install"
to "installkernel".

For "--kernel-only" all installkernel scripts of the specified
modules are used, regardless of any checks, so that all modules
which might be needed by any dracut generic image are in.

The basic idea is to create two images. One image with the kernel
modules and one without. So if the kernel changes, you only have
to replace one image.

Grub and the kernel can handle multiple images, so grub entry can
look like this:

title Fedora (2.6.29.5-191.fc11.i586)
        root (hd0,0)
        kernel /vmlinuz-2.6.29.5-191.fc11.i586 ro rhgb quiet
        initrd /initrd-20090722.img
        initrd /initrd-kernel-2.6.29.5-191.fc11.i586.img
        initrd /initrd-config.img

initrd-20090722.img
  the image provided by the initrd rpm
  one old backup version is kept like with the kernel

initrd-kernel-2.6.29.5-191.fc11.i586.img
  the image provided by the kernel rpm

initrd-config.img
  optional image with local configuration files
22 files changed:
Makefile
README.kernel [new file with mode: 0644]
dracut
dracut-functions
dracut.8
dracut.spec
modules.d/40network/install
modules.d/40network/installkernel [new file with mode: 0755]
modules.d/50plymouth/install
modules.d/50plymouth/installkernel [new file with mode: 0755]
modules.d/90crypt/install
modules.d/90crypt/installkernel [new file with mode: 0755]
modules.d/90kernel-modules/install
modules.d/90kernel-modules/installkernel [new file with mode: 0755]
modules.d/90mdraid/install
modules.d/90mdraid/installkernel [new file with mode: 0755]
modules.d/95iscsi/install
modules.d/95iscsi/installkernel [new file with mode: 0755]
modules.d/95nbd/install
modules.d/95nbd/installkernel [new file with mode: 0755]
modules.d/95nfs/install
modules.d/95nfs/installkernel [new file with mode: 0755]