3 # /etc/rc: system boot script
6 echo "The system is coming up. Please wait."
12 /bin
/mount
-t proc none
/proc
13 /bin
/mount
-t sysfs none
/sys
16 # Create device-mapper device nodes and scan for LVM volume groups
17 if [ -x /sbin
/lvm
]; then
18 /sbin
/vgscan
--mknodes --ignorelockingfailure
19 /sbin
/vgchange
--ignorelockingfailure -a y
22 # Scan for btrfs volumes to simplify fstab entries
23 if [ -r /sys
/fs
/btrfs
]; then
27 # Mount root read-only
28 /bin
/mount
-o remount
,ro
/
30 if [ -f /forcefsck
]; then
35 /sbin
/fsck
$FORCEFSCK -A -T -C -a
38 echo "*************** FILESYSTEM CHECK FAILED ******************"
40 echo "* Please repair manually and reboot. Note that the root *"
41 echo "* file system is currently mounted read-only. To remount *"
42 echo "* it read-write type: mount -n -o remount,rw / *"
43 echo "* When you exit the maintainance shell the system will *"
44 echo "* reboot automatically. *"
46 echo "************************************************************"
49 echo "Automatic reboot in progress..."
51 /bin
/mount
-o remount
,ro
/
56 # Mount local filesystems
57 /bin
/mount
-o remount
,rw
/
58 /bin
/mount
-a -O no_netdev
65 /bin
/rm -rf /forcefsck
/fastboot
/etc
/nologin
/etc
/shutdownpid
66 (cd /var
/run
&& /usr
/bin
/find .
-name "*.pid" -delete)
67 (cd /var
/lock
&& /usr
/bin
/find .
! -type d
-delete)
68 (cd /tmp
&& /usr
/bin
/find .
! -name .
-delete)
69 /bin
/mkdir
-m 1777 /tmp
/.ICE-unix
71 # Set kernel variables
72 /sbin
/sysctl
-p > /dev
/null
74 # Update shared library links
78 if [ "$HOSTNAME" ]; then
79 echo "hostname: $HOSTNAME"
80 /bin
/hostname
$HOSTNAME
84 /bin
/cat /var
/lib
/urandom
/seed
> /dev
/urandom
86 # Configure system clock
87 if [ "$TIMEZONE" ]; then
88 /bin
/ln -snf /usr
/share
/zoneinfo
/$TIMEZONE /etc
/localtime
90 /sbin
/hwclock --hctosys
95 /usr
/bin
/setfont
$FONT
99 if [ "$KEYMAP" ]; then
100 echo "keyboard: $KEYMAP"
101 /usr
/bin
/loadkeys
-q $KEYMAP
104 # Screen blanks after 15 minutes idle time
105 /usr
/bin
/setterm
-blank 15
107 # Run module initialization script
108 if [ -x /etc
/rc.modules
]; then
113 /bin
/dmesg
> /var
/log
/boot