mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-26 03:29:02 +00:00
pkgs: kernel: add symlink to patches.
Packaging scripts search for patches in a directory called 'patches'. We store the kernel patches in a diferent place to make easy to mantain them. Lets do a symlink to allow the automation find the patches. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
5dfc0c1f23
commit
4eae71e4b3
@ -57,5 +57,6 @@ verify
|
|||||||
echo "Verify succeed."
|
echo "Verify succeed."
|
||||||
get_git_info
|
get_git_info
|
||||||
changelog_update "${VERSION}-${KATA_CONFIG_VERSION}"
|
changelog_update "${VERSION}-${KATA_CONFIG_VERSION}"
|
||||||
|
ln -sfT "${SCRIPT_DIR}/../../kernel/patches" "${SCRIPT_DIR}/patches"
|
||||||
generate_files "$SCRIPT_DIR" "${replace_list[@]}"
|
generate_files "$SCRIPT_DIR" "${replace_list[@]}"
|
||||||
build_pkg "${PROJECT_REPO}"
|
build_pkg "${PROJECT_REPO}"
|
||||||
|
@ -337,7 +337,7 @@ function find_patches() {
|
|||||||
export RPM_APPLY_PATCHES="#Apply patches"$'\n'
|
export RPM_APPLY_PATCHES="#Apply patches"$'\n'
|
||||||
[ ! -d patches ] && info "No patches found" && return
|
[ ! -d patches ] && info "No patches found" && return
|
||||||
local patches
|
local patches
|
||||||
patches=$(find patches -type f -name '*.patch' -exec basename {} \;)
|
patches=$(find patches/ -type f -name '*.patch' -exec basename {} \;)
|
||||||
n="1"
|
n="1"
|
||||||
rm -f debian.series
|
rm -f debian.series
|
||||||
for p in ${patches} ; do
|
for p in ${patches} ; do
|
||||||
|
Loading…
Reference in New Issue
Block a user