diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | lib/Xconfig/various.pm | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,5 @@ +- fix setting systemd default.target to requested runlevel (mga#22593) + Version 1.24 - 22 June 2018 - correct Serbian and Yugoslavian xkb symbols file (martinw, mga#22157) diff --git a/lib/Xconfig/various.pm b/lib/Xconfig/various.pm index d98df16..7d245f2 100644 --- a/lib/Xconfig/various.pm +++ b/lib/Xconfig/various.pm @@ -225,9 +225,10 @@ sub config { sub runlevel { my ($o_runlevel) = @_; + # inittab is no more, but we may still need this for upgrades my $f = "$::prefix/etc/inittab"; - -r $f or log::l("missing inittab!!!"), return; if ($o_runlevel) { + log::l("setting runlevel to $o_runlevel"); substInFile { s/^id:\d:initdefault:\s*$/id:$o_runlevel:initdefault:\n/ } $f if !$::testing; my $t = "/lib/systemd/system/runlevel$o_runlevel.target"; if (!$::testing && -f "$::prefix$t") { |