AnacondaPatch

From T2B Wiki
Revision as of 12:28, 26 August 2015 by Maintenance script (talk | contribs) (Created page with " === patch kickstart installation === *you need squashfs-tools to do all this. <pre> yum install squashfs-tools </pre> *add files to the kickstart installation **example...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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