Last change
on this file since 8ea83d1 was e5112de, checked in by Jim Gifford <clfs@…>, 16 years ago |
Updates to netboot scripts
|
-
Property mode
set to
100755
|
File size:
1014 bytes
|
Rev | Line | |
---|
[7df280d] | 1 | #!/bin/bash
|
---|
[1680407] | 2 | ########################################################################
|
---|
| 3 | # Begin /rc.sysinit
|
---|
| 4 | #
|
---|
| 5 | # Description : Modified Bootscript for NFSRoot booting
|
---|
| 6 | #
|
---|
| 7 | # Authors : Jim Gifford - jim@linuxfromscratch.org
|
---|
| 8 | #
|
---|
| 9 | # Version : 00.00
|
---|
| 10 | #
|
---|
| 11 | # Notes :
|
---|
| 12 | #
|
---|
| 13 | ########################################################################
|
---|
| 14 |
|
---|
| 15 | export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/tools/sbin
|
---|
| 16 |
|
---|
| 17 | echo -n "Mounting kernel-based file systems:"
|
---|
| 18 | echo -n " proc"
|
---|
| 19 | mount -n /proc
|
---|
| 20 | echo -n " sys"
|
---|
| 21 | mount -n /sys
|
---|
| 22 | echo ""
|
---|
| 23 |
|
---|
| 24 | echo "Starting udev"
|
---|
| 25 | mount -n -t tmpfs -o mode=0755 udev /dev
|
---|
[e5112de] | 26 | cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev
|
---|
[1680407] | 27 | chmod 1777 /dev/shm
|
---|
| 28 | echo "" > /sys/kernel/uevent_helper
|
---|
| 29 | /sbin/udevd --daemon
|
---|
| 30 | mkdir -p /dev/.udev/queue
|
---|
[e5112de] | 31 | /sbin/udevadm trigger
|
---|
| 32 | /sbin/udevadm settle
|
---|
[1680407] | 33 |
|
---|
| 34 | echo "Remounting Root File System"
|
---|
| 35 | mount -n -o remount,rw /
|
---|
| 36 |
|
---|
| 37 | echo "Creating mtab"
|
---|
| 38 | > /etc/mtab
|
---|
| 39 | mount -f /
|
---|
| 40 | mount -f /proc
|
---|
| 41 | mount -f /sys
|
---|
| 42 | mount -a -O no_netdev
|
---|
| 43 |
|
---|
| 44 | echo "Setting System Clock"
|
---|
| 45 | hwclock --hctosys --utc
|
---|
Note:
See
TracBrowser
for help on using the repository browser.