You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-06 08:49:29 +02:00
Fix language in rh7 test container for aarch64.
The /etc/profile.d/lang.sh script was causing issues but it does not exist on amd64, so it seems the easiest thing was to remove it. Fix how 32-bit VMs are determined now that another 64-bit architecture has been added. And remove some obsolete VM hashes.
This commit is contained in:
@@ -575,6 +575,14 @@ sub containerBuild
|
||||
$strCopy = undef;
|
||||
$strScript = '';
|
||||
|
||||
#-----------------------------------------------------------------------------------------------------------------------
|
||||
if ($oVm->{$strOS}{&VM_OS_BASE} eq VM_OS_BASE_RHEL && hostArch() eq VM_ARCH_AARCH64)
|
||||
{
|
||||
$strScript .= sectionHeader() .
|
||||
"# Remove unneeded language setup\n" .
|
||||
" rm /etc/profile.d/lang.sh";
|
||||
}
|
||||
|
||||
#-----------------------------------------------------------------------------------------------------------------------
|
||||
$strScript .= caSetup($strOS, $oStorageDocker, "test/certificate/pgbackrest-test-ca.crt");
|
||||
|
||||
|
||||
@@ -64,6 +64,8 @@ use constant VM_OS_BASE_RHEL => 'rhel';
|
||||
####################################################################################################################################
|
||||
# Valid architecture list
|
||||
####################################################################################################################################
|
||||
use constant VM_ARCH_AARCH64 => 'aarch64';
|
||||
push @EXPORT, qw(VM_ARCH_AARCH64);
|
||||
use constant VM_ARCH_I386 => 'i386';
|
||||
push @EXPORT, qw(VM_ARCH_I386);
|
||||
use constant VM_ARCH_AMD64 => 'amd64';
|
||||
@@ -418,7 +420,7 @@ sub vmArchBits
|
||||
{
|
||||
my $strVm = shift;
|
||||
|
||||
return ($oyVm->{$strVm}{&VM_ARCH} eq VM_ARCH_AMD64 ? 64 : 32);
|
||||
return ($oyVm->{$strVm}{&VM_ARCH} eq VM_ARCH_I386 ? 32 : 64);
|
||||
}
|
||||
|
||||
push @EXPORT, qw(vmArchBits);
|
||||
|
||||
Reference in New Issue
Block a user