Welcome 微信登录

首页 / 操作系统 / Linux / Gentoo中的系统初始化过程

Gentoo的init配置文件也是/etc/inittab,在该文件中前三行:id:3:initdefault:
si::sysinit:/sbin/rc sysinit
rc::bootwait:/sbin/rc boot 第一行:指定gentoo的默认运行级别是3,接下来两行表明gentoo的runlevel首先开始于sysinit,接着是boot。 Gentoo使用字符串,而非简单的数字标记运行级,有sysinit, boot, default, nonetwork, single, shutdown六个runlevel,简单明了。这些runlevel对应于/etc/runlevels/下的文件夹,每个文件夹中都是一些符号链接,指向/etc/init.d/下的脚本。系统启动的时候就是通过执行这些软连接启动相应的进程。如果想在开机时启动哪个进程,只需要将该进程的软连接添加到对应的/etc/runlevels/文件夹下即可。Gentoo提供了一个程序rc-update,可以很方便的管理启动项:#rc-update add xxx default
#rc-update del xxx default
#rc-update show 第一行将xxx启动项添加到default运行级,第二行从default runlevel中删除xxx,第三行查看现在的启动项。Ubuntu 11.04安装arm-linux-gcc-4.4.3使用 LVPM 将Wubi-Ubuntu桌面版复制到专有分区的方法相关资讯      Gentoo 
  • Gentoo LiveDVD “Choice Edition  (06月01日)
  • Gentoo:startx出现Failed to load   (12/23/2014 09:08:55)
  • Gentoo:startx出现Failed to load   (10/25/2014 12:10:49)
  • Gentoo: !!! existing preserved   (12/23/2014 09:10:23)
  • Gentoo: !!! existing preserved   (10/25/2014 12:14:27)
  • Gentoo桌面系统的安装  (02/26/2014 09:08:52)
本文评论 查看全部评论 (0)
表情: 姓名: 字数