AnacondaPatch

From T2B Wiki
Jump to navigation Jump to search

patch kickstart installation

  • you need squashfs-tools to do all this.
yum install squashfs-tools
  • add files to the kickstart installation
    • example for text-only install using RHEL5 and higher
  • from your OS installation, get the file called minstg2.img
    • to patch the graphical installer, use stage2.img!
  • prepare
HERE=$PWD
mkdir orig
cp minstg2.img orig
  • patch
    • XFS: add mkfs.xfs and fsck.xfs
    • get the xfsprogs rpm from centosplus that provide these
    • rename it eg.
cp xfsprogs-2.9.4-1.el5.centos.x86_64.rpm xfsprogs.rpm
    • then do
cd $HERE
mkdir xfsprogs
cd xfsprogs
rpm2cpio ../xfsprogs.rpm |cpio -ivd
mkdir -p ./usr/sbin
cp ./sbin/mkfs.xfs ./usr/sbin
chmod +x ./usr/sbin/mkfs.xfs
cp ./sbin/fsck.xfs ./usr/sbin
chmod +x ./usr/sbin/fsck.xfs
mksquashfs usr/sbin/mkfs.xfs usr/sbin/fsck.xfs ../minstg2.img -all-root -no-fragments
  • now upload the new minstg2.img to your webserver that hosts the old minst2.img



Template:TracNotice