mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-06-01 19:34:58 +03:00

Allow installing a custom kernel version from the Fedora experimental kernel repos onto the github runners. This is useful for testing if ZFS works against a newer kernel. Fedora has a number of repos with experimental kernel packages. This PR allows installs from kernels in these repos: @kernel-vanilla/stable @kernel-vanilla/mainline (https://fedoraproject.org/wiki/Kernel_Vanilla_Repositories) You will need to manually kick of a github runner to test with a custom kernel version. To do that, go to the github actions tab under 'zfs-qemu' and click the drop-down for 'run workflow'. In there you will see a text box to specify the version (like '6.14'). The scripts will do their best to match the version to the newest matching version that the repos support (since they're may be multiple nightly versions of, say, '6.14'). A full list of kernel versions can be seen in the dependency stage output if you kick off a manual run. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #17156
29 lines
1.0 KiB
Bash
Executable File
29 lines
1.0 KiB
Bash
Executable File
######################################################################
|
|
# 3) Wait for VM to boot from previous step and launch dependencies
|
|
# script on it.
|
|
#
|
|
# $1: OS name (like 'fedora41')
|
|
# $2: (optional) Experimental kernel version to install on fedora,
|
|
# like "6.14".
|
|
######################################################################
|
|
|
|
.github/workflows/scripts/qemu-wait-for-vm.sh vm0
|
|
|
|
# SPECIAL CASE:
|
|
#
|
|
# If the user passed in an experimental kernel version to test on Fedora,
|
|
# we need to update the kernel version in zfs's META file to allow the
|
|
# build to happen. We update our local copy of META here, since we know
|
|
# it will be rsync'd up in the next step.
|
|
if [ -n "${2:-}" ] ; then
|
|
sed -i -E 's/Linux-Maximum: .+/Linux-Maximum: 99.99/g' META
|
|
fi
|
|
|
|
scp .github/workflows/scripts/qemu-3-deps-vm.sh zfs@vm0:qemu-3-deps-vm.sh
|
|
PID=`pidof /usr/bin/qemu-system-x86_64`
|
|
ssh zfs@vm0 '$HOME/qemu-3-deps-vm.sh' "$@"
|
|
# wait for poweroff to succeed
|
|
tail --pid=$PID -f /dev/null
|
|
sleep 5 # avoid this: "error: Domain is already active"
|
|
rm -f $HOME/.ssh/known_hosts
|