Adding squashfs support into RedHat Enterprise Linux 3 U3
Squashfs must be patched and compiled into the kernel. There is no module available from RedHat or anywhere else on the web, at least not that I’ve been able to find.
Determine which kernel release your running with:
Uname –r
2.4.21-20.EL
Check to see if you have the kernel-sources package installed for your running kernel:
Rpm –q kernel-source
kernel-source-2.4.21-20.EL
Download the squashfs package from:
http://squashfs.sourceforge.net
untar the archive (/tmp is a great spot)
su to root and move into /usr/src/linux-2.4 (may be different on your machine)
The default kernel on RHEL3 WS U3 is 2.4.21. squashfs has not patch for this specific version, so you’ll need to use the 2.4.22 patch.
Patch the kernel with:
Patch –p1
Prepare the kernel source tree:
Make mrproper
Copy your kernel’s configuration from /boot to the kernel source:
Cp /boot/Config-version ./.config
Edit the top level Makefile and edit EXTRAVERSION to remove custom
Make oldconfig
Hit m to compile as module
Make dep
Make bzImage
Make modules
Make modules_install
Copy arch/i386/bzImage to /boot/vmlinux-version-squashfs
Mkinitrd /path/to/kernel 2.4.21-20.EL
Edit /boot/grub/grub.conf
Reboot