|
发表于 2007-5-20 10:49:26
|
显示全部楼层
以下内容为menu.lst文件
# Begin /boot/grub/menu.lst
# By default boot the first menu entry.
default 0
# Allow 30 seconds before booting the default.
timeout 30
# Use prettier colors.
color green/black light-green/black
# The first entry is for LFS.
title LFS 6.2
root (hd0,3)
kernel /boot/lfskernel-2.6.16.38 root=/dev/sda4
以下内容为94-conf脚本,
########## 7.5. Configuring the setclock Script ##########
cat > /etc/sysconfig/clock << "EOF"
# Begin /etc/sysconfig/clock
UTC=0
# End /etc/sysconfig/clock
EOF
########## 7.8. Creating the /etc/inputrc File ##########
# /etc/inputrc File
cat > /etc/inputrc << "EOF"
# Begin /etc/inputrc
# Modified by Chris Lynn <roryo@roryo.dynup.net>
# Allow the command prompt to wrap to the next line
set horizontal-scroll-mode Off
# Enable 8bit input
set meta-flag On
set input-meta On
# Turns off 8th bit stripping
set convert-meta Off
# Keep the 8th bit for display
set output-meta On
# none, visible or audible
set bell-style none
# All of the following map the escape sequence of the
# value contained inside the 1st argument to the
# readline specific functions
"\eOd": backward-word
"\eOc": forward-word
# for linux console
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
# for xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# for Konsole
"\e[H": beginning-of-line
"\e[F": end-of-line
# End /etc/inputrc
EOF
########## 7.9. The Bash Shell Startup Files ##########
locale -a
LC_ALL=en_GB.iso88591 locale charmap
LC_ALL=en_GB.ISO-8859-1 locale language
LC_ALL=en_GB.ISO-8859-1 locale charmap
LC_ALL=en_GB.ISO-8859-1 locale int_curr_symbol
LC_ALL=en_GB.ISO-8859-1 locale int_prefix
cat > /etc/profile << "EOF"
# Begin /etc/profile
#export LANG=POSIX
export LANG=en_GB.ISO-8859-1
export INPUTRC=/etc/inputrc
# End /etc/profile
EOF
echo "HOSTNAME=LFS6.25" > /etc/sysconfig/network
########## 7.11. Customizing the /etc/hosts File ##########
cat > /etc/hosts << "EOF"
# Begin /etc/hosts (network card version)
127.0.0.1 localhost
192.168.1.2 localhost LFS6.25
#192.168.1.2 HOSTNAME.example.org [alias1] [alias2 ...]
# End /etc/hosts (network card version)
EOF
########## 7.12. Creating custom symlinks to devices ##########
# cd /sys/block/hdd
# udevtest /block/hdd
# cd /sys/block/hdc
# udevtest /block/hdc
cat >/etc/udev/rules.d/82-cdrom.rules << EOF
# Custom CD-ROM symlinks
SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", ENV{ID_PATH}=="pci-0000:00:0f.1-ide-1:0", SYMLINK+="cdrom"
SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", ENV{ID_PATH}=="pci-0000:00:0f.1-ide-1:1", SYMLINK+="cdrom1 dvd"
EOF
########## 7.13. Configuring the network Script ##########
# grep -H . /sys/class/net/*/address
cat > /etc/udev/rules.d/26-network.rules << EOF
ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:11:09:d0:00:6f", NAME="eth0"
ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:00:00:00:00:00", NAME="lo"
EOF
########## 7.13.2 Creating Network Interface Configuration Files ##########
cd /etc/sysconfig/network-devices &&
mkdir -v ifconfig.eth0 &&
cat > ifconfig.eth0/ipv4 << "EOF"
ONBOOT=yes
SERVICE=ipv4-static
IP=10.62.13.25
GATEWAY=10.62.13.254
PREFIX=24
BROADCAST=10.62.13.255
EOF
########## 7.13.3. Creating the /etc/resolv.conf File ##########
cat > /etc/resolv.conf << "EOF"
# Begin /etc/resolv.conf
domain localhost
nameserver 202.114.200.254
#nameserver 218.104.78.2
# End /etc/resolv.conf
EOF
########### 8. Making the LFS System Bootable ##########
cat > /etc/fstab << "EOF"
# Begin /etc/fstab
# file system mount-point type options dump fsck
# order
/dev/sda4 / ext3 defaults 1 1
#/dev/hda3 swap swap pri=1 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts gid=4,mode=620 0 0
shm /dev/shm tmpfs defaults 0 0
# End /etc/fstab
EOF
涉及到系统启动的脚本有哪几个,会不会是前面出了问题? |
|