标签:linux kernel centos livecd mkisofs
原LiveCD:install-amd64-minimal-20130711.iso (gentoo)
工作系统:CentOS
1.复制原LiveCD的内容:
[root@localhost Downloads]# mkdir /mnt/livecd [root@localhost Downloads]# mkdir /mnt/img [root@localhost Downloads]# mount -t iso9660 -o loop install-amd64-minimal-20130711.iso /mnt/livecd/ mount: /dev/loop0 is write-protected, mounting read-only <pre name="code" class="html">[root@localhost Downloads]# cp -r /mnt/livecd/* /mnt/img2.切换到/mnt/img, 查看一下/mnt/img下面的内容。
[root@localhost img]# ls gentoo.efimg image.squashfs livecd README.txt gentoo.efimg.mountPoint isolinux
[root@localhost img]# ls isolinux/ boot.cat elilo.efi F4.msg F7.msg isolinux.bin memtest86 boot.msg F2.msg F5.msg gentoo isolinux.cfg ramfs.tar.gz bzImage F3.msg F6.msg gentoo.igz kernels.msg System.map-gentoo
label hello-test kernel bzImage append root=/dev/ram init=/linuxrc initrd=ramfs.tar.gz
mkisofs -R -b isolinux/isolinux.bin -c isolinux/boot.cat -o /tmp/test.iso -V "test Linux" -no-emul-boot -boot-load-size 4 -boot-info-table .
基于现有的Linux LiveCD加入自己的内核和ramfs
标签:linux kernel centos livecd mkisofs
原文地址:http://blog.csdn.net/xuzhina/article/details/44086611