|
楼主 |
发表于 2002-12-31 20:59:12
|
显示全部楼层
KJ兄,我重启后,这些都做了:
export LFS=/mnt/lfs
mkdir -p $LFS &&
mount /dev/xxx $LFS
chown -R lfs $LFS/static
su lfs
cat > ~lfs/.bash_profile << "EOF"
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
CC='gcc -s'
export LFS LC_ALL CC
EOF
这些我每次重启都做的,可是到了第六章,我执行如下命令:成为root后运行下列命令进入chroot环境:
chroot $LFS /static/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
/static/bin/bash --login
执行chown -R 0:0 /static 错误如下:
ot@Richard root]# chown -R 0:0 /static
chown: 无法取得 ‘/static’ 的属性: No such file or directory
最后执行:
mkdir -p /{bin,boot,dev/pts,etc/opt,home,lib,mnt,proc} &&
mkdir -p /{root,sbin,tmp,usr/local,var,opt} &&
for dirname in /usr /usr/local
do
mkdir $dirname/{bin,etc,include,lib,sbin,share,src}
ln -s share/{man,doc,info} $dirname
mkdir $dirname/share/{dict,doc,info,locale,man}
mkdir $dirname/share/{nls,misc,terminfo,zoneinfo}
mkdir $dirname/share/man/man{1,2,3,4,5,6,7,8}
done &&
mkdir /var/{lock,log,mail,run,spool} &&
mkdir -p /var/{tmp,opt,cache,lib/misc,local} &&
mkdir /opt/{bin,doc,include,info} &&
mkdir -p /opt/{lib,man/man{1,2,3,4,5,6,7,8}} &&
ln -s ../var/tmp /usr
说了一大堆无法覆盖目录的提示,
帮忙看看吧,KJ兄弟! |
|