summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_steps.pm7
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);
}
}