>On Fri, 15 Oct 2010 13:59:02 +0200 >Alberto Hernando <[email protected]> wrote: > > Hi. > > I've put the instructions from the book in a script: > > baratito:~# cat chroot_lfs.sh > #!/bin/bash > > LFS="/media/lfs" > MAKEFLAGS="-j 2" > mount -v --bind /dev $LFS/dev > mount -vt devpts devpts $LFS/dev/pts > mount -vt tmpfs shm $LFS/dev/shm > mount -vt proc proc $LFS/proc > mount -vt sysfs sysfs $LFS/sys > > chroot "$LFS" /tools/bin/env -i \ > HOME=/root TERM="$TERM" MAKEFLAGS="$MAKEFLAGS" > PARALLELMFLAGS="$MAKEFLAGS" PS1='\u:\w\$ ' \ > PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ > /tools/bin/bash --login +h > > I just run it to enter the chroot. > > About timestamps: > > baratito:~# date > vie oct 15 13:55:00 CEST 2010 > baratito:~# sh chroot_lfs > sh: chroot_lfs: No existe el fichero o el directorio > baratito:~# date > vie oct 15 13:55:10 CEST 2010 > baratito:~# sh chroot_lfs.sh > /dev on /media/lfs/dev type none (rw,bind) > devpts on /media/lfs/dev/pts type devpts (rw) > shm on /media/lfs/dev/shm type tmpfs (rw) > proc on /media/lfs/proc type proc (rw) > sysfs on /media/lfs/sys type sysfs (rw) > root:/# date > Fri Oct 15 11:55:15 UTC 2010 > > There is really a difference. Perhaps the loop appears because the > build takes more than 2 hours? > Anyway, I did all the building with the "wrong" hour and timestamp. > And the chroot isn't in the future but the past. > Looks like the right place to look, but what? > > Alberto
This actually does make sense, but only if a premise holds: that you untar the sources with the real time, and try building them with the 2-hours-in-the-past chroot time (however, in reality, 10h UTC and 12h CEST are one and the same time, but filesystem does not account for timegroups). It is simple to check this: ls -l $GLIBC_SOURCE_DIR, and see the times. If it holds true (sources have timestamps two hours in the future), then that's you problem. Perhaps untaring them once you enter chroot will do the trick (if you already do that, then the solution is more complicated). -- -Aleksandar Kuktin -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
