Last change
on this file since 88c8bf0 was 77aff82, checked in by William Harrington <kb0iic@…>, 11 years ago |
Add directory housing the scripts for the boot-method currently used in the systemd book.
|
-
Property mode
set to
100755
|
File size:
955 bytes
|
Rev | Line | |
---|
[77aff82] | 1 | #!/bin/bash
|
---|
| 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
|
---|
| 26 | chmod 1777 /dev/shm
|
---|
| 27 | echo "" > /sys/kernel/uevent_helper
|
---|
| 28 | /tools/sbin/udevd --daemon
|
---|
| 29 | mkdir -p /dev/.udev/queue
|
---|
| 30 | /tools/sbin/udevadm trigger
|
---|
| 31 | /tools/sbin/udevadm settle
|
---|
| 32 |
|
---|
| 33 | echo "Remounting Root File System"
|
---|
| 34 | mount -n -o remount,rw /
|
---|
| 35 |
|
---|
| 36 | echo "Creating mtab"
|
---|
| 37 | > /etc/mtab
|
---|
| 38 | mount -f /
|
---|
| 39 | mount -f /proc
|
---|
| 40 | mount -f /sys
|
---|
| 41 | mount -a -O no_netdev
|
---|
| 42 |
|
---|
| 43 | echo "Setting System Clock"
|
---|
| 44 | hwclock --hctosys --utc
|
---|
Note:
See
TracBrowser
for help on using the repository browser.