LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2113|回复: 1

使用官方arch kernel包的要注意下

[复制链接]
发表于 2005-12-17 09:57:56 | 显示全部楼层 |阅读模式
刚在邮件列表看到的,我看大意应该是说以后kernel会使用基于initrd的内核,就是说你得在grub里面指定一下initrd才行,要不然起不来啦。可能testing和unstable的已经是这样了,将要把这样的kernel转移到current。所以可能有些人早就遇到这个情况了。

Hey everyone,

NOTE: This stuff only applies to people using the stock Arch 2.6 kernel.
Custom kernel users can ignore it.

The 2.6.14.3 kernel will be moving into Current real soon now, and there
are some changes in it.

Most of you are already aware of this, but for those that aren't: Arch
has moved to an initrd-based kernel, which is a more modular approach to
booting the kernel. The lower-level modules needed to see your root
filesystem (and thus boot the system) have been moved out of the kernel
and into modules. When the kernel boots, the initrd will load the
necessary modules, mount your root filesystem, and pass control to it so
the system can be booted as it normally is.

This means Arch can do a few things it couldn't do before (encrypted
root filesystems, for example). It also means we kernel maintainers have
an easier job of only managing a single kernel, one that be more
customized to all sorts of different hardware configurations.

Now, first things first -- the changes you have to make with this
upgrade. For most of you, there is only one change:

You have to add the initrd line to your bootloader's configuration file!
If you don't add this line, your system will not boot.

Here's an example. I use GRUB, this was my /boot/grub/menu.lst before
upgrade:


# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz26 root=/dev/hda3 vga=773 ro


To make the kernel use the initrd, I just add the initrd line that
points to the /boot/initrd26.img. It is the same path as your vmlinuz26
image.


# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz26 root=/dev/hda3 vga=773 ro
initrd /initrd26.img


(see the wiki page[1] for a LILO example)

That's it. The initrd is automatically generated with each kernel
upgrade, so you don't have to remember to do it each time. There is a
configuration file (/etc/mkinitrd.conf) that can be used to tweak the
contents of your initrd. The defaults are suitable for all IDE/SCSI/SATA
users, but you may want to tweak it further. Read the wiki page[1] to learn
about customizing your initrd. RAID users will need to see the wiki page[1]
about configuring their root RAID device in /etc/mkinitrd.conf.


- Judd


[1] http://wiki.archlinux.org/index.php/Initrd
发表于 2006-1-18 20:48:56 | 显示全部楼层
安装好后再安装GRUB不会出问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表