Gentoo Archives: gentoo-embedded

From: Jakub Ladman <ladmanj@×××××.cz>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] initrd and /dev
Date: Wed, 20 Sep 2006 16:19:35
Message-Id: 200609201818.08055.ladmanj@volny.cz
1 Hi there
2 I know that this is an OT, but there will be people who knows it ...
3
4 I have system with 2.4.21 kernel (specific patches from hardware developer)
5 and i can not choose other kernel at the time.
6
7 at initrd disk is /dev directory with some statical node files, but kernel
8 appends some nodes while booting.
9
10 After boot linuxrc script is executed
11
12 #!/bin/sh
13 echo "Mounting /proc"
14 mount -t proc none /proc
15 echo "Installing usb storage related modules"
16 insmod sh7760-usb
17 insmod scsi_mod
18 insmod usb-storage
19 insmod sd_mod
20 echo "mounting new root filesystem"
21 mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt
22 cd /mnt
23 echo "going into new root filesystem"
24 /sbin/pivot_root . mnt/old_root
25 exec /sbin/chroot . sh -c 'umount mnt/old_root; exec /sbin/init'
26
27 but in the new root filesystem is /dev directory too, but without the nodes
28 appended by kernel.
29
30 How to do it as simple as possible to have former dev in new root filesystem?
31
32 Thank you very much.
33 Jakub Ladman
34 --
35 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] initrd and /dev Vladimir Pouzanov <farcaller@×××××.com>