Hi Grail<div><br></div><div>I was out for the weekend and got a chance to compare the procedures of x86 and x86_64 a bit more today. I then found:  x86_64 missed creating a symbolic link /bin/login -> /tools/bin/login</div>

<div>
<br></div><div>In x86:</div><div>ln -sv /tools/bin/{bash,cat,echo,grep,login,pwd,sleep,stty} ${CLFS}/bin</div><div><br></div><div>But in x86_64 it was instead:</div><div>ln -sv /tools/bin/{bash,cat,echo,grep,pwd,sleep,stty} ${CLFS}/bin</div>


<div><br></div><div>Now I'm able to login and get the bash shell. Will now try out the remaining steps and update how it went and most probably bug you guys back again when I'm stuck :D</div><div><br></div><div>PS: I guess agetty takes the username and passes it onto login binary, which is the one which asks for the password (at least what I could observe based on the man page of login and the problem I faced)</div>


<div><br></div><div>Thanks.</div><div><br></div><div>-Ash<br><br><div class="gmail_quote">On Tue, Jul 5, 2011 at 5:04 PM, Grail Dane <span dir="ltr"><<a href="mailto:grail69@hotmail.com" target="_blank">grail69@hotmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">
Hi Ash<div><br></div><div>I unfortunately have not done the boot process before, but suspect that it will be along the same lines in that it needs to look in /tools/etc...</div><div>(don't quote me).</div><div><br></div>


<div>I do know that the agetty (or whichever tty program you are using) is required for login and then should be able to reference</div><div>the required files you have mentioned.</div><div><br></div><div>Sorry I cannot seem to be more help here :(  Should you get it working though I would like to hear what the solution is for future knowledge :)</div>


<div><br></div><div>Cheers</div><div>grail<br><br><div><div><hr>From: <a href="mailto:ash25.icon@gmail.com" target="_blank">ash25.icon@gmail.com</a><br></div>Date: Sun, 3 Jul 2011 22:31:26 -0700<div><div></div>
<div><br>To: <a href="mailto:clfs-support@lists.cross-lfs.org" target="_blank">clfs-support@lists.cross-lfs.org</a><br>Subject: Re: [Clfs-support] CLFS - Unable to login on the first bootup<br><br>Yes Grail<div>
<br></div><div>"ln -sv /tools/sbin/{agetty,blkid} ${CLFS}/sbin" is missing in Step 7.3 "Creating Essential Symlinks" in the GIT-20110622-x86_64-Multilib version.Might be it got removed by mistake sometime after 201103xxx as well.</div>




<div><br></div><div>But I'm still kinda stumped on why doesn't it allow me to login into the system. :(</div><div><br></div><div>I get back the same login prompt again - I dont even get a password prompt. I do see that /sbin/sulogin binary exists at the right location (not sure if this is the one responsible for login).</div>




<div><br></div><div>Any ideas on what binaries and config files does the login actually look for ? (The files which come to my mind are /etc/passwd, /etc/shadow both of which does look valid). I'm quite sure one of these other files responsible for login is where the problem lies.</div>




<div><br></div><div>Thanks.</div><div><br></div><div>-Ashwin<br><br><div>On Sun, Jul 3, 2011 at 7:55 PM, Ashwin Gururaghavendran <span dir="ltr"><<a href="mailto:ash25.icon@gmail.com" target="_blank">ash25.icon@gmail.com</a>></span> wrote:<br>




<blockquote style="border-left:1px #ccc solid;padding-left:1ex">No actually I'm not building for a different architecture but just thought it would be easy and cleaner to boot rather than chroot (or now I realize it is the other way around).<div>




<br></div><div>Yes what you said makes sense, the steps for different architectures looks a little different, I'll try to see if there is some extra step there I might have missed for x86-64.</div>
<div><br></div><div>Thanks.</div><div><br></div><div>-Ash<br><br><div><div><div></div><div>On Sun, Jul 3, 2011 at 7:04 PM, Grail Dane <span dir="ltr"><<a href="mailto:grail69@hotmail.com" target="_blank">grail69@hotmail.com</a>></span> wrote:<br>





</div></div><blockquote style="border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>



<div><div dir="ltr">
<font face="Tahoma" size="2">Hi Ash</font><div style="font-family:Tahoma;font-size:10pt"><br></div><div style="font-family:Tahoma;font-size:10pt">Sorry I forgot to look at the part where you said 'multilib' :(</div>





<div style="font-family:Tahoma;font-size:10pt"><br></div><div style="font-family:Tahoma;font-size:10pt">I have noticed though that there is a difference in the Boot sections of different builds (but not sure why).</div><div style="font-family:Tahoma;font-size:10pt">





<br></div><div style="font-family:Tahoma;font-size:10pt">In GIT-20110703-x86 version they have:</div><div style="font-family:Tahoma;font-size:10pt"><br></div><div><font face="Tahoma" size="2">ln -sv /tools/sbin/{agetty,blkid} ${CLFS}/sbin</font></div>





<div><font face="Tahoma" size="2"><br></font></div><div><font face="Tahoma" size="2">Which yours does not ??<br></font></div><div><font face="Tahoma" size="2"><br></font></div><div><font face="Tahoma" size="2">So only thing I can think of is to have a look and see if there are any other steps that might be missing.<br>





</font></div><div><div style="font-family:Tahoma"><br></div><div style="font-family:Tahoma"><div style="font-size:10pt"></div><font size="2">Also, just out of curiosity, are you building for a different architecture and so are choosing to boot?<br>





Cheers</font></div><div style="font-family:Tahoma"></div><div style="font-family:Tahoma"></div><div style="font-family:Tahoma"><div><font size="2">grail<br></font><hr><font size="2">From: <a href="mailto:ash25.icon@gmail.com" target="_blank">ash25.icon@gmail.com</a></font><br>





</div><font size="2">Date: Sun, 3 Jul 2011 18:37:46 -0700</font><div><br><font size="2">To: <a href="mailto:clfs-support@lists.cross-lfs.org" target="_blank">clfs-support@lists.cross-lfs.org</a></font><br></div>
<font size="2">Subject: Re: [Clfs-support] CLFS - Unable to login on the first bootup</font><div><div></div><div><br><br><font size="2">HI Grail</font><div style="font-size:10pt"><br></div><div style="font-size:10pt">
I didn't quite get you there. Among the two routes to initially set up the system - "7 - If you're going to boot" and "8 - If you're going to chroot", I chose 7. So at the end of it I was on the assumption that I should boot up the initial/temporary system using the basic kernel I've built in step 7.10.</div>







<div style="font-size:10pt"><br></div><div style="font-size:10pt">Or do you happen to say I could happen to proceed with steps in chapters 9, 10 and above where I get to build the actual packages and tools for my system right from my host machine (without a chroot) ?</div>







<div style="font-size:10pt"><br></div><div style="font-size:10pt">Sorry if this question sounds silly, but I happen to be lost here.</div><div style="font-size:10pt"><br></div><div style="font-size:10pt">Thanks.</div><div style="font-size:10pt">





<br></div><div style="font-size:10pt">-Ash</div><div style="font-size:10pt"><br><div>On Sun, Jul 3, 2011 at 4:39 PM, Grail Dane <span dir="ltr"><<a href="mailto:grail69@hotmail.com" target="_blank">grail69@hotmail.com</a>></span> wrote:<br>







<blockquote style="border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">
Hi Ash<div><br></div><div>As you have only completed part of the solution I am not sure why you thought you would be able to boot the system??</div><div><br></div><div>Regards</div><div>grail</div><div><div><hr>From: <a href="mailto:ash25.icon@gmail.com" target="_blank">ash25.icon@gmail.com</a><br>







Date: Fri, 1 Jul 2011 11:15:54 -0700<br>To: <a href="mailto:clfs-support@lists.cross-lfs.org" target="_blank">clfs-support@lists.cross-lfs.org</a><br>Subject: [Clfs-support] CLFS - Unable to login on the first bootup<div>







<div></div><div><br><br>Hi<div><br></div><div>I'm following CLFS: Version GIT-20110622-x86_64-Multilib</div><div><br></div><div>I'm using openSUSE 11.4 as the host machine to build the cross-to and other basic tools for the minimal CLFS system booting.</div>









<div><br></div><div>This is the minimalistic system refered in Chapter 7 "If You Are Going to Boot" and not the final CLFS system.</div><div><br></div><div>I got through with the steps mentioned in chapters 1-7 without any errors.</div>









<div><br></div><div>When I finally went to boot the system I initially got an unable to mount root fs error. It said tried ext2, ext3, ntfs and stuff (but didn't mention ext4). Then I realized I had not compiled ext4 into the kernel but just as a module. I rebuild the kernel separately once again and I had success in getting past this error.</div>









<div><br></div><div>But it was complaining about spawning /sbin/agetty and so did not get any login prompt. I booted into my host machine and noticed that /sbin didn't contain agetty, instead it was present in /tools/sbin but according to the steps in chapter 7.6, it the lines look as below:</div>









<div>1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600</div><div><br></div><div>So either util-linux didn't install them to the proper location (should it have been ${CLFS} instead of /tools ?) or I missed some detail/step.</div>









<div><br></div><div>I tried modifying the /etc/inittab to use /tools/sbin/agetty instead of /sbin/agetty, and now I get a login prompt but entering username as root does not login into the system. :( It doesn't print any error messages but waits for roughly 30 seconds and again displays the login prompt.</div>









<div><br></div><div>I also copied the line from /etc/shadow on my host machine for the user root into ${CLFS}/etc/shadow. I even created an empty ${CLFS}/etc/gshadow. But still the same behaviour. </div><div><br></div><div>









Any help here would be appreciated. Let me know if I need to post any additional logs or even my kernel's .config file. Thanks.</div><div><br></div><div>-Ash</div>
<br></div></div>_______________________________________________
Clfs-support mailing list
<a href="mailto:Clfs-support@lists.cross-lfs.org" target="_blank">Clfs-support@lists.cross-lfs.org</a>
<a href="http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org" target="_blank">http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org</a></div></div>                                       </div></div>
<br>_______________________________________________<br>
Clfs-support mailing list<br>
<a href="mailto:Clfs-support@lists.cross-lfs.org" target="_blank">Clfs-support@lists.cross-lfs.org</a><br>
<a href="http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org" target="_blank">http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org</a><br>
<br></blockquote></div><br></div>
<br><font size="2">_______________________________________________
Clfs-support mailing list
<a href="mailto:Clfs-support@lists.cross-lfs.org" target="_blank">Clfs-support@lists.cross-lfs.org</a>
<a href="http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org" target="_blank">http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org</a></font></div></div></div></div>                                          </div></div>
<br></div></div>_______________________________________________<div><br>
Clfs-support mailing list<br>
<a href="mailto:Clfs-support@lists.cross-lfs.org" target="_blank">Clfs-support@lists.cross-lfs.org</a><br>
<a href="http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org" target="_blank">http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div>
<br>_______________________________________________
Clfs-support mailing list
<a href="mailto:Clfs-support@lists.cross-lfs.org" target="_blank">Clfs-support@lists.cross-lfs.org</a>
<a href="http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org" target="_blank">http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org</a></div></div></div></div>                                       </div></div>
<br>_______________________________________________<br>
Clfs-support mailing list<br>
<a href="mailto:Clfs-support@lists.cross-lfs.org" target="_blank">Clfs-support@lists.cross-lfs.org</a><br>
<a href="http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org" target="_blank">http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org</a><br>
<br></blockquote></div><br></div>