From 39a180c98175c282d3e38f0eb12f124497b9b36c Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 7 Aug 2008 18:04:15 +0000 Subject: * 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 --- installer/OpenSLX/OSSetup/Engine.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'installer/OpenSLX/OSSetup/Engine.pm') 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 }, -- cgit v1.2.3-55-g7522