diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2020-02-29 23:51:21 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2020-03-01 00:12:50 +0000 |
commit | d56017ae49065e32781579ba09c27301265382e4 (patch) | |
tree | 58864733d31b18736ebb14a6ee564b1cb8d34e94 /lib/MGA/DrakISO | |
parent | 8fe19c7840073f412fd6298bc3033dc28df4484b (diff) | |
download | drakiso-d56017ae49065e32781579ba09c27301265382e4.tar drakiso-d56017ae49065e32781579ba09c27301265382e4.tar.gz drakiso-d56017ae49065e32781579ba09c27301265382e4.tar.bz2 drakiso-d56017ae49065e32781579ba09c27301265382e4.tar.xz drakiso-d56017ae49065e32781579ba09c27301265382e4.zip |
Support separate desktop and autologin session names.
Diffstat (limited to 'lib/MGA/DrakISO')
-rw-r--r-- | lib/MGA/DrakISO/BuildRoot.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/MGA/DrakISO/BuildRoot.pm b/lib/MGA/DrakISO/BuildRoot.pm index b4078d9..7c685e0 100644 --- a/lib/MGA/DrakISO/BuildRoot.pm +++ b/lib/MGA/DrakISO/BuildRoot.pm @@ -214,7 +214,7 @@ sub write_auto_inst_cfg { my $exclude_packages = $build->{system}{exclude_packages}; my $preferred_packages = $build->{system}{preferred_packages}; my $local_repo_packages = $build->{system}{local_repo_packages}; - my @desktops = split(/\|/, $build->{settings}{desktop}); + my $default_session = $build->{settings}{default_session}; my $default_user = $build->{settings}{default_user}; my $post_install_nr = $build->{system}{post_install_nr}; my $post_install = $build->{system}{post_install}; @@ -280,8 +280,8 @@ sub write_auto_inst_cfg { ) if $preferred_packages; push @text, ( " meta_class => 'desktop',", - " desktop => '$desktops[0]',", - ) if @desktops; + " desktop => '$default_session',", + ) if $default_session; push @text, ( " autologin => '$default_user',", " users => [", |