initdefault has no effect
Ed Greshko
Ed.Greshko at greshko.com
Tue Apr 7 04:33:28 UTC 2009
Mike Burger wrote:
>> Ed Greshko wrote:
>>
>>> Ed Greshko wrote:
>>>
>>>
>>>> Mike Burger wrote:
>>>>
>>>>
>>>>
>>>>> Mike Burger wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Tim wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> On Sun, 2009-04-05 at 22:42 -0700, Jonathan Ryshpan wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> I have /etc/inittab set up as follows, but the system always starts
>>>>>>>> with the X Window System running. What am I missing?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> # id:5:initdefault:
>>>>>>>> id:1:initdefault:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> I seem to recall seeing that before, delete the commented-out line.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> In order to comment out a line in inttab, you need to use a
>>>>>> semicolon, rather than a pound sign.
>>>>>>
>>>>>>
>>>>>>
>>>>> To clarify...the reason that this didn't work, in the first place, is
>>>>> that the initial initdefault line wasn't truly commented out, due to
>>>>> the pound sign instead of the semicolon.
>>>>>
>>>>> After that, the init processing for an entry stops on the first
>>>>> match...since the "not properly commented" entry was first, it got
>>>>> matched, and runlevel 5 was how the system came up.
>>>>>
>>>>>
>>>>>
>>>>>
>>>> I don't quite understand what you are saying....
>>>>
>>>> You said "the init processing for an entry stops on the first match".
>>>> What is being matched to what? Also, if the # isn't a comment
>>>> character
>>>> then how are the other 25 lines in the inittab being parsed?
>>>>
>>>> Thanks....
>>>>
>>>>
>>>>
>>>>
>>> Never mind..... I see what you are saying after all.... I forgot for
>>> the moment that the original id line was left in the modified file....
>>> Duh...
>>>
>>>
>>>
>> Hummm.... Bad news....
>>
>> I had to test this and have in the intttab file....
>>
>> # 5 - X11
>> # 6 - reboot (Do NOT set initdefault to this)
>> #
>> ; id:5:initdefault:
>> id:3:initdefault:
>>
>> And the system still comes up in run level 5.
>>
>
> Interesting.
>
> Someone once told me to use two semicolons in inittab, but I've never
> needed to try that.
>
And, I too didn't read this before replying to an earlier message... :-)
> Might be worth a try.
>
Maybe...but in the scheme of things this is rather small.... But
simple...so maybe it will be worth it...
> On the other hand, since Upstart doesn't use many of the options that used
> to be in the inittab, it may be possible that the default runlevel is
> actually set in an upstart config file, somewhere, now?
>
...yeah...maybe... Will have to wait till I have more time on my hands....
--
More are taken in by hope than by cunning. -- Vauvenargues
Mei-Mei.Greshko at greshko.com http://tw.youtube.com/watch?v=cCSz_koUhSg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090407/4484732e/attachment-0001.sig>
More information about the fedora-list
mailing list