diff options
author | Oliver Tappe | 2007-09-26 13:05:33 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-09-26 13:05:33 +0200 |
commit | b385455b18ec7ada8ec8c9c5cc467fcf46bb5dfc (patch) | |
tree | 604c1a78357c0f4fce70c81ef4254e7b92c3651e /installer/OpenSLX/OSSetup/Distro/Debian.pm | |
parent | * reverted changeset 1347, as installPrerequiredPackages() *should* have been (diff) | |
download | core-b385455b18ec7ada8ec8c9c5cc467fcf46bb5dfc.tar.gz core-b385455b18ec7ada8ec8c9c5cc467fcf46bb5dfc.tar.xz core-b385455b18ec7ada8ec8c9c5cc467fcf46bb5dfc.zip |
* fixed problems with respect to installation of prerequired packages
* added support for setting the root-password:
+ slxos-setup now queries for the root-password
+ 'busybox cryptpw' is used to determine the hashed password as required
by the specific distribution (MD5 or Blowfish)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1349 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSSetup/Distro/Debian.pm')
-rw-r--r-- | installer/OpenSLX/OSSetup/Distro/Debian.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/installer/OpenSLX/OSSetup/Distro/Debian.pm b/installer/OpenSLX/OSSetup/Distro/Debian.pm index 4cd921de..e430abd4 100644 --- a/installer/OpenSLX/OSSetup/Distro/Debian.pm +++ b/installer/OpenSLX/OSSetup/Distro/Debian.pm @@ -96,4 +96,20 @@ sub postSystemInstallationHook $self->SUPER::postSystemInstallationHook(); } +sub setPasswordForUser +{ + my $self = shift; + my $username = shift; + my $password = shift; + + # activate shadow passwords + my $activateShadowFunction = sub { + slxsystem('/sbin/shadowconfig', 'on'); + }; + $self->{engine}->callChrootedFunctionForVendorOS($activateShadowFunction); + + # invoke default behaviour + $self->SUPER::setPasswordForUser($username, $password); +} + 1;
\ No newline at end of file |