RE: [Familiar] Familiar 0.5pre + Intimate problem

From: Hietaniemi Jarkko (NRC/Boston) <jarkko.hietaniemi.a.t.nokia.com>
Date: Thu Oct 04 2001 - 16:27:59 EDT

Seth Golub:
> As far as I can tell, the only real magic of booting Intimate is the
> pivot_root, and it doesn't seem all that important to do it very
> early, as long as the services we launch and the modules we load are
> duplicated in our Intimate installations.
>
> If PCMCIA isn't ready until /etc/init.d/pcmcia runs, then /linuxrc
> isn't the best place to switch over to Intimate. Maybe instead we
> should do it from a script in /etc/init.d.

The following snippet (unashamedly stolen from the /linuxrc.intimate)
as /etc/rc2.d/S99intimate seems to mostly work (I say "mostly" because
e.g. the blackbox starts running on the jffs2 root, and it gets rather
confused by the pivoting...

#!/bin/sh
(
while [ ! -b /dev/hda1 ]
do
        sleep 1
done
if [ -b /dev/hda1 ]
then
        mount -n -t reiserfs /dev/hda1 /mnt/hda1
        if [ $? -eq 0 -a -x /mnt/hda1/sbin/init ]
        then
                echo "Booting intimate from microdrive..."
                mount -n -t devfs none /mnt/hda1/dev
                pivot_root /mnt/hda1 /mnt/hda1/boot
                cd /
                exec /sbin/init 2
        fi
fi
) &
Received on Thu Oct 4 12:28:38 2001

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:42:39 EDT