Le 22/07/2013 16:00, Bruce Dubbs a écrit :
On Mon, Jul 22, 2013 at 8:31 AM, Igor Živković
<cont...@igor-zivkovic.from.hr> wrote:
Hi,
Somehow I always forget to edit /etc/resolv.conf after building LFS with
jhalfs. Could we mention it with other listed files, please?
It is mentioned in section 9.3 of the book. It might be nice to
mention it in the final
jhalfs screen also.
A technique I use is to exit chroot and copy the configuration files
from the host
to /mnt/lfs/etc. This probably is only useful when going from lfs ->
lfs but other
useful files include passwd, group, and shadow as well as root's
.bash_profile and
.bashrc. A simple bash script may be helpful here.
If building ssh in chroot, you may want to copy the sshd keys from the host
to the new system too.
Another possibility is to use the "custom" possibility of jhalfs.
Attached is a sample file (to be put in the custom/config directory) for
network configuration.
Pierre
#
# $Id: template 3561 2012-02-19 10:54:17Z pierre $
#
# Any comments you wish to add
#
PKG=""
PKG_VERSION=""
PKG_FILE=""
URL=""
MD5=""
for i in PATCH{1..10}; do
unset $i
done
PATCH1=""
( cat << "xEOFx"
cat > /etc/hosts << "EOF"
# Begin /etc/hosts (network card version)
127.0.0.1 localhost
10.0.2.9 virtuallfs
# End /etc/hosts (network card version)
EOF
cat > /etc/sysconfig/ifconfig.eth0 << "EOF"
ONBOOT=yes
IFACE=eth0
SERVICE=ipv4-static
IP=10.0.2.9
GATEWAY=10.0.2.2
PREFIX=24
BROADCAST=10.0.2.255
EOF
cat > /etc/resolv.conf << "EOF"
# Begin /etc/resolv.conf
search lcar.ups-tlse.fr
nameserver 130.120.124.102
nameserver 195.220.59.6
# End /etc/resolv.conf
EOF
echo "HOSTNAME=virtuallfs" > /etc/sysconfig/network
xEOFx
) > tmp
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page