diff options
Diffstat (limited to 'lib/Xconfig')
-rw-r--r-- | lib/Xconfig/various.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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") { |