diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-11-30 14:37:11 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-11-30 14:37:11 +0000 |
commit | c58d7cf3ea859cc1c767a40934bd65fd58fa3c3f (patch) | |
tree | d149416f9663437938d19e6df3f2b66512e072e2 /perl-install/any.pm | |
parent | 5d72c84a9b2db90cd61f8b06dfc5e9b20658e211 (diff) | |
download | drakx-c58d7cf3ea859cc1c767a40934bd65fd58fa3c3f.tar drakx-c58d7cf3ea859cc1c767a40934bd65fd58fa3c3f.tar.gz drakx-c58d7cf3ea859cc1c767a40934bd65fd58fa3c3f.tar.bz2 drakx-c58d7cf3ea859cc1c767a40934bd65fd58fa3c3f.tar.xz drakx-c58d7cf3ea859cc1c767a40934bd65fd58fa3c3f.zip |
create any::set_root_passwd() and use it
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index 0982a5a1f..1d9648403 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -783,6 +783,13 @@ sub selectCountry { $locale->{country} = $other || !@best ? $ext_country : $country; } +sub set_root_passwd { + my ($superuser, $authentication) = @_; + $superuser->{name} = 'root'; + write_passwd_user($superuser, $authentication->{md5}); + delete $superuser->{name}; +} + sub write_passwd_user { my ($u, $isMD5) = @_; |