|
|

楼主 |
发表于 2005-11-10 14:15:50
|
显示全部楼层
通过认真阅读系统/etc/rc.d目录下的启动脚本,得出解决方如下
由于startx时,需要/root目录下的文件,和系统启动时还需要修改/etc和/var下的某些文件
这样我们可以在mountfs中加入:
mount -n -t tmpfs -o size=16m tmpfs /tmp
cp -a /etc /tmp
mount -n --bind /tmp/etc /etc
cp -a /var /tmp
mount -n --bind /tmp/var /var
cp -a /root /tmp
mount -n --bind /tmp/root /root
同时,注销/etc/rc.d/init.d/mountfs中的remount命令
另外注销cleanfs中的rm命令
重新启动即可,再次谢谢大家 |
|