From ca3f1a560aa7b8ce22bfb4b23b9202b14ff84b9e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 1 May 2013 20:40:49 +0000 Subject: make xdm installation automatic in auto_inst mode (mga#9875) --- perl-install/any.pm | 6 +++--- perl-install/install/NEWS | 1 + perl-install/install/steps.pm | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/perl-install/any.pm b/perl-install/any.pm index eb7b86e06..33afd1743 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -705,15 +705,15 @@ sub is_standalone_autologin_needed { } sub set_autologin { - my ($do_pkgs, $autologin) = @_; + my ($do_pkgs, $autologin, $o_auto) = @_; log::l("set_autologin $autologin->{user} $autologin->{desktop}"); my $do_autologin = bool2text($autologin->{user}); $autologin->{dm} ||= 'xdm'; - $do_pkgs->ensure_is_installed($autologin->{dm}) + $do_pkgs->ensure_is_installed($autologin->{dm}, undef, $o_auto) or return; if ($autologin->{user} && is_standalone_autologin_needed($autologin->{dm})) { - $do_pkgs->ensure_is_installed('autologin', '/usr/bin/startx.autologin') + $do_pkgs->ensure_is_installed('autologin', '/usr/bin/startx.autologin', $o_auto) or return; } diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index a3c0ee35e..700d99e30 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,4 +1,5 @@ - include mount options in auto_inst.pl +- make xdm installation automatic in auto_inst mode (mga#9875) Version 15.47 - 30 April 2013 diff --git a/perl-install/install/steps.pm b/perl-install/install/steps.pm index 54f322632..c1c4d445c 100644 --- a/perl-install/install/steps.pm +++ b/perl-install/install/steps.pm @@ -745,7 +745,7 @@ sub addUser { $autologin->{user} = $o->{autologin}; $autologin->{desktop} = $o->{desktop} if $o->{desktop}; $autologin->{dm} = $o->{dm} if $o->{dm}; - any::set_autologin($o->do_pkgs, $autologin); + any::set_autologin($o->do_pkgs, $autologin, $o->{step}{auto}); } install::any::disable_user_view() if @$users == (); -- cgit v1.2.1