⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buildmin-7.html

📁 讲述建立最小系统流程!!入门值得一看和一学
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>How To Build a Minimal Linux System from Source Code: SysVinit </TITLE> <LINK HREF="buildMin-8.html" REL=next> <LINK HREF="buildMin-6.html" REL=previous> <LINK HREF="buildMin.html#toc7" REL=contents></HEAD><BODY><A HREF="buildMin-8.html">Next</A><A HREF="buildMin-6.html">Previous</A><A HREF="buildMin.html#toc7">Contents</A><HR><H2><A NAME="s7">7. SysVinit </A></H2><P>Making and installing the SysVinit binaries is pretty straight forward. I'll just be lazy and give you the commands, assuming that you have unpacked and entered the SysVinit source code directory:<P><P><PRE> cd src make ROOT=/mnt/target make install</PRE><P><P>There are also a lot of scripts associated with <CODE>init</CODE>.There are example scripts with the SysVinit package, which work fine.But you have to install them manually. They are set up in a heirarchyunder <CODE>debian/etc</CODE> in the SysVinit source code tree. You canjust copy them straight across into the target <CODE>etc</CODE> directory,with something like <CODE>cd ../debian/etc; cp -r * /mnt/target/etc</CODE>.Obviously you will want to have a look before you copy them across!<P><P>Everything is in place now for the target kernel to load up <CODE>init</CODE>when we reboot. The problem this time should be that the scripts won'trun, becasue <CODE>bash</CODE> isn't there to interpret them. Also, <CODE>init</CODE>will try to run <CODE>getty</CODE>'s, but there is no <CODE>getty</CODE> for it to run.Reboot now and make sure there is nothing else wrong.<P><HR><A HREF="buildMin-8.html">Next</A><A HREF="buildMin-6.html">Previous</A><A HREF="buildMin.html#toc7">Contents</A></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -