LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Lfs 7.7 boots to green background non inactive shell (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-7-7-boots-to-green-background-non-inactive-shell-4175548744/)

KeeganDeathman 07-23-2015 11:59 AM

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?

ReaperX7 07-23-2015 07:01 PM

Can you post your /etc/inittab and /boot/grub/grub.cfg files?

KeeganDeathman 07-23-2015 07:10 PM

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


ReaperX7 07-23-2015 07:50 PM

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?

KeeganDeathman 07-23-2015 07:52 PM

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?

ReaperX7 07-23-2015 08:06 PM

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.

KeeganDeathman 07-23-2015 08:07 PM

okay, so keep that tar ball handy(the base kernel I mean)
Thanks

KeeganDeathman 07-23-2015 08:17 PM

I think I missed a couple steps.
Was I supposed to re run make and make modules_config? Because I didn't

ReaperX7 07-23-2015 08:40 PM

Yes. You have to rebuild the kernel.

make
make modules_install

The follow the steps to install it again.


All times are GMT -5. The time now is 11:26 PM.