Trace: remaster_centos

Remaster Centos

  • download file iso installer nya
  • mount di direktori /mnt
mount -o loop CentOS-6.7-x86_64-minimal.iso /mnt
  • buat direktori remaster di /tmp dan copy kan file2 dari mounted iso ke /tmp/remaster, pastike .discinfo juga tercopy
rsync -av /mnt/ tmp/remaster
  • Delte semua file TRANS.BL
sudo find ./ -name TRANS.TBL -exec rm -f {} \; -print
  • install paket2 pendukung untuk remaster
sudo yum install anaconda anaconda-runtime createrepo mkisofs yum-utils.noarch (ini jika paket pendukung di host server belum ada)
  • jika mau upgrade paket lakukan langkah2 brikut
    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
  • copy centos release yang baru ke direktory packages
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
  • update repodata
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 .
  • rubah .treeinfo
vi .treeinfo
  • change centos logo on anaconda installer
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/
  • lanjut rubah logo centos nya
build ulang anaconda installer
mkfs.cramfs /tmp/remaster-images-new/ install.img.new
mv install.img.new images/install.img
  • lanjur hack initrd nya
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
  • rubah file isolinux untuk merubah welcome messages
vi isolinux/isolinux.cfg
  • buil instaler iso file
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 .
  • catatan jangan lupa delete file blah-blah-c6-minimal-x86_64.xml.gz
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki