制作FC8 LiveCD并使用squashfs进行改动
来源:互联网 发布:淘宝补差价怎么弄 编辑:程序博客网 时间:2024/05/21 18:33
原文出处:http://forums.fedoraforum.org/showthread.php?t=174916
- # I copy these files to /home and make adjustments there so the originals don't get hosed.
- livecd-fedora-8-base-desktop.ks
- livecd-fedora-8-kde.ks
- livecd-creator /
- --config=/home/livecd-fedora-8-kde.ks /
- --fslabel=Fedora-8-LiveCD-KDE
- # Mount the livecd iso so we can make some changes
- mkdir /home/iso
- mount -t iso9660 -o loop /home/Fedora-8-LiveCD-KDE.iso /home/iso
- # Check /home/iso for these files and folders
- GPL
- isolinux
- LiveOS
- README
- # You need to load the squashfs module
- (echo '#!/bin/sh'; echo 'modprobe squashfs') /
- > /etc/sysconfig/modules/squashfs.modules
- chmod +x /etc/sysconfig/modules/squashfs.modules
- # You can enable the squashfs module without rebooting with this command:
- modprobe squashfs
- # Install squashfs-tools
- yum install squashfs-tools
- # The contents of the iso root filesystem is located in the file squashfs.img
- # Unpack squashfs.img to a folder called squashfs-root
- unsquashfs /home/iso/LiveOS/squashfs.img
- # Mount the /home/squashfs-root/LiveOS/ext3fs.img to a folder with the command:
- mkdir /home/livecd-root
- mount -o loop,rw /home/squashfs-root/LiveOS/ext3fs.img /home/livecd-root
- # Make some changes, For example:
- # Adding yum repos to the livecd environment
- rpm -ihv http://livna-dl.reloumirrors.net//
- fedora/8/i386/livna-release-8-1.noarch.rpm --root /home/livecd-root/
- rpm -ihv http://ayo.freshrpms.net/fedora/linux/8/i386//
- RPMS.freshrpms/freshrpms-release-1.1-1.fc.noarch.rpm --root /home/livecd-root/
- # Make a list of installed packages so you have a better idea
- # of what needs to be installed or removed
- rpm -qa --root /home/livecd-root/ | sort >list.txt
- # Add or remove packages with the yum package manager
- yum install gimp --installroot=/home/livecd-root
- yum remove ktorrent --installroot=/home/livecd-root
- yum clean all --installroot=/home/livecd-root
- updatedb -U /home/livecd-root
- # Copy your desktop settings to the livecd environment
- rm -rf /home/livecd-root/etc/skel
- mkdir /home/livecd-root/etc/skel
- rsync -av --exclude='.thunderbird' /home/fred/ /home/livecd-root/etc/skel
- chown -R root:root /home/livecd-root/etc/skel//.
- # Unmount the ext3fs.img and make a new squashfs.img
- umount /home/livecd-root
- mksquashfs squashfs-root squashfs.img
- # Create a folder called build for making the new iso image
- mkdir /home/build
- rsync -av --exclude='squashfs.img' /home/iso/ /home/build
- mv /home/squashfs.img /home/build/LiveOS
- umount /home/iso
- # When making a new iso image the cd volume label
- # needs to match the isolinux.cfg entry
- # ( root=CDLABEL=Fedora-8-LiveCD-KDE )
- cd /home/build
- mkisofs -R -l -L -D -b isolinux/isolinux.bin -c isolinux/boot.catalog -o /home/Modified-Fedora-8-LiveCD-KDE.iso -no-emul-boot -boot-load-size 4 -boot-info-table -V "Fedora-8-LiveCD-KDE" .
0 0
- 制作FC8 LiveCD并使用squashfs进行改动
- 制作FC8 LiveCD并使用squashfs进行改动
- 制作LiveCD
- VMware使用ubuntu livecd进行磁盘管理
- 使用LiveCD制作Linux Ubantu系统img镜像文件
- UCK制作Ubuntu livecd
- Linux的liveCD制作
- 制作&&修改CentOS Livecd
- 制作&&修改CentOS Livecd
- WriteOS: 制作一个 Boot Sector 并使用 Bochs 进行调试
- squashfs
- squashfs
- squashfs
- 中文 Linux LiveCD 的制作
- [转]ubuntu LiveCD制作
- [转]ubuntu LiveCD制作
- 利用UltraISO制作Ubuntu LiveCD
- LiveCD制作U盘启动
- struts2工作流程图——简略
- 第十一周项目3-程序的多文件组织
- 第十一周 项目2-2 公约数的最大公约数
- ADO中使用addnew
- PHP草根论之设计模式-职责链模式
- 制作FC8 LiveCD并使用squashfs进行改动
- jenkins集成robot framework做自动化测试
- lucene搜索方式(query类型)
- 0-1背包问题---动态规划
- 数据结构之线性表的操作
- linux 编译错误
- poj 2828
- Oracle分组查询 over (parttion by xxx order by xxx)
- 手动修改PE文件:添加自定义代码