Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175106 - sulogin calls don't hide splash
Summary: sulogin calls don't hide splash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-18 15:31 UTC by Daniel Drake (RETIRED)
Modified: 2007-05-04 15:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (sulogin.patch,2.25 KB, patch)
2007-04-18 15:50 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Drake (RETIRED) gentoo-dev 2007-04-18 15:31:49 UTC
checkfs and checkroot init scripts call sulogin.

Calls to sulogin don't remove the splash, giving the impression that the system has hung.

Here's an initial attempt at solving this, by adding an ALRM signal handler.
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2007-04-18 15:50:04 UTC
Created attachment 116641 [details, diff]
patch

This doesn't work exactly as I'd like it, it doesn't reboot after sulogin, but it's a start...
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-04-19 07:05:26 UTC
I'm now wondering if we should move the system into single user mode instead of doing sulogin.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-04-20 13:10:20 UTC
OK, we've put a slighty different patch into our svn. Init scripts can now call rc-abort which if in the boot runlevel will do the following

Send SIGTERM to all rc started processes.
Switch to single user mode.

Speaking of single user mode, the current svn has an issue where sulogin won't grab the keyword in single user mode. I'm unsure of why this is as that code hasn't changed much. We also cannot use the read_key function as it hard locks the console. This only seems to happen on sysinit and single user. Any help in fixing that would be nice :)
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-04-20 21:43:52 UTC
(In reply to comment #3)
 issue where sulogin won't
> grab the keyword in single user mode. I'm unsure of why this is as that code
> hasn't changed much. We also cannot use the read_key function as it hard locks
> the console. This only seems to happen on sysinit and single user. Any help in
> fixing that would be nice :)

That's fixed now. Silly setpgid taking away my keyboard, so having to maintain a list of pids.
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-05-04 15:35:08 UTC
Fixed in baselayout-2.0.0_alpha2