2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Test lzma compression for genesis network boot

This commit is contained in:
Mark Gurevich 2022-11-08 14:46:00 -05:00
parent 781f17686c
commit fc168cc9b8
4 changed files with 30 additions and 1 deletions

View File

@ -104,7 +104,7 @@ sub process_request {
$callback->({ error => "Need to specify architecture (x86, x86_64 or ppc64)" }, { errorcode => [1] });
return;
} elsif ($arch eq "ppc64le" or $arch eq "ppc64el") {
$callback->({ data => "The arch:$arch is not supported at present, use \"ppc64\" instead" });
$callback->({ data => "The arch:$arch is not supported, using \"ppc64\" instead" });
$arch = 'ppc64';
$request->{arg}->[0] = $arch;
}

View File

@ -23,6 +23,7 @@ get_xcat_postscripts_loginfo
nodeset_cmdline
nodeset_runimg
nodeset_shell
nodeset_shell_lzma
reg_linux_diskfull_installation_flat
compare_postscripts
cleanup_postscripts_diskfull

View File

@ -23,6 +23,7 @@ get_xcat_postscripts_loginfo
nodeset_cmdline
nodeset_runimg
nodeset_shell
nodeset_shell_lzma
reg_linux_diskfull_installation_flat
compare_postscripts
cleanup_postscripts_diskfull

View File

@ -1,3 +1,30 @@
start:nodeset_shell_lzma
os:rhels
label:others,genesis
description: verify could log in genesis shell lzma compression
cmd:yum install -y https://rpmfind.net/linux/centos/8-stream/PowerTools/__GETNODEATTR($$CN,arch)__/os/Packages/xz-lzma-compat-5.2.4-3.el8.__GETNODEATTR($$CN,arch)__.rpm
#Generate genesis network boot with lzma compression
cmd:mknb __GETNODEATTR($$CN,arch)__
check:rc==0
cmd:nodeset $$CN shell
check:rc==0
cmd:ls -l /tftpboot/xcat/genesis.fs.*.lzma
check:output=~genesis
cmd:find /tftpboot -type f -name $$CN | xargs grep "lzma"
check:output=~genesis
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -g
check:rc==0
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -s
check:rc==0
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -c
check:rc==0
cmd:cat /tmp/genesistestlog/*
#Remove lzma compression RPM, cleanup and generate default gz genesis network boot
cmd:yum remove -y xz-lzma-compat
cmd:rm -f /tftpboot/xcat/genesis.fs.*.lzma
cmd:mknb __GETNODEATTR($$CN,arch)__
end
start:nodeset_shell
label:others,genesis
description: verify could log in genesis shell