From f41c1533de3fffb0e3c86da556281fdf0cebca6e Mon Sep 17 00:00:00 2001 From: eabdullin Date: Fri, 24 Jan 2025 16:10:33 +0300 Subject: [PATCH] add create_symlinks.sh and update config file --- config.yaml | 51 ++++++++++++++++++++++++++++++++++---- scripts/create_symlinks.sh | 11 ++++++++ 2 files changed, 57 insertions(+), 5 deletions(-) create mode 100644 scripts/create_symlinks.sh diff --git a/config.yaml b/config.yaml index 39f3e26..80756fa 100644 --- a/config.yaml +++ b/config.yaml @@ -5,14 +5,14 @@ actions: name: "almalinuxdup1.x509" number: 100 - type: "source" - name: "almalinuxima.x509" - number: 104 + name: "almalinuxkpatch1.x509" + number: 101 - type: "source" name: "almalinuximaca1.x509" number: 103 - type: "source" - name: "almalinuxkpatch1.x509" - number: 101 + name: "almalinuxima.x509" + number: 104 - type: "patch" name: "0001-Enable-all-disabled-pci-devices-by-moving-to-unmaint.patch" number: 2001 @@ -631,6 +631,47 @@ actions: CN = AlmaLinux kernel signing key emailAddress = security@almalinux.org count: 1 + - target: "spec" + find: | + Source32: %{name}-x86_64-rhel.config + Source33: %{name}-x86_64-debug-rhel.config + replace: | + Source32: %{name}-x86_64-rhel.config + Source33: %{name}-x86_64-debug-rhel.config + Source10001: %{name}-x86_64_v2-rhel.config + Source10002: %{name}-x86_64_v2-debug-rhel.config + count: 1 + - target: "spec" + find: | + Source204: Module.kabi_x86_64 + Source205: Module.kabi_riscv64 + replace: | + Source204: Module.kabi_x86_64 + Source205: Module.kabi_riscv64 + Source206: Module.kabi_x86_64_v2 + count: 1 + - target: "spec" + find: | + Source213: Module.kabi_dup_x86_64 + Source214: Module.kabi_dup_riscv64 + replace: | + Source213: Module.kabi_dup_x86_64 + Source214: Module.kabi_dup_riscv64 + Source215: Module.kabi_dup_x86_64_v2 + count: 1 + - target: "spec" + find: | + Source476: %{name}-x86_64-rt-rhel.config + Source477: %{name}-x86_64-rt-debug-rhel.config + replace: | + Source476: %{name}-x86_64-rt-rhel.config + Source477: %{name}-x86_64-rt-debug-rhel.config + Source478: %{name}-x86_64_v2-rt-rhel.config + Source479: %{name}-x86_64_v2-rt-debug-rhel.config + count: 1 + + - run_script: + - script: "create_symlinks.sh" - delete_line: - target: "spec" @@ -660,4 +701,4 @@ actions: email: "eabdullin@almalinux.org" line: - "Use AlmaLinux OS secure boot cert" - - "Debrand for AlmaLinux OS" \ No newline at end of file + - "Debrand for AlmaLinux OS" diff --git a/scripts/create_symlinks.sh b/scripts/create_symlinks.sh new file mode 100644 index 0000000..6b9b614 --- /dev/null +++ b/scripts/create_symlinks.sh @@ -0,0 +1,11 @@ +ln -s Module.kabi_x86_64 Module.kabi_x86_64_v2 +ln -s Module.kabi_dup_x86_64 Module.kabi_dup_x86_64_v2 + +ln -s kernel-x86_64-rhel.config kernel-x86_64_v2-rhel.config +ln -s kernel-x86_64-debug-rhel.config kernel-x86_64_v2-debug-rhel.config + +ln -s kernel-x86_64-rt-rhel.config kernel-x86_64_v2-rt-rhel.config +ln -s kernel-x86_64-rt-debug-rhel.config kernel-x86_64_v2-rt-debug-rhel.config + +ln -s kernel-x86_64-automotive-rhel.config kernel-x86_64_v2-automotive-rhel.config +ln -s kernel-x86_64-automotive-debug-rhel.config kernel-x86_64_v2-automotive-debug-rhel.config