mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-04 23:59:07 +08:00
vmtest: add s390x image
Generated by simply running mkrootfs_debian.sh. Also use $ARCH as an image name prefix. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
This commit is contained in:
committed by
Andrii Nakryiko
parent
3fac0b3d08
commit
26e196d449
@@ -1,8 +1,9 @@
|
|||||||
INDEX https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/INDEX
|
INDEX https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/INDEX
|
||||||
libbpf-vmtest-rootfs-2020.09.27.tar.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/libbpf-vmtest-rootfs-2020.09.27.tar.zst
|
x86_64/libbpf-vmtest-rootfs-2020.09.27.tar.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/libbpf-vmtest-rootfs-2020.09.27.tar.zst
|
||||||
vmlinux-4.9.0.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinux-4.9.0.zst
|
x86_64/vmlinux-4.9.0.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinux-4.9.0.zst
|
||||||
vmlinux-5.5.0-rc6.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinux-5.5.0-rc6.zst
|
x86_64/vmlinux-5.5.0-rc6.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinux-5.5.0-rc6.zst
|
||||||
vmlinux-5.5.0.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinux-5.5.0.zst
|
x86_64/vmlinux-5.5.0.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinux-5.5.0.zst
|
||||||
vmlinuz-5.5.0-rc6 https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinuz-5.5.0-rc6
|
x86_64/vmlinuz-5.5.0-rc6 https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinuz-5.5.0-rc6
|
||||||
vmlinuz-5.5.0 https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinuz-5.5.0
|
x86_64/vmlinuz-5.5.0 https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinuz-5.5.0
|
||||||
vmlinuz-4.9.0 https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinuz-4.9.0
|
x86_64/vmlinuz-4.9.0 https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinuz-4.9.0
|
||||||
|
s390x/libbpf-vmtest-rootfs-2021.03.24.tar.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/s390x/libbpf-vmtest-rootfs-2021.03.24.tar.zst
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ matching_kernel_releases() {
|
|||||||
local pattern="$1"
|
local pattern="$1"
|
||||||
{
|
{
|
||||||
for file in "${!URLS[@]}"; do
|
for file in "${!URLS[@]}"; do
|
||||||
if [[ $file =~ ^vmlinux-(.*).zst$ ]]; then
|
if [[ $file =~ ^${ARCH}/vmlinux-(.*).zst$ ]]; then
|
||||||
release="${BASH_REMATCH[1]}"
|
release="${BASH_REMATCH[1]}"
|
||||||
case "$release" in
|
case "$release" in
|
||||||
$pattern)
|
$pattern)
|
||||||
@@ -211,7 +211,7 @@ matching_kernel_releases() {
|
|||||||
newest_rootfs_version() {
|
newest_rootfs_version() {
|
||||||
{
|
{
|
||||||
for file in "${!URLS[@]}"; do
|
for file in "${!URLS[@]}"; do
|
||||||
if [[ $file =~ ^${PROJECT_NAME}-vmtest-rootfs-(.*)\.tar\.zst$ ]]; then
|
if [[ $file =~ ^${ARCH}/${PROJECT_NAME}-vmtest-rootfs-(.*)\.tar\.zst$ ]]; then
|
||||||
echo "${BASH_REMATCH[1]}"
|
echo "${BASH_REMATCH[1]}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -249,7 +249,7 @@ create_rootfs_img() {
|
|||||||
download_rootfs() {
|
download_rootfs() {
|
||||||
local rootfsversion="$1"
|
local rootfsversion="$1"
|
||||||
local dir="$2"
|
local dir="$2"
|
||||||
download "${PROJECT_NAME}-vmtest-rootfs-$rootfsversion.tar.zst" |
|
download "${ARCH}/${PROJECT_NAME}-vmtest-rootfs-$rootfsversion.tar.zst" |
|
||||||
zstd -d | sudo tar -C "$dir" -x
|
zstd -d | sudo tar -C "$dir" -x
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -318,7 +318,7 @@ else
|
|||||||
vmlinuz="${ARCH_DIR}/vmlinuz-${KERNELRELEASE}"
|
vmlinuz="${ARCH_DIR}/vmlinuz-${KERNELRELEASE}"
|
||||||
if [[ ! -e $vmlinuz ]]; then
|
if [[ ! -e $vmlinuz ]]; then
|
||||||
tmp="$(mktemp "$vmlinuz.XXX.part")"
|
tmp="$(mktemp "$vmlinuz.XXX.part")"
|
||||||
download "vmlinuz-${KERNELRELEASE}" -o "$tmp"
|
download "${ARCH}/vmlinuz-${KERNELRELEASE}" -o "$tmp"
|
||||||
mv "$tmp" "$vmlinuz"
|
mv "$tmp" "$vmlinuz"
|
||||||
tmp=
|
tmp=
|
||||||
fi
|
fi
|
||||||
@@ -363,7 +363,7 @@ if [[ -v BUILDDIR || $ONESHOT -eq 0 ]]; then
|
|||||||
source_vmlinux="${ARCH_DIR}/vmlinux-${KERNELRELEASE}"
|
source_vmlinux="${ARCH_DIR}/vmlinux-${KERNELRELEASE}"
|
||||||
if [[ ! -e $source_vmlinux ]]; then
|
if [[ ! -e $source_vmlinux ]]; then
|
||||||
tmp="$(mktemp "$source_vmlinux.XXX.part")"
|
tmp="$(mktemp "$source_vmlinux.XXX.part")"
|
||||||
download "vmlinux-${KERNELRELEASE}.zst" | zstd -dfo "$tmp"
|
download "${ARCH}/vmlinux-${KERNELRELEASE}.zst" | zstd -dfo "$tmp"
|
||||||
mv "$tmp" "$source_vmlinux"
|
mv "$tmp" "$source_vmlinux"
|
||||||
tmp=
|
tmp=
|
||||||
fi
|
fi
|
||||||
@@ -373,7 +373,7 @@ if [[ -v BUILDDIR || $ONESHOT -eq 0 ]]; then
|
|||||||
else
|
else
|
||||||
# We could use "sudo zstd -o", but let's not run zstd as root with
|
# We could use "sudo zstd -o", but let's not run zstd as root with
|
||||||
# input from the internet.
|
# input from the internet.
|
||||||
download "vmlinux-${KERNELRELEASE}.zst" |
|
download "${ARCH}/vmlinux-${KERNELRELEASE}.zst" |
|
||||||
zstd -d | sudo tee "$vmlinux" > /dev/null
|
zstd -d | sudo tee "$vmlinux" > /dev/null
|
||||||
sudo chmod 644 "$vmlinux"
|
sudo chmod 644 "$vmlinux"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user