etc of the host changes while working in chroot env
hi i m working on the sixth chapter of lfs 6.0 but as soon as i run the commands
cat > /etc/passwd << "EOF"
root:x:0:0:root:/root:/bin/bash
EOF
and
cat > /etc/group << "EOF"
root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
tape:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x:9:
dialout:x:10:
audio:x:11:
video:x:12:
utmp:x:13:
usb:x:14:
EOF
the changes are reflected in the etc file of the host system as well
which at later stage leads to crashing of my system
while entering the chroot env i do
su
which gets the root:/$
then cd /mnt/lfs which gets root:/mnt/lfs:$
and we are running all the command of chapter 6 at this prompt only
is this the reason for such a problem?
looking forward to a quick reply!
please help as i have to finish the project within june
|