设置sles 12的默认运行级别

Set the default run level of sles 12

我尝试创建 /etc/inittab 并添加 id:3:initdefault:

但它被跳过并直接进入初始化 5。

如何通过配置文件进行配置?

/etc/inittab 文件不再使用。

# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To set a default target, run:
#
# ln -s /lib/systemd/system/<target name>.target /etc/systemd/system/default.target