]> git.proxmox.com Git - aab.git/blobdiff - PVE/AAB.pm
x86_64 -> amd64 for consistency
[aab.git] / PVE / AAB.pm
index 44370e1e697cde0e27d16ab015037332ed108f5d..a75133e80f5004bcbe2052e7c3020f849291e0e2 100644 (file)
@@ -117,6 +117,8 @@ sub read_config {
 
     die "unable to parse config file" if $rec;
 
+    $res->{architecture} = 'amd64' if $res->{architecture} eq 'x86_64';
+
     return $res;
 }
 
@@ -236,10 +238,12 @@ sub initialize {
 
     $fh = IO::File->new($self->{'pacman.conf'}, O_WRONLY|O_CREAT|O_EXCL) ||
        die "unable to write pacman config file $self->{'pacman.conf'} - $!";
+    my $arch = $config->{architecture};
+    $arch = 'x86_64' if $arch eq 'amd64';
     print $fh <<"EOF";
 [options]
 HoldPkg = pacman glibc
-Architecture = $config->{architecture}
+Architecture = $arch
 CheckSpace
 SigLevel = Never