QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5359|回复: 10

制作属于自己发行版的LiveCD

[复制链接]
发表于 2006-3-4 21:24:13 | 显示全部楼层 |阅读模式
制作属于自己发行版的LiveCD

SLAX是基于slackware的,但是并非每个Linuxfans都喜欢使用slackware,要是使用其它发行版能行吗?毫无疑问答案是肯定的,slax用的linux-live scripts 仅仅是一组脚本而已,在所有的linux系统下都可以运行,而且使用起来越来越简单。不过运行前需要注意点事项:

1.        下载适合自己的内核的脚本;因为下载的linux-live脚本已经预编译了对应内核的模块和busybox,当然你也可以自己编译自己系统对应的内核版本的模块。需要编译的项目是给内核打squashfs文件系统的补丁和squashfs文件系统的压缩工具;还有unionfs文件系统。最新版本5.1.8版本,包含了2.6.13.2内核的预编译模块,同时内核和所有的模块也提供下载。
2.        系统必须要安装ash,LiveCD的启动脚本由它执行;
3.        系统/usr/bin/或 /usr/sbin/下必须有chroot命令;
4.        修改系统,使得系统不去检测根目录的状态,不管是否为只读还是读写状态;
5.        使用内核必须确保将以下选项已经编译进去:
     - ext2 (CONGIG_EXT2_FS=y)
     - tmpfs (CONFIG_TMPFS=y)
     - ramdisk (CONFIG_BLK_DEV_RAM=y)
     - initrd (CONFIG_BLK_DEV_INITRD=y)
     - loop
     - isofs
    如果想要运行在USB设备上还需要将USB相关选项编译进内核:
-        ehci-hcd, ohci-hcd, uhci-hcd, usb-storage

修改定制好系统后,将linux-live脚本解压到/tmp下运行./install 安装脚本,然后再运行./runme.sh 就可以在/tmp下等自己的LiveCD了出炉了,是不是非常的简单?如果运行中出现问题可以到SLAX的论坛中http://slax.linux-live.org/forum 寻求解决办法。


相关链接:
lnux-live脚本主页:  www.linux-live.org
slax livecd 下载: www.slax.org
fanx livecd 下载:  http://www.linuxsky.net/fanx/download/
linux-live 下载地:  http://ftp.linux.cz/pub/linux/slax/Linux-Live/
squashfs    http://squashfs.sourceforge.net/
unionfs      http://www.unionfs.org/
slackware  http://www.slackware.com
kernel         http://www.kernel.org


正因为使用linux-live脚本可以方便快捷地创建属于自己的livecd,所以现在公开发布的livecd中有很大一部分都采用了这组脚本。具体可查找本栏目。
发表于 2006-3-5 15:16:17 | 显示全部楼层
回复

使用道具 举报

发表于 2006-3-9 15:57:47 | 显示全部楼层
4是怎么做的?
回复

使用道具 举报

 楼主| 发表于 2006-3-15 10:04:35 | 显示全部楼层
2.6系列是用的 unionfs和squashfs和udev的组合
2.4系列用的是ovlfs和cramsfs和devfsd的组合

需求的是
To be able to create a Linux Live CD
  you will need to meet all the following requirements:

   * all the following things must be compiled directly into kernel:
     - devfs (CONFIG_DEVFS_FS=y)
     - ext2 (CONGIG_EXT2_FS=y)
     - tmpfs (CONFIG_TMPFS=y)
     - loop device (CONFIG_BLK_DEV_LOOP=y)
     - ramdisk (CONFIG_BLK_DEV_RAM=y)
     - initrd (CONFIG_BLK_DEV_INITRD=y)
     - iso filesystem (CONFIG_ISO9660_FS=y)
     -  with transparent decompression (CONFIG_ZISOFS=y)

   * ovlfs module must be compiled for the kernel you are using.
     Get the source at http://ovlfs.sourceforge.net , and be sure
     that symlink /lib/modules/2.4.xx/build points to the correct
     kernel source tree before compiling. Compiling could produce
     some error messages, just ignore them. Install ovlfs to your system.

     Or, download precompiled kernel with ovlfs from http://www.linux-live.org

   * mkzftree is used for img compression. Make sure you have it,
     and also make sure your mkisofs works properly with -z option
     (transparent decompression). This all is already done in Slackware's
     cdrtools package.

   * devfsd must be installed and configured in your distribution
     else your LiveCD won't be able to use devfs (can't open initial console error)
     Unfortunately, devfsd package was removed from Slackware 10,
     you can find it in ./devfsd/ directory for now.

   * Don't install udev package else devfsd won't work!
     use "removepkg udev" if you already installed it

  These requirements could change with new kernel or ovlfs versions.
回复

使用道具 举报

发表于 2006-3-30 00:36:39 | 显示全部楼层
2.4的?有没有2.6的?
回复

使用道具 举报

 楼主| 发表于 2006-3-30 02:49:12 | 显示全部楼层
2.4的是4系列
2.6的是5系列
3n是怎么看贴的?
回复

使用道具 举报

发表于 2006-4-6 12:24:10 | 显示全部楼层
wjping119
什么时候搞ML的LiveCD?
回复

使用道具 举报

 楼主| 发表于 2006-4-6 14:57:50 | 显示全部楼层
还没有考虑过
回复

使用道具 举报

发表于 2006-4-6 15:39:16 | 显示全部楼层
magic好像除了4,其它的都满足了。
回复

使用道具 举报

 楼主| 发表于 2006-4-6 18:17:31 | 显示全部楼层
不检测也行,只不过它来时要崩出信息来提示而已。
回复

使用道具 举报

发表于 2006-4-7 10:41:06 | 显示全部楼层
[quote:bed05e578c="wjping119"]2.4的是4系列
2.6的是5系列
3n是怎么看贴的?[/quote]
说实话,还是没明白
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-27 03:43 , Processed in 0.069855 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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