Bug 447216
| Summary: | Can't set default init level to 5; booting with init=5 fails | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | D. Wagner <daw-redhatbugzilla> |
| Component: | initscripts | Assignee: | Bill Nottingham <notting> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 9 | CC: | jbgallagher2000, rvokal |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-11-24 20:12:21 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
D. Wagner
2008-05-18 21:10:45 UTC
By the way, see this thread for more information about my attempts to resolve the problem: http://forums.fedoraforum.org/showthread.php?p=1013575#post1013575 and information on the contents of my /etc/inittab file. init=5 isn't valid - that's saying to use the file named '5' as the init command. You just want to pass '5'. fedoraforum appears to be having issues at the moment. Can you paste your /etc/inittab file here? (In reply to comment #2) > fedoraforum appears to be having issues at the moment. Can you paste your > /etc/inittab file here? Right now my /etc/inittab has exactly one non-comment line: id:5:initdefault: This is a result of my editing the file to change 3 to 5; before I edited the file to try to change the default init level, it contained exactly one non-comment line: id:3:initdefault: Hm. Can you attach the file? Does booting with just '5' (as oppposed to 'init=5') work for you? (In reply to comment #4) > Hm. Can you attach the file? > > Does booting with just '5' (as oppposed to 'init=5') work for you? Let me get back to you with the attachment (the machine is currently airgapped, for security purposes). Yes, booting with just '5' works for me and solves the problem. The /etc/event.d/rcS script selects the runlevel from /etc/inittab by doing an awk scan for lines of the type *:*:initdefault So in particular it doesn't ignore comments, which is a bug. In this case the user had commented out the line "id:5:initdefault:" and added "id:3:initdefault:" underneath. The awk scan in /etc/event.d/rcS was still picking up the 5 from the commented line, and hence still booting into runlevel 5 Thanks, J Gallagher. I filed a new bug report on this, so that this doesn't get missed. See bug #472717 (https://bugzilla.redhat.com/show_bug.cgi?id=472717). *** Bug 472717 has been marked as a duplicate of this bug. *** http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=fe48747faa0fe0f473f24d26e9a1059ef96cdb80 This is also on the F9 and F10 branches, and will be included in any future updates to those releases. |