Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401347 - sys-apps/sysvinit: improve error message if the package is not installed
Summary: sys-apps/sysvinit: improve error message if the package is not installed
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-29 16:39 UTC by Martin Mokrejš
Modified: 2012-01-30 22:19 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2012-01-29 16:39:23 UTC
I somehow forgot to install sysvinit during new install. The boot process ends up with:

sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
sh-4.2# _

Is there a  way to catch the situation earlier and report more informative message to the user? OpenRC improvement?



Looks I was not the only one hitting this. One example is at:
http://forums-lb.gentoo.org/viewtopic-p-6927740.html?sid=491ea492e74412d4a06e51512ed69f53
Comment 1 SpanKY gentoo-dev 2012-01-30 16:40:01 UTC
i don't see how you can forget to install sysvinit.  openrc requires a virtual/init, and that requires sysvinit.  thus that package should be on a stage3 (and indeed, when i look at stage3-amd64-20120126.tar.bz2.CONTENTS, it is already installed).

the message you cite is a general bash error message.  customizing it to spew a message about sysvinit/openrc doesn't make much sense to me.

the kernel, during boot, will attempt to execute /sbin/init and if that fails, fall back to /bin/sh.  at which point, you see the warning from bash.
Comment 2 Martin Mokrejš 2012-01-30 17:35:25 UTC
Hmm, I also do not know but somehow I did not have the file and portage said
it really isn't installed. I checked now as well what was in the stage3 file I used and you are correct, the files is in there. But re-installing the package helped. Do you have an explanation for that? ;-)
Comment 3 SpanKY gentoo-dev 2012-01-30 22:19:15 UTC
i don't see how it could have unmerged w/out using -C or --depclean