diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-09-13 16:13:43 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-09-13 16:13:43 +0000 |
commit | 7ffc57b339ce4bc53e25bff07e0089054c455126 (patch) | |
tree | e46e1f3f8694ad226712df3f0e67425dcb63eb9c /perl-install/install_steps.pm | |
parent | fe22c48f627861309c0eb3af46b4af674e941b95 (diff) | |
download | drakx-7ffc57b339ce4bc53e25bff07e0089054c455126.tar drakx-7ffc57b339ce4bc53e25bff07e0089054c455126.tar.gz drakx-7ffc57b339ce4bc53e25bff07e0089054c455126.tar.bz2 drakx-7ffc57b339ce4bc53e25bff07e0089054c455126.tar.xz drakx-7ffc57b339ce4bc53e25bff07e0089054c455126.zip |
better call Xconfig::various::runlevel() directly since it's not always called
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r-- | perl-install/install_steps.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 8a731e6df..9a8930d94 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -572,9 +572,10 @@ EOF unlink(glob("$::prefix/root/drakx/*.upgrading")); if ($o->{upgrade_by_removing_pkgs_matching}) { - if (cat_("$::prefix/etc/inittab.rpmsave") =~ /^id:(\d):initdefault:\s*$/m) { - $o->{X}{xdm} = $1; - log::l("runlevel is $o->{X}{xdm} (as found in previous inittab)"); + if (cat_("$::prefix/etc/inittab.rpmsave") =~ /^id:5:initdefault:\s*$/m) { + $o->{X}{xdm} = 1; + require Xconfig::various; + Xconfig::various::runlevel(5); } } |