Skip to content

Commit 1df367d

Browse files
committed
Merge branch '3.0-dev' into 3.0
2 parents 30d1349 + 1330d21 commit 1df367d

183 files changed

Lines changed: 5161 additions & 3596 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
4+
name: Github Merge Conflict Check
5+
6+
on:
7+
push:
8+
branches: [main, dev, 1.0*, 2.0*, 3.0*, fasttrack/*]
9+
pull_request:
10+
branches: [main, dev, 1.0*, 2.0*, 3.0*, fasttrack/*]
11+
12+
jobs:
13+
spec-check:
14+
name: Github Merge Conflict Check
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
# Checkout the branch of our repo that triggered this action
19+
- name: Workflow trigger checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Get base commit for PRs
23+
if: ${{ github.event_name == 'pull_request' }}
24+
run: |
25+
git fetch origin ${{ github.base_ref }}
26+
echo "base_sha=$(git rev-parse origin/${{ github.base_ref }})" >> $GITHUB_ENV
27+
echo "Merging ${{ github.sha }} into ${{ github.base_ref }}"
28+
29+
- name: Get base commit for Pushes
30+
if: ${{ github.event_name == 'push' }}
31+
run: |
32+
git fetch origin ${{ github.event.before }}
33+
echo "base_sha=${{ github.event.before }}" >> $GITHUB_ENV
34+
echo "Merging ${{ github.sha }} into ${{ github.event.before }}"
35+
36+
- name: Check for merge conflicts
37+
run: |
38+
echo "Files changed: '$(git diff-tree --no-commit-id --name-only -r ${{ env.base_sha }} ${{ github.sha }})'"
39+
changed_files=$(git diff-tree --diff-filter=d --no-commit-id --name-only -r ${{ env.base_sha }} ${{ github.sha }})
40+
41+
merge_conflict_found=false
42+
for file in $changed_files ; do
43+
if [ -f $file ]; then
44+
echo "Checking for merge conflicts in $file"
45+
if grep -H -r "^<<<<<<< HEAD$" $file; then
46+
echo "Merge conflict found in $file"
47+
merge_conflict_found=true
48+
fi
49+
50+
if grep -H -r "^>>>>>>>$" $file; then
51+
echo "Merge conflict found in $file"
52+
merge_conflict_found=true
53+
fi
54+
55+
if grep -H -r "^=======$" $file; then
56+
echo "Merge conflict found in $file"
57+
merge_conflict_found=true
58+
fi
59+
fi
60+
done
61+
62+
if [[ $merge_conflict_found =~ [Tt]rue ]]; then
63+
echo "Merge conflict found in one or more files"
64+
exit 1
65+
fi

.github/workflows/validate-cg-manifest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ignore_no_source_tarball=" \
5252
python-rpm-generators \
5353
qt-rpm-macros \
5454
sgx-backwards-compatibility \
55-
verity-read-only-root \
55+
shim \
5656
web-assets \
5757
"
5858

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
4+
# Triggers controlled on the ADO side.
5+
trigger: none
6+
7+
resources:
8+
repositories:
9+
- repository: templates
10+
type: git
11+
name: OneBranch.Pipelines/GovernedTemplates
12+
ref: refs/heads/main
13+
14+
extends:
15+
template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates
16+
parameters:
17+
featureFlags:
18+
runOnHost: true
19+
globalSdl:
20+
credscan:
21+
suppressionsFile: .config/CredScanSuppressions.json
22+
stages:
23+
- stage: InfoPublishing
24+
jobs:
25+
- job: PublishMergeInfo
26+
pool:
27+
type: linux
28+
29+
variables:
30+
ob_outputDirectory: "$(Pipeline.Workspace)/not_used/OB_template_complains_if_this_is_not_set"
31+
32+
steps:
33+
- script: |
34+
set -e
35+
36+
echo "##vso[build.addbuildtag]Repository.Name-$(Build.Repository.Name)"
37+
echo "##vso[build.addbuildtag]SourceBranch-$(Build.SourceBranch)"
38+
echo "##vso[build.addbuildtag]SourceVersion-$(Build.SourceVersion)"
39+
displayName: "Set merge info tags"

.pipelines/templates/PackageBuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ steps:
297297
- bash: |
298298
published_logs_dir="${{ parameters.outputArtifactsFolder }}/${{ parameters.outputArtifactsLogsSubfolder }}"
299299
mkdir -p "$published_logs_dir"
300-
tar -C "${{ parameters.buildRepoRoot }}/build/logs/pkggen" -czf "$published_logs_dir/pkggen.logs.tar.gz" .
300+
tar -C "${{ parameters.buildRepoRoot }}/build/logs" -czf "$published_logs_dir/pkggen.logs.tar.gz" .
301301
tar -C "${{ parameters.buildRepoRoot }}/build/pkg_artifacts" -czf "$published_logs_dir/pkg_artifacts.tar.gz" .
302302
tar -C "${{ parameters.buildRepoRoot }}/build/timestamp" -czf "$published_logs_dir/timestamp.tar.gz" .
303303
condition: always()

LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSES-AND-NOTICES/SPECS/data/licenses.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,6 +1986,8 @@
19861986
"sgpio",
19871987
"shared-mime-info",
19881988
"sharutils",
1989+
"shim-unsigned-aarch64",
1990+
"shim-unsigned-x64",
19891991
"sip",
19901992
"sisu",
19911993
"skkdic",
@@ -2417,9 +2419,6 @@
24172419
"sdbus-cpp",
24182420
"sgx-backwards-compatibility",
24192421
"shim",
2420-
"shim-unsigned",
2421-
"shim-unsigned-aarch64",
2422-
"shim-unsigned-x64",
24232422
"skopeo",
24242423
"span-lite",
24252424
"sriov-network-device-plugin",
@@ -2434,7 +2433,6 @@
24342433
"usrsctp",
24352434
"vala",
24362435
"valkey",
2437-
"verity-read-only-root",
24382436
"vnstat",
24392437
"zstd"
24402438
]

SPECS-SIGNED/grub2-efi-binary-signed/grub2-efi-binary-signed.spec

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
%global debug_package %{nil}
2+
%global efidir BOOT
23
%ifarch x86_64
34
%global buildarch x86_64
45
%global grubefiname grubx64.efi
@@ -12,7 +13,7 @@
1213
Summary: Signed GRand Unified Bootloader for %{buildarch} systems
1314
Name: grub2-efi-binary-signed-%{buildarch}
1415
Version: 2.06
15-
Release: 21%{?dist}
16+
Release: 22%{?dist}
1617
License: GPLv3+
1718
Vendor: Microsoft Corporation
1819
Distribution: Azure Linux
@@ -42,6 +43,8 @@ specifically created for installing on %{buildarch} systems
4243
Summary: GRand Unified Bootloader
4344
Group: Applications/System
4445
Requires: grub2-tools-minimal = %{version}-%{release}
46+
Recommends: shim >= 15.8-3
47+
Conflicts: shim < 15.8-3
4548

4649
# Some distros split 'grub2' into more subpackages. For now we're bundling it all together
4750
# inside the default package and adding these 'Provides' to make installation more user-friendly
@@ -58,6 +61,8 @@ specifically created for installing on %{buildarch} systems
5861
Summary: GRand Unified Bootloader
5962
Group: Applications/System
6063
Requires: grub2-tools-minimal = %{version}-%{release}
64+
Recommends: shim >= 15.8-3
65+
Conflicts: shim < 15.8-3
6166

6267
%description -n grub2-efi-binary-noprefix
6368
This package contains the GRUB EFI image with no prefix directory set and is signed for secure boot. The package is
@@ -68,17 +73,20 @@ specifically created for installing on %{buildarch} systems
6873
%build
6974

7075
%install
71-
mkdir -p %{buildroot}/boot/efi/EFI/BOOT
72-
cp %{SOURCE2} %{buildroot}/boot/efi/EFI/BOOT/%{grubefiname}
73-
cp %{SOURCE3} %{buildroot}/boot/efi/EFI/BOOT/%{grubpxeefiname}
76+
mkdir -p %{buildroot}/boot/efi/EFI/%{efidir}
77+
cp %{SOURCE2} %{buildroot}/boot/efi/EFI/%{efidir}/%{grubefiname}
78+
cp %{SOURCE3} %{buildroot}/boot/efi/EFI/%{efidir}/%{grubpxeefiname}
7479

7580
%files -n grub2-efi-binary
76-
/boot/efi/EFI/BOOT/%{grubefiname}
81+
/boot/efi/EFI/%{efidir}/%{grubefiname}
7782

7883
%files -n grub2-efi-binary-noprefix
79-
/boot/efi/EFI/BOOT/%{grubpxeefiname}
84+
/boot/efi/EFI/%{efidir}/%{grubpxeefiname}
8085

8186
%changelog
87+
* Sun Nov 10 2024 Chris Co <chrco@microsoft.com> - 2.06-22
88+
- Set efidir location to BOOT for eventual use in changing to "azurelinux"
89+
8290
* Mon Oct 28 2024 Chris Co <chrco@microsoft.com> - 2.06-21
8391
- Bump release number to match grub release
8492

SPECS-SIGNED/kernel-signed/kernel-signed.spec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Summary: Signed Linux Kernel for %{buildarch} systems
1111
Name: kernel-signed-%{buildarch}
1212
Version: 6.6.57.1
13-
Release: 2%{?dist}
13+
Release: 4%{?dist}
1414
License: GPLv2
1515
Vendor: Microsoft Corporation
1616
Distribution: Azure Linux
@@ -145,6 +145,12 @@ echo "initrd of kernel %{uname_r} removed" >&2
145145
%exclude /module_info.ld
146146

147147
%changelog
148+
* Wed Nov 06 2024 Suresh Babu Chalamalasetty <schalam@microsoft.com> - 6.6.57.1-4
149+
- Bump release to match kernel
150+
151+
* Tue Nov 05 2024 Chris Co <chrco@microsoft.com> - 6.6.57.1-3
152+
- Bump release to match kernel
153+
148154
* Wed Oct 30 2024 Thien Trung Vuong <tvuong@microsoft.com> - 6.6.57.1-2
149155
- Bump release to match kernel
150156

SPECS-SIGNED/kernel-uki-signed/kernel-uki-signed.spec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Summary: Signed Unified Kernel Image for %{buildarch} systems
77
Name: kernel-uki-signed-%{buildarch}
88
Version: 6.6.57.1
9-
Release: 2%{?dist}
9+
Release: 4%{?dist}
1010
License: GPLv2
1111
Vendor: Microsoft Corporation
1212
Distribution: Azure Linux
@@ -68,6 +68,12 @@ popd
6868
/boot/efi/EFI/Linux/vmlinuz-uki-%{kernelver}.efi
6969

7070
%changelog
71+
* Wed Nov 06 2024 Suresh Babu Chalamalasetty <schalam@microsoft.com> - 6.6.57.1-4
72+
- Bump release to match kernel
73+
74+
* Tue Nov 05 2024 Chris Co <chrco@microsoft.com> - 6.6.57.1-3
75+
- Bump release to match kernel
76+
7177
* Wed Oct 30 2024 Thien Trung Vuong <tvuong@microsoft.com> - 6.6.57.1-2
7278
- Bump release to match kernel
7379

SPECS/azurelinux-release/azurelinux-release.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Summary: Azure Linux release files
66
Name: azurelinux-release
77
Version: %{dist_version}.0
8-
Release: 21%{?dist}
8+
Release: 22%{?dist}
99
License: MIT
1010
Vendor: Microsoft Corporation
1111
Distribution: Azure Linux
@@ -118,6 +118,9 @@ install -Dm0644 %{SOURCE4} -t %{buildroot}%{_sysctldir}/
118118
%{_sysctldir}/*.conf
119119

120120
%changelog
121+
* Fri Nov 22 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 3.0-22
122+
- Bump release for December 2024 Update
123+
121124
* Fri Oct 25 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 3.0-21
122125
- Bump release for November 2024
123126

0 commit comments

Comments
 (0)