From: stonee@Safe-mail.net
To: linux-kernel@vger.kernel.org
Cc: stonee@Safe-mail.net
Subject: Unknown initrd commands
Date: Sun, 12 Apr 2009 15:59:36 -0700 [thread overview]
Message-ID: <N1N-uRW2YWBw5x@Safe-mail.net> (raw)
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
next reply other threads:[~2009-04-13 1:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-12 22:59 stonee [this message]
2009-04-13 6:02 ` Unknown initrd commands Robert Hancock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=N1N-uRW2YWBw5x@Safe-mail.net \
--to=stonee@safe-mail.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox