Redhat 7 - Centos 7 Kickstart Installation

----  KICKSTART CENTOS 7 DVD INSTALLATION ---- 

mkdir -p /CentOS7
mount -t iso9660 -o loop CentOS-7-x86_64-DVD-1511.iso /CentOS7
mkdir -p /iso/ks/
cd /iso/

---- COPY CONTENT ----

rsync -av /CentOS7/ /iso/
find /iso/ -name TRANS.TBL -exec rm -f {} \; -print
yum install anaconda anaconda-help anaconda-runtime

--- ADD CUSTOM PACKAGES AND FILES  ----

vi /iso/ks/
vi /iso/isolinux/isolinux.cfg
chmod 664 /iso/isolinux/isolinux.bin
chmod 664 /iso/isolinux/isolinux.*
chmod 664 /iso/ks/
chmod 664 /iso/ks/ks.cfg

---- CREATE REPOSITORY  ----

cd /iso/
discinfo=`head -1 .discinfo`
compdata=`find repodata -name *comps*xml`
createrepo  -g $compdata .

---- MAKE ISO ----

cd /iso/
ISOFILE="C7.iso";
PACKAGER="C7";
ISONAME="C7";
ISODATE="2016/07/07";
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 .

---- MD5 CHECKSUM  ----

implantisomd5 C7.iso

---  WRITE TO USB  ---

dd if=C7.iso of=/dev/sdc

Yorum Gönder

Daha yeni Daha eski