LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-23-2015, 11:59 AM   #1
KeeganDeathman
Member
 
Registered: Jun 2015
Distribution: Ubuntu 15.10
Posts: 33

Rep: Reputation: Disabled
Lfs 7.7 boots to green background non inactive shell


Okay so I've got most of the bugs ironed out, but when I boot, lfs opens a shell, ribs some scripts, then the console background turns green. And then nothing. No login shell. Not even an inactive , just the green background of the script. What?
 
Old 07-23-2015, 07:01 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Can you post your /etc/inittab and /boot/grub/grub.cfg files?
 
Old 07-23-2015, 07:10 PM   #3
KeeganDeathman
Member
 
Registered: Jun 2015
Distribution: Ubuntu 15.10
Posts: 33

Original Poster
Rep: Reputation: Disabled
grub:
Code:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5

insmod ext2
set root=(hd0,1)

menuentry "GNU/Linux, Linux 3.19-lfs-7.7" {
        linux   /boot/vmlinuz-3.19-lfs-7.7 root=/dev/sda1 ro
}
inittab
Code:
# Begin /etc/inittab

id:3:initdefault:

si::sysinit:/etc/rc.d/init.d/rc S

l0:0:wait:/etc/rc.d/init.d/rc 0
l1:S1:wait:/etc/rc.d/init.d/rc 1
l2:2:wait:/etc/rc.d/init.d/rc 2
l3:3:wait:/etc/rc.d/init.d/rc 3
l4:4:wait:/etc/rc.d/init.d/rc 4
l5:5:wait:/etc/rc.d/init.d/rc 5
l6:6:wait:/etc/rc.d/init.d/rc 6

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

su:S016:once:/sbin/sulogin

1:2345:respawn:/sbin/agetty --noclear tty1 9600
2:2345:respawn:/sbin/agetty tty2 9600
3:2345:respawn:/sbin/agetty tty3 9600
4:2345:respawn:/sbin/agetty tty4 9600
5:2345:respawn:/sbin/agetty tty5 9600
6:2345:respawn:/sbin/agetty tty6 9600

# End /etc/inittab
 
Old 07-23-2015, 07:50 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Okay, that looks good here. Next questions:

What configuration did you use to build your kernel? Did you use the automatic 'defconfig' which generates the default kernel configuration, or did you import one from another distribution like your host (Ubuntu maybe)?

Did you at any time adjust or tamper with any of the configuration files, like /etc/sysconfig/rc.site?

Can you also post your /etc/profile file as well?

Last edited by ReaperX7; 07-23-2015 at 07:55 PM.
 
Old 07-23-2015, 07:52 PM   #5
KeeganDeathman
Member
 
Registered: Jun 2015
Distribution: Ubuntu 15.10
Posts: 33

Original Poster
Rep: Reputation: Disabled
i did make defconfig by default and then when that crashed my lfs, I went back and enabled a bunch of things based on the error and lspci(oh and disabing uevent), like sata, nvidia, amd, thunderbolt, android, etc.
Import from ubuntu? I can do that?
 
Old 07-23-2015, 08:06 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Yes, but importing some configurations is tricky. The best configuration I found was the Slackware Huge Kernel.

http://mirrors.slackware.com/slackwa...ge-3.18.11.x64

Save it to your /sources directory with everything else, then:

Code:
cp -v /sources/config-huge-3.18.11.x64 /sources/linux-3.19/.config

make olddefconfig (This will update everything to 3.19)
Then build and install the kernel as normal. It will install a lot of extra modules and support vectors, but you might have accidentally enabled a bad setting.
 
Old 07-23-2015, 08:07 PM   #7
KeeganDeathman
Member
 
Registered: Jun 2015
Distribution: Ubuntu 15.10
Posts: 33

Original Poster
Rep: Reputation: Disabled
okay, so keep that tar ball handy(the base kernel I mean)
Thanks
 
Old 07-23-2015, 08:17 PM   #8
KeeganDeathman
Member
 
Registered: Jun 2015
Distribution: Ubuntu 15.10
Posts: 33

Original Poster
Rep: Reputation: Disabled
I think I missed a couple steps.
Was I supposed to re run make and make modules_config? Because I didn't
 
Old 07-23-2015, 08:40 PM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Yes. You have to rebuild the kernel.

make
make modules_install

The follow the steps to install it again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Totally GREEN: Perl/Shell Copy Shavonn Linux - Newbie 4 07-20-2012 10:27 AM
system boots into desktop background but no GUI ,no icons,no toolpanels davefrank Linux - Desktop 6 02-03-2011 10:51 AM
[SOLVED] Issues with /dev/pts & /dev/shm, when LFS boots zer0signal Linux From Scratch 2 12-21-2010 07:14 AM
How to change light green text color to dark green of xterm ? cola Slackware 13 01-03-2010 09:07 AM
Slack10 only boots in a shell after reformatting and restoring Qcfranco Slackware - Installation 2 08-16-2004 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration