mkdir -p /iso/
mkdir -p /kickstart_build/{isolinux,images,ks,packages}
mount /dev/cdrom /iso
mount -o loop,ro CentOS-6.5-x86_64.iso /iso
cd /iso
mkdir -p /kickstart_build/{isolinux,images,ks,packages}
cp .discinfo /kickstart_build/
cp -R isolinux/* /kickstart_build/isolinux
cp -R images/* /kickstart_build/images/
chmod 664 /kickstart_build/isolinux/isolinux.bin
chmod 664 /kickstart_build/isolinux/isolinux.cfg
chmod 664 /kickstart_build/ks.cfg
vi /kickstart_build/isolinux/isolinux.cfg
-- append initrd=initrd.img ks=cdrom:/ks.cfg
cp Packages/*.rpm /kickstart_build/packages/
cp repodata/b4e0b9342ef85d3059ff095fa7f140f654c2cb492837de689a58c581207d9632-c6-x86_64-comps.xml /kickstart_build/
mv /kickstart_build/b4e0b9342ef85d3059ff095fa7f140f654c2cb492837de689a58c581207d9632-c6-x86_64-comps.xml /kickstart_build/comps.xml
declare -x discinfo=`head -1 .discinfo`
createrepo -u "media://$discinfo" -g comps.xml .
mkisofs -r -N -L -d -J -T -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -V Nitrogen -boot-load-size 4 -boot-info-table -o Nitrogen.iso .
implantisomd5 ./Nitrogen.iso
mkdir -p /kickstart_build/{isolinux,images,ks,packages}
mount /dev/cdrom /iso
mount -o loop,ro CentOS-6.5-x86_64.iso /iso
cd /iso
mkdir -p /kickstart_build/{isolinux,images,ks,packages}
cp .discinfo /kickstart_build/
cp -R isolinux/* /kickstart_build/isolinux
cp -R images/* /kickstart_build/images/
chmod 664 /kickstart_build/isolinux/isolinux.bin
chmod 664 /kickstart_build/isolinux/isolinux.cfg
chmod 664 /kickstart_build/ks.cfg
vi /kickstart_build/isolinux/isolinux.cfg
-- append initrd=initrd.img ks=cdrom:/ks.cfg
cp Packages/*.rpm /kickstart_build/packages/
cp repodata/b4e0b9342ef85d3059ff095fa7f140f654c2cb492837de689a58c581207d9632-c6-x86_64-comps.xml /kickstart_build/
mv /kickstart_build/b4e0b9342ef85d3059ff095fa7f140f654c2cb492837de689a58c581207d9632-c6-x86_64-comps.xml /kickstart_build/comps.xml
declare -x discinfo=`head -1 .discinfo`
createrepo -u "media://$discinfo" -g comps.xml .
mkisofs -r -N -L -d -J -T -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -V Nitrogen -boot-load-size 4 -boot-info-table -o Nitrogen.iso .
implantisomd5 ./Nitrogen.iso
Etiketler :
Linux