mount -o loop CentOS-6.7-x86_64-minimal.iso /mnt
rsync -av /mnt/ tmp/remaster
sudo find ./ -name TRANS.TBL -exec rm -f {} \; -print
sudo yum install anaconda anaconda-runtime createrepo mkisofs yum-utils.noarch (ini jika paket pendukung di host server belum ada)
cd /tmp/remaster/Packages rm -f initscripts*rpm yumdownloader initscripts rm -f kernel*rpm yumdownloader kernel-debug-devel kernel-debug kernel-devel kernel-doc kernel-firmwar kernel-header kernel
cp /root/rpmbuild/RPMS/x86_64/centos-release-6-7.el6.12.3.x86_64.rpm Packages/ rm -f Packages/centos-release-6-7.el6.centos.12.3.x86_64.rpm
cd /tmp/remaster discinfo=`head -1 .discinfo` compdata=`find repodata -iname *minimal*` #find repodata -iname *minimal* | xargs rm -rfv rm repodata/ce2d698b9fb1413b668443e88835a0642cea8f387c7f25cc946f56dd93f109bb-c6-minimal-x86_64.xml.gz mv repodata/34bae2d3c9c78e04ed2429923bc095005af1b166d1a354422c4c04274bae0f59-c6-minimal-x86_64.xml repodata/34bae2d3c9c78e04ed2429923bc095005af1b166d1a354422c4c04274bae0f59-UGOS-remaster-x86_64.xml createrepo -u "media://$discinfo" -g $compdata repodata/34bae2d3c9c78e04ed2429923bc095005af1b166d1a354422c4c04274bae0f59-UGOS-remaster-x86_64.xml . #createrepo -u "media://$discinfo" -g $compdata .
vi .treeinfo
mkdir /tmp/remaster-images mount -o loop /tmp/remaster/images/install.img /tmp/remaster-images/ mkdir /tmp/remaster-images-new rsync -av /tmp/remaster-images /tmp/remaster-images-new/
build ulang anaconda installer mkfs.cramfs /tmp/remaster-images-new/ install.img.new mv install.img.new images/install.img
lzcat isolinux/initrd.img | ( cd /tmp/initrd && cpio -id ) (rubah .buildmap nya) find . | cpio -co | lzma > /tmp/initrd.img.new mv /tmp/initrd.img.new /tmp/remaster/isolinux/initrd.img
vi isolinux/isolinux.cfg
ISOFILE="UGOS-0.1-x86_64-remaster.iso" PACKAGER="UGOS Team Developer" ISONAME="Centos-6.7-x86_64-Remaster" ISODATE="2016/01/28" mkisofs -r -R -J -T -v -no-emul-boot -boot-load-size 4 -boot-info-table -V "$ISONAME" -p "$PACKAGER" -A "$ISONAME - $ISODATE" -b isolinux/isolinux.bin -c isolinux/boot.cat -x "lost+found" --joliet-long -o $ISOFILE .