public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Unknown initrd commands
@ 2009-04-12 22:59 stonee
  2009-04-13  6:02 ` Robert Hancock
  0 siblings, 1 reply; 2+ messages in thread
From: stonee @ 2009-04-12 22:59 UTC (permalink / raw)
  To: linux-kernel; +Cc: stonee

I have been digging around a few times online, and have not been able to find where some commands invoked from the Fedora init script are located.

The contents of the script are as follows along with some notes that I've added:

--------------------------------------------------------------------------------------------

#!/bin/nash

mount -t proc /proc /proc

setquiet
   # nash: cause any late echos in this start script not to be displayed

echo Mounting proc filesystem
echo Mounting sysfs filesystem
mount -t sysfs /sys /sys
echo Creating /dev
mount -o mode=0755 -t tmpfs /dev /dev
mkdir /dev/pts
mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts
mkdir /dev/shm
mkdir /dev/mapper
echo Creating initial device nodes
mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mknod /dev/systty c 4 0
mknod /dev/tty c 5 0
mknod /dev/console c 5 1
mknod /dev/ptmx c 5 2
mknod /dev/tty0 c 4 0
mknod /dev/tty1 c 4 1
mknod /dev/tty2 c 4 2
mknod /dev/tty3 c 4 3
mknod /dev/tty4 c 4 4
mknod /dev/tty5 c 4 5
mknod /dev/tty6 c 4 6
mknod /dev/tty7 c 4 7
mknod /dev/tty8 c 4 8
mknod /dev/tty9 c 4 9
mknod /dev/tty10 c 4 10
mknod /dev/tty11 c 4 11
mknod /dev/tty12 c 4 12
mknod /dev/ttyS0 c 4 64
mknod /dev/ttyS1 c 4 65
mknod /dev/ttyS2 c 4 66
mknod /dev/ttyS3 c 4 67
echo Setting up hotplug.

hotplug
   # /etc/sysconfig/network-scripts/net.hotplug
   # /lib/modules/2.6.25-14.fc9.i686/kernel/drivers/pci/hotplug/
   # 

echo Creating block device nodes.

mkblkdevs
   # ? 

echo "Loading ehci-hcd module"
modprobe -q ehci-hcd
echo "Loading ohci-hcd module"
modprobe -q ohci-hcd
echo "Loading uhci-hcd module"
modprobe -q uhci-hcd
mount -t usbfs /proc/bus/usb /proc/bus/usb
echo "Loading pata_via module"
modprobe -q pata_via
echo Waiting for driver initialization.

stabilized --hash --interval 250 /proc/scsi/scsi
   # ?

mkblkdevs
   # ?

resume /dev/sda2
   # ?

echo Creating root device.
mkrootdev -t ext3 -o defaults,ro /dev/sda1
echo Mounting root filesystem.
mount /sysroot
echo Setting up other filesystems.

setuproot
   # ?

loadpolicy
   # ?

echo Switching to new root and running init.

switchroot
   # nash command

echo Booting has failed.
sleep -1

--------------------------------------------------------------------------------------------

Where are these commands documented? Also, do initrd/nash have a home page? 

Thanks! 

By the way, please include my safemail e-mail in responses as I am not subscribed to the list.


stonee

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

end of thread, other threads:[~2009-04-13  6:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-12 22:59 Unknown initrd commands stonee
2009-04-13  6:02 ` Robert Hancock

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