This is my first attempt as well at messing with kernel and stuff.  But
thanks to a great starting point by David Brown and a little bit of spare
time I have enhanced the howto for Upgrading the kernel to a 2.4 kernel.  I
went back to 2.4.7 in order to keep the smp, BOOT, and regular kernel the
same version.  I have also added a few things to get the main filesystem
converted to ext3 and added ipchain support so that the masq stuff still
works.  There still seems to be a problem with PPTP.  I have not had a
chance to test diald, pppoe or dhcpd stuff yet.  It appears that dhcpd at
least starts but that is as far as I have gotten.
do the following as root to update to 2.4.7 kernel with quota support and ext3
==============================================================================

cd /root
mkdir rpms
cd rpms
mkdir done
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/kudzu-0.99.23-1.i386.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/mkinitrd-3.2.6-1.i386.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/modutils-2.4.6-4.i386.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/filesystem-2.1.6-2.noarch.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/setup-2.5.7-1.noarch.rpm
wget ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/bash-2.05-8.i386.rpm
rpm -Uvh *.rpm
mv * done
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/kernel-2.4.7-10.i386.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/kernel-BOOT-2.4.7-10.i386.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/kernel-pcmcia-cs-3.1.27-10.i386.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/kernel-smp-2.4.7-10.i586.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/hotplug-2001_04_24-11.i386.rpm
rpm -e kernel-pcmcia-cs
rpm -ivh *.rpm
mv * done
pico /etc/lilo.conf 
----------
copy 'image=/boot/vmlinuz-2.2.19-7.0.8' line and all indented lines under it
change 'label=esmith' to 'label=esmith22'
copy 'image=/boot/vmlinuz-2.2.19-7.0.8smp' line if exists and all indented lines under 
it
if smp kernel exists change 'label=esmith-up' to 'label=esmith22-up'

on copies have have 'label=esmith' change all occurences of '2.2.19-7.0.8' to 
'2.4.7-10'
on copies have have 'label=esmith-up' if exists change all occurences of 
'2.2.19-7.0.8smp' to '2.4.7-10smp'
----------
/sbin/e-smith/expand-template /etc/lilo.conf
lilo
reboot


if 'esmith-up' exists pick this
depmod -a
reboot


pick 'esmith'
depmod -a
reboot


cd rpms
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/quota-3.01pre9-3.i386.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/initscripts-6.40-1.i386.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/mount-2.11g-5.i386.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/iputils-20001110-6.i386.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/e2fsprogs-1.23-2.i386.rpm
wget 
ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/ipchains-1.3.10-10.i386.rpm
 
rpm -Uvh *.rpm
mv * done
convertquota -u /
convertquota -g /
/etc/e-smith/events/actions/enable-quotas
tune2fs -j /dev/hda6
tune2fs -j /dev/hda1
pico /etc/fstab
-----------
change ext2 to ext3 on first 2 lines (Label=/ and Label=/boot)
-----------
/sbin/e-smith/expand-template /etc/fstab
/sbin/e-smith/config set ipchains service InitscriptOrder 06 status enabled
ln -s /etc/rc.d/init.d/e-smith/service /etc/rc.d/rc7.d/S06ipchains
touch /etc/sysconfig/ipchains
reboot


pico /etc/rc.d/init.d/functions
-----------
####insert following below echo_passed() function (~line 332):
echo_disabled() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n "DISABLED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

####insert following below passed() function (~line 385)
# Log that something passed, but is disabled in this configuration
disabled() {
  rc=$?
  if [ -z "$IN_INITLOG" ]; then
     initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
  else
     trap "" SIGPIPE
     echo "$INITLOG_ARGS -n $0 -s \"$1\" -e 1" >&21
     trap - SIGPIPE
  fi
  [ "$BOOTUP" != "verbose" ] && echo_disabled
  return $rc
}

####change following 2 lines (~line 404)
  initlog $INITLOG_ARGS -c "$*" && success $"$STRING" || failure $"$STRING"
  rc=$?
####to
#  initlog $INITLOG_ARGS -c "$*" && success $"$STRING" || failure $"$STRING"
  initlog $INITLOG_ARGS -c "$*"
  rc=$?
  case $rc in
      0) success "$STRING" ;;
      99) disabled "$STRING"
          rc=0 ;;
      *) failure "$STRING" ;;
  esac
#  rc=$?
-----------
reboot


Still have to fix/test PPTP.  Appears that ppp.o and ppp_mppp.o in the 
/lib/modules/2.2.19-7.0.8/net may be needed for PPTP to work.  May need to recompile
these for the newer kernel.
--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to