RE: [Familiar] Familiar 0.5pre + Intimate problem

"Hietaniemi Jarkko (NRC/Boston)" <[email protected]>
Newsgroups gmane.comp.handhelds.linux.intimate
Message-ID <DC504E9C3384054C8506D3E6BB0124600A6FF5__49488.1353377879$1115030415$gmane$org@bsebe001.NOE.Nokia.com>
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
) &
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.