Bug 725138

Summary: initdefault from /etc/inittab ignored
Product: [openSUSE] openSUSE 12.1 Reporter: Olaf Hering <ohering>
Component: BasesystemAssignee: Frederic Crozat <fcrozat>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: fcrozat, ismail, ro, werner
Version: Factory   
Target Milestone: ---   
Hardware: x86-64   
OS: Linux   
Whiteboard:
Found By: Outsourced Testing Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /lib/systemd/system-generators/systemd-runlevel-generator
/lib/systemd/system-generators/systemd-runlevel-generator

Description Olaf Hering 2011-10-19 12:19:36 UTC
I did a fresh Factory install shortly before 12.1-rc1, minimal textmode.
The default runlevel is 3 after the installation.

Later I installed the gnome pattern and changed the initdefault in inittab from 3 to 5. But after reboot the runlevel remains 3.

If systemd happens to have a different config file for runlevel settings it must be mentioned in /etc/inittab...
Comment 1 Frederic Crozat 2011-10-20 14:35:41 UTC
yes, you need to update /etc/systemd/system/default.target symlink :

ln -s /lib/systemd/system/runlevel3.target /etc/systemd/system/default.target

YaST should do it properly.

Werner, could you add a comment to /etc/inittab in aaa_base ?
Comment 2 Olaf Hering 2011-10-20 14:51:06 UTC
So if inittab is ignored for systemd, why is it present anyway in a systemd-only installation?

And how are serial consoles handled, all the code that tweaks inittab during install? Please make sure yast does the right thing during install..
Comment 3 Frederic Crozat 2011-10-20 14:59:52 UTC
because we are still supporting sysvinit for 12.1

systemd automatically adds support for serial console (but I can't test this setup, unfortunately).
Comment 4 Olaf Hering 2011-10-20 15:09:48 UTC
(In reply to comment #3)
> because we are still supporting sysvinit for 12.1

If its not installed inittab is not needed either. But too bad, its in aaa_base and moving it to another package is tricky..

> systemd automatically adds support for serial console (but I can't test this
> setup, unfortunately).

I assume it looks for console= in /proc/cmdline? Non-x86 systems have autodetection for serial console and do not need to have it as kernel cmdline option. But, thats not my problem anymore.
Comment 5 Dr. Werner Fink 2011-10-21 12:11:09 UTC
(In reply to comment #4)

As we currently are able to switch between systemd and sysvinit the
/etc/inittab will stay exactly where it is.
Comment 6 Dr. Werner Fink 2011-10-21 12:29:32 UTC
Just add a comment to /etc/inittab
Comment 7 Dr. Werner Fink 2011-10-21 12:31:09 UTC
Created attachment 458206 [details]
/lib/systemd/system-generators/systemd-runlevel-generator

Now what do you think about this generator file?
Comment 8 Dr. Werner Fink 2011-10-21 12:33:21 UTC
Created attachment 458207 [details]
/lib/systemd/system-generators/systemd-runlevel-generator

Forgotten one line that is do not recreate the same link
Comment 10 Frederic Crozat 2011-10-21 12:58:32 UTC
I removed the inittab generator I wrote on purpose, after discussing with upstream and I don't plan to put it back.

If you don't want to add a comment on inittab, fine, let's close this bug as wontfix.
Comment 11 Bernhard Wiedemann 2011-10-21 13:00:21 UTC
This is an autogenerated message for OBS integration:
This bug (725138) was mentioned in
https://build.opensuse.org/request/show/88964 Factory / aaa_base
Comment 12 Dr. Werner Fink 2011-10-21 13:20:11 UTC
Hmmm ... I'he added the comment, see request 88964 ;)
Comment 13 Frederic Crozat 2011-10-21 13:27:34 UTC
sorry, I missed it ;)
Comment 14 Frederic Crozat 2011-10-27 14:55:05 UTC
closing as fixed, then.