public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] initrd and /dev
@ 2006-09-20 16:18 Jakub Ladman
  2006-09-20 17:07 ` Vladimir Pouzanov
  0 siblings, 1 reply; 10+ messages in thread
From: Jakub Ladman @ 2006-09-20 16:18 UTC (permalink / raw
  To: gentoo-embedded

Hi there
I know that this is an OT, but there will be people who knows it ...

I have system with 2.4.21 kernel (specific patches from hardware developer) 
and i can not choose other kernel at the time.

at initrd disk is /dev directory with some statical node files, but kernel 
appends some nodes while booting.

After boot linuxrc script is executed

#!/bin/sh
echo "Mounting /proc"
mount -t proc none /proc
echo "Installing usb storage related modules"
insmod sh7760-usb
insmod scsi_mod
insmod usb-storage
insmod sd_mod
echo "mounting new root filesystem"
mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt
cd /mnt
echo "going into new root filesystem"
/sbin/pivot_root . mnt/old_root
exec /sbin/chroot . sh -c 'umount mnt/old_root; exec /sbin/init'

but in the new root filesystem is /dev directory too, but without the nodes 
appended by kernel.

How to do it as simple as possible to have former dev in new root filesystem?

Thank you very much.
Jakub Ladman
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-09-24 20:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-20 16:18 [gentoo-embedded] initrd and /dev Jakub Ladman
2006-09-20 17:07 ` Vladimir Pouzanov
2006-09-20 18:24   ` Jakub Ladman
2006-09-20 18:26     ` Jakub Ladman
2006-09-20 21:38       ` [gentoo-embedded] GNAP - mounting image.squashfs fails while booting Janusz Syrytczyk
2006-09-24 20:14         ` Janusz Syrytczyk
2006-09-24 20:33         ` Thierry Carrez
2006-09-24 20:50           ` Janusz Syrytczyk
2006-09-20 19:23     ` [gentoo-embedded] initrd and /dev Mike Frysinger
2006-09-20 19:47       ` Jakub Ladman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox