WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Screen clearing during boot  (Read 1889 times)

Offline andyj

  • Hero Member
  • *****
  • Posts: 760
Screen clearing during boot
« on: June 19, 2016, 08:43:45 AM »
During the boot process the screen is cleared twice: Once at the beginning of tc-config, and again in /root/.profile. It would be nice if there was a way to prevent this so we could see error messages before they get zapped. The first would be easy to solve, and so my request is that the clear command (which is the first executable statement in tc-config) be moved to the end of rcS just before tc-config is called. Since rcS is designed to be customizable across versions, it would be up to the end user to keep it or not. The second place would be to move it from /root/.profile to /etc/skel/.profile so again each user could have it or not. I think this would be better than creating a kernel command line option and checking for it. That just sounds like more overhead (bloat).

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10069
Re: Screen clearing during boot
« Reply #1 on: June 19, 2016, 10:13:05 AM »
Do you mean the "pause" bootcode?
The only barriers that can stop you are the ones you create yourself.

Offline andyj

  • Hero Member
  • *****
  • Posts: 760
Re: Screen clearing during boot
« Reply #2 on: June 21, 2016, 08:57:59 AM »
No. Pause only addresses the second clear sort of, insofar as you get to see what's on the screen since the first clear before it's cleared again after you acknowledge the pause. I would like it to boot completely and unattended so I can see kernel errors, TC errors, and profile errors all together and no clearing at all. This makes debugging easier than trying to remember what was on a previous screen that might have been relevant to the error I'm looking at now.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10069
Re: Screen clearing during boot
« Reply #3 on: June 21, 2016, 10:44:04 AM »
Okay, moving the first clear is fine. I'm not sure about the second one, root's .profile changes about as rarely as rcS, and it is read after backup restore anyway.

I don't have time to test it now, please ping in a week or two if I forget.
The only barriers that can stop you are the ones you create yourself.

Offline andyj

  • Hero Member
  • *****
  • Posts: 760
Re: Screen clearing during boot
« Reply #4 on: June 21, 2016, 12:11:40 PM »
Since as you say .profile shouldn't change anymore than rcS, I should be OK just taking the clear commands out of those two in my secondary initrd. Moving the first one from tc-config should get me where I want to be. I don't want to be dealing with backporting changes to tc-config with every version. Thanks.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10069
Re: Screen clearing during boot
« Reply #5 on: June 22, 2016, 03:12:56 AM »
Changed in git, look for it in the next release.
The only barriers that can stop you are the ones you create yourself.