[Ilugc] Fedora Core 4

  • From: siva.ilugc@xxxxxxxxx (Sivasankar Chander)
  • Date: Fri Jul 15 08:19:27 2005

On 7/12/05, Rahul Sundaram <sundaram@xxxxxxxxxx> wrote:

Suresh Ramasubramanian wrote:

At 07:38 PM 7/12/2005, Sivasankar Chander wrote:

3) Get rid of udev, hal, etc. and downgrade to a static /dev tree.


why?  i haven't found udev to be a significant performance hog

hald and dbus on the other hand .. well they aren't too bad but you
might have a point there

None of them are really resource hogs and these are fundamental
advancements which you cannot really downgrade without breaking a whole
lot of user space apps sitting on top of it.  In fact for FC5 the whole
init system is potentially dependant on dbus

http://fedoraproject.org/wiki/FCNewInit
https://www.redhat.com/archives/fedora-devel-list/2005-June/msg01390.html


   I don't dispute that udev, etc., are the way to go for the future. 
However, there are certain applications for which I prefer a static
/dev tree. Why do this? Some possible reasons:

1) Smaller memory footprint, better stability and performance - YMMV.
2) Dependencies from an old userland that require a static /dev/tree,
    for instance, Cryptoloop implementations that expect to find certain
    /dev/loop* entries.
3) For easy filesystem recovery using non-udev recovery CDs.
4) For kernel experimentation.
 
 On FC3, it is possible to downgrade to a static /dev tree without
breaking most of userland. YMMV - as always, perform a backup
before trying this out. You may have other dependencies
which I did not encounter:

1) Rebuild (from SRPM) and install the following RPMs (Google and obtain
them from previous Fedora/RedHat releases):

kudzu-1.1.36.3-1
kudzu-devel-1.1.36.3-1
hotplug_2004_04_01-1.1
hwdata-0.103.1-1

2) Downgrade to gnome-vfs2-2.6.0-8 (again, rebuild from SRPM):

# you can rebuild these later
rpm -e eel2 eog gedit

rpm -Uvh --oldpackage gnome-vfs2-2.6.0-8.386.rpm
     gnome-vfs2-devel-2.6.0-8,i386.rpm
     gnome-vfs2-smb-2.6.0-8.i386.rpm

3) Get rid of hal and udev:

rpm -e hal

# (stop udev)
rpm -e udev --nodeps

# reboot
rpm -Uvh --oldpackage dev-3.3.12.3-1.i386.rpm MAKEDEV-3.3.8-2.i386.rpm
# ignore lots of warnings

4) Adjust /etc/fstab and verify that everything still works OK.

Voila! You have an FC3 installation with a static /dev tree now.

(The main reason that I jumped through all these hoops was to downgrade
to a patched version of util-linux-2.11y-29 from FC1, which I needed to 
support Loop-Crypto using CryptoAPI transparently. )

-Siva

Other related posts: