summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-30 10:52:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-30 10:52:06 +0000
commitb6d2621f3a4a327d23d5a16247df839fca62dfec (patch)
tree6835062ef13225ed26746272eb185c5d908df920 /perl-install/any.pm
parent601870c80fa2c1ab2ccfdd5ae9e456b64df8fb6b (diff)
downloaddrakx-b6d2621f3a4a327d23d5a16247df839fca62dfec.tar
drakx-b6d2621f3a4a327d23d5a16247df839fca62dfec.tar.gz
drakx-b6d2621f3a4a327d23d5a16247df839fca62dfec.tar.bz2
drakx-b6d2621f3a4a327d23d5a16247df839fca62dfec.tar.xz
drakx-b6d2621f3a4a327d23d5a16247df839fca62dfec.zip
create any::set_root_passwd() and use it
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index e37a69bf3..b1dcbb78c 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -831,6 +831,13 @@ sub user_crypted_passwd {
$u->{password} ? &crypt($u->{password}, $isMD5) : $u->{pw} || '';
}
+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) = @_;
msg'> situation is detected. * service_harddrake: Do not switch a display driver if speedboot has already ↵Anssi Hannula2011-04-172-0/+10 | | | | started X server, in that case simply disable speedboot for next boot. * service_harddrake: ask for a reboot after a driver switch if needed, and ↵Anssi Hannula2011-04-172-2/+25 | | | | load the new driver if no reboot is needed * service_harddrake: handle adding/removing nokmsboot when switching the driver.Anssi Hannula2011-04-172-0/+5 | * service_harddrake: Factorize ask_with_timeout for a following commit.Anssi Hannula2011-04-172-12/+20 | * service_harddrake: Adapt from bootsplash to plymouth.Anssi Hannula2011-04-172-7/+5 | * - fixed header so msgfmt wont give any errorsOliver Burger2011-04-161-4/+3 | * - any.pm: make it easier for rebranding by using %s magicAhmad Samir2011-04-0773-783/+1145 | | | | | - update po/pot files * - s/Ldap/LDAP/ in the po/pot files manually so as not to fuzzy the strings ↵Ahmad Samir2011-04-0771-174/+174 | | | | unnecessarily * - keep it "Hard drive detection", since the tree on the left in the installerAhmad Samir2011-04-071-2/+2 | | | | | is of limited width * - s/can not/cannot/ manually in the po/pot files so as not the make the stringsAhmad Samir2011-04-07285-1456/+1456 | | | | | unnecessarily fuzzy (from Thierry Vignaud) * - revert 's,/boot partition,separate /boot partition,', .po/pot files shouldn'tAhmad Samir2011-04-0571-214/+214 | | | | | | be changed this way as this changes the meaning of the string and translators need to adapt the .po files themselves * - 's!Just select your tv card parameters!Just select your TV card parameters!'Ahmad Samir2011-04-0472-73/+73 | * - s/api/API/Ahmad Samir2011-04-0472-173/+173 | * - perl -pi -e 's!trouble shoot!troubleshoot!'Ahmad Samir2011-04-0472-145/+145 | * - perl -pi -e 's!you can pick one in the above list!you can pick one from ↵Ahmad Samir2011-04-0472-72/+72 | | | | the above list!' * - perl -pi -e 's!For this, create a partition!To accomplish this, create a ↵Ahmad Samir2011-04-0472-72/+72 | | | | partition!' * - perl -pi -e 's!"Search new servers"!"Search for new servers"!'Ahmad Samir2011-04-0472-72/+72 | * - perl -pi -e 's!Something bad is happening on your drive!Something bad is ↵Ahmad Samir2011-04-0472-72/+72 | | | | happening on your hard disk drive!' * - perl -pi -e 's!"Activate ethernet cards promiscuity check."!"Activate ↵Ahmad Samir2011-04-0472-72/+72 | | | | Ethernet cards promiscuity check."!' * - perl -pi -e 's!Posix!POSIX!'Ahmad Samir2011-04-0472-88/+88 | * - perl -pi -e 's!Hard drive!Hard disk drive!' (except install/steps_list.pm)Ahmad Samir2011-04-04216-439/+439 | * - perl -pi -e 's!need to reboot before the modification can take ↵Ahmad Samir2011-04-0473-145/+145 | | | | | | | place"!"need to reboot before the modification can take effect"!' - perl -pi -e 's!"You need to reboot for the partition table modifications to take place"!"You need to reboot for the partition table modifications to take effect"!' * - perl -pi -e 's!"All data on this partition should be backed-up"!"All data ↵Ahmad Samir2011-04-0472-72/+72 | | | | on this partition should be backed up"!' * - perl -pi -e 's!"Check bad blocks\?"!"Check for bad blocks\?"!'Ahmad Samir2011-04-0473-74/+74 | * - perl -pi -e 's!"Do you want to save /etc/fstab modifications"!"Do you want ↵Ahmad Samir2011-04-0472-72/+72 | | | | to save the /etc/fstab modifications?"!' * - perl -pi -e 's!mountpoint!mount point!'Ahmad Samir2011-04-0473-73/+73 | * - perl -pi -e 's!hard drive!hard disk drive!'Ahmad Samir2011-04-04