mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-12-03 15:47:08 +00:00
feat(debian): recognize riscv64 Ubuntu media
The riscv64 live-server image keeps its kernel at casper/vmlinux, where every other live image keeps casper/vmlinuz, so the probe found no kernel and mkinstall reported that the install image was missing. Add the riscv64 candidate pair and let copycd name the architecture the media reports. Verified against Ubuntu-Server 24.04.4 riscv64, which carries casper/vmlinux, casper/initrd and casper/install-sources.yaml. Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
This commit is contained in:
@@ -4898,6 +4898,7 @@ my @XCAT_ARCH_FROM_DEBIAN = (
|
||||
[ qr/^ppc64el$/ => 'ppc64el' ],
|
||||
[ qr/ppc|powerpc/ => 'ppc64' ],
|
||||
[ qr/^amd64$/ => 'x86_64' ],
|
||||
[ qr/^riscv64$/ => 'riscv64' ],
|
||||
);
|
||||
|
||||
sub xcat_arch_from_debian {
|
||||
|
||||
@@ -192,6 +192,9 @@ my %INSTALL_BOOT_FILES = (
|
||||
[ 'install/netboot/ubuntu-installer/{darch}/vmlinux', 'install/netboot/ubuntu-installer/{darch}/initrd.gz' ],
|
||||
[ 'install/vmlinux', 'install/netboot/initrd.gz' ],
|
||||
],
|
||||
'riscv64' => [
|
||||
[ 'casper/vmlinux', 'casper/initrd' ],
|
||||
],
|
||||
);
|
||||
|
||||
sub install_boot_files
|
||||
@@ -201,9 +204,10 @@ sub install_boot_files
|
||||
$darch = '' unless defined $darch;
|
||||
|
||||
my $family =
|
||||
$arch =~ /x86/i ? 'x86'
|
||||
: $arch =~ /ppc64/i ? 'ppc64'
|
||||
: undef;
|
||||
$arch =~ /x86/i ? 'x86'
|
||||
: $arch =~ /ppc64/i ? 'ppc64'
|
||||
: $arch =~ /riscv64/i ? 'riscv64'
|
||||
: undef;
|
||||
return unless $family;
|
||||
|
||||
foreach my $candidate (@{ $INSTALL_BOOT_FILES{$family} }) {
|
||||
|
||||
Reference in New Issue
Block a user