build custom centos7
Posted lvmxh
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了build custom centos7相关的知识,希望对你有一定的参考价值。
There is a script to create custom iso
3. make the ISO
https://serverfault.com/questions/517908/how-to-create-a-custom-iso-image-in-centos
-
Create a directory to mount your source.
mkdir /tmp/bootiso
-
Loop mount the source ISO you are modifying. (Download from Red Hat / CentOS.)
mount -o loop /path/to/some.iso /tmp/bootiso
-
Create a working directory for your customized media.
mkdir /tmp/bootisoks
-
Copy the source media to the working directory.
cp -r /tmp/bootiso/* /tmp/bootisoks/
-
Unmount the source ISO and remove the directory.
umount /tmp/bootiso && rmdir /tmp/bootiso
-
Change permissions on the working directory.
chmod -R u+w /tmp/bootisoks
-
Copy your Kickstart script which has been modified for the packages and
%post
to the working directory.cp /path/to/someks.cfg /tmp/bootisoks/isolinux/ks.cfg
-
Copy any additional RPMs to the directory structure and update the metadata.
cp /path/to/*.rpm /tmp/bootisoks/Packages/. cd /tmp/bootisoks/Packages && createrepo -dpo .. .
-
Add kickstart to boot options.
sed -i ‘s/append initrd=initrd.img/append initrd=initrd.img ks=cdrom:/ks.cfg/‘ /tmp/bootisoks/isolinux/isolinux.cfg
-
Create the new ISO file.
cd /tmp/bootisoks && mkisofs -o /tmp/boot.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -V "CentOS 7 x86_64" -R -J -v -T isolinux/. .
-
(Optional) Use
isohybrid
if you want todd
the ISO file to a bootable USB key.isohybrid /tmp/boot.iso
-
Add an MD5 checksum (to allow testing of media).
implantisomd5 /tmp/boot.iso
以上是关于build custom centos7的主要内容,如果未能解决你的问题,请参考以下文章
Collection Views and Building Custom Layouts-备
css 来自myStyles.css的[ArasLabs / custom-form-css]片段,显示应用于myIcon的样式
How to add the custom nuget feed to TeamCity build?
text 此片段用于以下知识库文章 - http://kb.wpbeaverbuilder.com/article/591-create-a-filter-to-customize-the-di