|
|
发表于 2007-5-2 00:01:26
|
显示全部楼层
制作initrd.gz不是用mkinitrd这个命令么?
我的还不到300kb。
如果你有mkinitrd这个命令的话,建议你可以试试啊。
- 3. How do I build the initrd?
- The easiest way to make the initrd is to use the mkinitrd script included
- in Slackware's mkinitrd package. We'll walk through the process of
- upgrading to the 2.6.13 Linux kernel using the packages found in
- Slackware's testing/packages/linux-2.6.13/ directory.
- First, make sure the kernel, kernel modules, and mkinitrd package are
- installed (the current version numbers might be a little different, so
- this is just an example):
- installpkg kernel-generic-2.6.13-i486-1.tgz
- installpkg kernel-modules-2.6.13-i486-1.tgz
- installpkg mkinitrd-1.0.1-i486-1.tgz
- Change into the /boot directory:
- cd /boot
- Now you'll want to run "mkinitrd". I'm using reiserfs for my root
- filesystem, and since it's an IDE system the reiserfs module will be
- the only one I need to load:
- mkinitrd -c -k 2.6.13 -m reiserfs
- This should do two things. First, it will create a directory
- /boot/initrd-tree containing the initrd's filesystem. Then it will
- create an initrd (/boot/initrd.gz) from this tree. If you wanted to,
- you could make some additional changes in /boot/initrd-tree/ and
- then run mkinitrd again without options to rebuild the image. That's
- optional, though, and only advanced users will need to think about that.
- Here's another example: Build an initrd image using Linux 2.6.13
- kernel modules for a system with an ext3 root partition on /dev/hdb3.
- Note that you need both the jbd and ext3 modules to use ext3:
- mkinitrd -c -k 2.6.13 -m jbd:ext3 -f ext3 -r /dev/hdb3
复制代码 |
|