diff options
author | Oliver Tappe | 2008-08-07 20:04:15 +0200 |
---|---|---|
committer | Oliver Tappe | 2008-08-07 20:04:15 +0200 |
commit | 39a180c98175c282d3e38f0eb12f124497b9b36c (patch) | |
tree | 2447b2d65e3d19446bcbb790c4101b3ddeb5a111 /installer/OpenSLX/OSSetup/Engine.pm | |
parent | Just a reminder for the desktop plugin enhancement (see #252) (diff) | |
download | core-39a180c98175c282d3e38f0eb12f124497b9b36c.tar.gz core-39a180c98175c282d3e38f0eb12f124497b9b36c.tar.xz core-39a180c98175c282d3e38f0eb12f124497b9b36c.zip |
* added explicit check against 64-bit/32-bit mismatch to
callChrootedFunctionForVendorOS() in order to avoid unclear error messages
when a user tries to chroot into a 64-bit vendor-OS on a 32-bit host.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1987 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSSetup/Engine.pm')
-rw-r--r-- | installer/OpenSLX/OSSetup/Engine.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/installer/OpenSLX/OSSetup/Engine.pm b/installer/OpenSLX/OSSetup/Engine.pm index 31a3eb28..1de74ff8 100644 --- a/installer/OpenSLX/OSSetup/Engine.pm +++ b/installer/OpenSLX/OSSetup/Engine.pm @@ -437,6 +437,11 @@ sub callChrootedFunctionForVendorOS ); } + # avoid trying to chroot into a 64-bit vendor-OS if the host is only 32-bit: + if (!$self->_hostIs64Bit() && -e "$self->{'vendor-os-path'}/lib64") { + die _tr("you can't use a 64-bit vendor-OS on a 32-bit host, sorry!\n"); + } + my $httpServers = OpenSLX::ScopedResource->new({ name => 'local-http-servers', acquire => sub { $self->_startLocalURLServersAsNeeded(); 1 }, |