📄 buildmin-12.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: Towards Useability</TITLE> <LINK HREF="buildMin-13.html" REL=next> <LINK HREF="buildMin-11.html" REL=previous> <LINK HREF="buildMin.html#toc12" REL=contents></HEAD><BODY><A HREF="buildMin-13.html">Next</A><A HREF="buildMin-11.html">Previous</A><A HREF="buildMin.html#toc12">Contents</A><HR><H2><A NAME="s12">12. Towards Useability</A></H2><P>It might look like we have made a pretty useless system here. But really,there isn't that far to go before it can do some work. One of the firstthings you would have to do is have the root filesystem mount read-write.There is a script from the SysVinit package, in <CODE>/etc/init.d/mountall.sh</CODE>which does this, andissues a <CODE>mount -a</CODE> so that everything gets mounted the way you specify in <CODE>/etc/fstab</CODE>. Put a symlink called something like<CODE>S05mountall</CODE> to it in the target's <CODE>etc/rc2.d</CODE>. <P><P>You may find that this script will use commands that you haven't installed yet. If so, find the package that contains the commandsand install it. See section <A HREF="buildMin-13.html#finding">Random Tips</A> forclues on how to find packages.<P><P>Look at the other scripts in <CODE>/etc/init.d</CODE>. Most of them willneed to be included in any serious system. Add them in one at a time,make sure everthing is running smoothly before adding more.<P><P>Check the File Heirarchy Standard (see section <A HREF="buildMin-13.html#FHS">Filesystem</A>). It has lists of the commands that should be in <CODE>/bin</CODE> and<CODE>/sbin</CODE>. Make sure that you have all these commands installed.Even better, find the Posix documentation that specifies this stuff.<P><P>From there, it's really just a matter of throwing in more and more packagesuntil everything you want it there. The sooner you can put the build toolssuch as <CODE>gcc</CODE> and <CODE>make</CODE> in the better. Once that is done,you can use the target system to build itself, which is much less complicated.<P><HR><A HREF="buildMin-13.html">Next</A><A HREF="buildMin-11.html">Previous</A><A HREF="buildMin.html#toc12">Contents</A></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -