LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Problems with logging in after finishing the 7.2 LFS book (https://www.linuxquestions.org/questions/linux-from-scratch-13/problems-with-logging-in-after-finishing-the-7-2-lfs-book-4175450548/)

giuliom_95 02-17-2013 01:58 PM

Quote:

Originally Posted by druuna (Post 4893802)
Just to be sure: You cannot log into LFS, so am I assuming correctly that all the commands shown above are done on your host and from within the chrooted environment?

I'm asking because this might look strange (not 100% sure):LFS 7.2 uses kernel/header version 3.5.2 and I would expect this to show and not 2.6.25. But like I said: Not 100% sure about that.

Yes I've run above commands by a chrooted system but I think that the 2.6.25 is not important because the host system is Fedora 15 with a 2.6.43 and I've tried to chroot also from a Fedora 18 64bit with a 3.7.6 linux

druuna 02-17-2013 02:24 PM

Quote:

Originally Posted by giuliom_95 (Post 4893848)
.... I think that the 2.6.25 is not important because the host system is Fedora 15 with a 2.6.43 ...

That difference isn't a problem: The 2.6.25 points to the headers used during the build, the system can in the mean time have gone up a few versions (2.6.43 in your example). LFS is a freshly install and bash was build against the 3.5.2 kernel headers and no kernel updates are done so I expected to see that.

I can't come up with anything else at the moment.

giuliom_95 02-17-2013 02:38 PM

Quote:

Originally Posted by druuna (Post 4893862)
That difference isn't a problem: The 2.6.25 points to the headers used during the build, the system can in the mean time have gone up a few versions (2.6.43 in your example). LFS is a freshly install and bash was build against the 3.5.2 kernel headers and no kernel updates are done so I expected to see that.

I can't come up with anything else at the moment.

The kernel has not been updated in the meantime and sincerly I don't know how 2.6.25 is come out

UPDATE:
The kernel version 2.6.25 come out from the installation of glibc which was configured for supporting kernels after 2.6.35 as described here

giuliom_95 02-18-2013 07:47 AM

I've found the problem: the root row in the /etc/passwd was "root:x:0:0:root:/root:/bin/bash " instead of "root:x:0:0:root:/root:/bin/bash" so the system was looking for "/bin/bash " and not "/bin/bash"

spiky0011 02-18-2013 12:57 PM

Sorry it wasn't spotted by us, at least you got it figuered

giuliom_95 02-18-2013 02:23 PM

Anyway thanks for your helpinp: no one had to think about a typing error. This was just a tipical overtrusting of the TAB key!


All times are GMT -5. The time now is 10:07 PM.