Skip to content

Commit a3d546d

Browse files
committed
Merge remote-tracking branch 'upstream/1.0' into 1.0
2 parents 464e20c + ee38a79 commit a3d546d

File tree

312 files changed

+10926
-29339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

312 files changed

+10926
-29339
lines changed

.github/pull_request_template.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Feel free to delete sections of the template which do not apply to your PR, or a
1010
- [ ] The toolchain/worker package manifests are up-to-date
1111
- [ ] Any updated packages successfully build (or no packages were changed)
1212
- [ ] All package sources are available
13-
- [ ] cgmanifest files are up-to-date and sorted (`./cgmanifest.json`, `./toolkit/tools/cgmanifest.json`, `./toolkit/scripts/toolchain/cgmanifest.json`)
14-
- [ ] LICENSE-MAP files are up-to-date (`./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md`, `./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON`)
13+
- [ ] cgmanifest files are up-to-date and sorted (`./cgmanifest.json`, `./toolkit/tools/cgmanifest.json`, `./toolkit/scripts/toolchain/cgmanifest.json`, `.github/workflows/cgmanifest.json`)
14+
- [ ] LICENSE-MAP files are up-to-date (`./SPECS/LICENSES-AND-NOTICES/data/licenses.json`, `./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md`, `./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON`)
1515
- [ ] All source files have up-to-date hashes in the `*.signatures.json` files
1616
- [ ] `sudo make go-tidy-all` and `sudo make go-test-coverage` pass
1717
- [ ] Documentation has been updated to match any changes to the build system
@@ -42,7 +42,7 @@ NO
4242
- #xxxx
4343

4444
###### Links to CVEs <!-- optional -->
45-
- https://nvd.nist.gov/...
45+
- https://nvd.nist.gov/vuln/detail/CVE-YYYY-XXXX
4646

4747
###### Test Methodology
4848
<!-- How as this test validated? i.e. local build, pipeline build etc. -->
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This action checks that the licenses.json file is up-to-date
2+
# and that the LICENSES-MAP.md file is up-to-date
3+
name: Spec License Map Check
4+
5+
on:
6+
push:
7+
branches: [main, dev, 1.0*]
8+
pull_request:
9+
branches: [main, dev, 1.0*]
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# Checkout the branch of our repo that triggered this action
17+
- name: Workflow trigger checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Setup Python 3.9
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.9
24+
25+
- name: Run license map checking script
26+
run: |
27+
python3 ./SPECS/LICENSES-AND-NOTICES/data/license_map.py \
28+
./SPECS/LICENSES-AND-NOTICES/data/licenses.json \
29+
./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md \
30+
./SPECS \
31+
./SPECS-SIGNED

.github/workflows/go-test-coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Go 1.x
1717
uses: actions/setup-go@v2
1818
with:
19-
go-version: 1.13
19+
go-version: 1.15
2020
id: go
2121

2222
- name: Check out code into the Go module directory

.github/workflows/quickstart_1.0.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ jobs:
2020
with:
2121
ref: '1.0-stable'
2222

23-
- name: Set up Go 1.13
23+
- name: Set up Go 1.15
2424
uses: actions/setup-go@v2
2525
with:
26-
go-version: 1.13
26+
go-version: 1.15
2727
id: go
2828

2929
- name: Install Remaining Prerequisites
3030
run: |
3131
# Golang and docker are already installed on the agent
3232
sudo apt-get update
33-
sudo apt -y install make tar wget curl rpm qemu-utils genisoimage pigz
33+
sudo apt -y install make tar wget curl rpm qemu-utils genisoimage pigz parted
3434
3535
- name: Download SRPMS
3636
run: |
@@ -48,17 +48,17 @@ jobs:
4848
with:
4949
ref: '1.0-stable'
5050

51-
- name: Set up Go 1.13
51+
- name: Set up Go 1.15
5252
uses: actions/setup-go@v2
5353
with:
54-
go-version: 1.13
54+
go-version: 1.15
5555
id: go
5656

5757
- name: Install Remaining Prerequisites
5858
run: |
5959
# Golang and docker are already installed on the agent
6060
sudo apt-get update
61-
sudo apt -y install make tar wget curl rpm qemu-utils genisoimage pigz
61+
sudo apt -y install make tar wget curl rpm qemu-utils genisoimage pigz parted
6262
6363
- name: ISO Quick Start
6464
run: |
@@ -75,17 +75,17 @@ jobs:
7575
with:
7676
ref: '1.0-stable'
7777

78-
- name: Set up Go 1.13
78+
- name: Set up Go 1.15
7979
uses: actions/setup-go@v2
8080
with:
81-
go-version: 1.13
81+
go-version: 1.15
8282
id: go
8383

8484
- name: Install Remaining Prerequisites
8585
run: |
8686
# Golang and docker are already installed on the agent
8787
sudo apt-get update
88-
sudo apt -y install make tar wget curl rpm qemu-utils genisoimage pigz
88+
sudo apt -y install make tar wget curl rpm qemu-utils genisoimage pigz parted
8989
9090
- name: VHDX Quick Start
9191
run: |

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
%global debug_package %{nil}
22
Summary: Signed GRand Unified Bootloader for aarch64 systems
33
Name: grub2-efi-binary-signed-aarch64
4-
Version: 2.02
5-
Release: 26%{?dist}
4+
Version: 2.06~rc1
5+
Release: 1%{?dist}
66
License: GPLv3+
77
Vendor: Microsoft Corporation
88
Distribution: Mariner
@@ -40,6 +40,10 @@ cp %{SOURCE1} %{buildroot}/boot/efi/EFI/BOOT/grubaa64.efi
4040
/boot/efi/EFI/BOOT/grubaa64.efi
4141

4242
%changelog
43+
* Wed Mar 10 2021 Chris Co <[email protected]> - 2.06~rc1-1
44+
- Update to 2.06-rc1
45+
- Incorporate SBAT data
46+
4347
* Wed Dec 23 2020 Pawel Winogrodzki <[email protected]> - 2.02-26
4448
- Updating release to be aligned with the unsigned bits.
4549

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
%global debug_package %{nil}
22
Summary: Signed GRand Unified Bootloader for x86_64 systems
33
Name: grub2-efi-binary-signed-x64
4-
Version: 2.02
5-
Release: 26%{?dist}
4+
Version: 2.06~rc1
5+
Release: 1%{?dist}
66
License: GPLv3+
77
Vendor: Microsoft Corporation
88
Distribution: Mariner
@@ -40,6 +40,10 @@ cp %{SOURCE1} %{buildroot}/boot/efi/EFI/BOOT/grubx64.efi
4040
/boot/efi/EFI/BOOT/grubx64.efi
4141

4242
%changelog
43+
* Wed Mar 10 2021 Chris Co <[email protected]> - 2.06~rc1-1
44+
- Update to 2.06-rc1
45+
- Incorporate SBAT data
46+
4347
* Wed Dec 23 2020 Pawel Winogrodzki <[email protected]> - 2.02-26
4448
- Updating release to be aligned with the unsigned bits.
4549

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

+26-7
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
%define uname_r %{version}-rolling-lts-mariner-%{release}
33
Summary: Signed Linux Kernel for aarch64 systems
44
Name: kernel-signed-aarch64
5-
Version: 5.10.13.1
6-
Release: 1%{?dist}
5+
Version: 5.10.21.1
6+
Release: 3%{?dist}
77
License: GPLv2
88
Vendor: Microsoft Corporation
99
Distribution: Mariner
@@ -22,7 +22,7 @@ URL: https://github.com/microsoft/CBL-Mariner-Linux-Kernel
2222
# 3. Place the unsigned package and signed binary in this spec's folder
2323
# 4. Build this spec
2424
Source0: kernel-%{version}-%{release}.aarch64.rpm
25-
Source1: vmlinuz-%{version}-%{release}
25+
Source1: vmlinuz-%{uname_r}
2626
BuildRequires: cpio
2727
Requires: filesystem
2828
Requires: kmod
@@ -38,16 +38,16 @@ This package contains the Linux kernel package with kernel signed with the produ
3838

3939
%build
4040
rpm2cpio %{SOURCE0} | cpio -idmv
41+
cp %{SOURCE1} ./boot/vmlinuz-%{uname_r}
4142

4243
%install
4344
install -vdm 700 %{buildroot}/boot
4445
install -vdm 755 %{buildroot}/lib/modules/%{uname_r}
4546
mkdir -p %{buildroot}/%{_localstatedir}/lib/initramfs/kernel
4647

47-
cp -rp ./boot/* %{buildroot}/boot
48-
cp -rp ./lib/* %{buildroot}/lib
49-
cp -rp ./var/* %{buildroot}/%{_localstatedir}
50-
cp %{SOURCE1} %{buildroot}/boot/vmlinuz-%{version}-%{release}
48+
cp -rp ./boot/. %{buildroot}/boot
49+
cp -rp ./lib/. %{buildroot}/lib
50+
cp -rp ./var/. %{buildroot}/%{_localstatedir}
5151

5252
%triggerin -- initramfs
5353
mkdir -p %{_localstatedir}/lib/rpm-state/initramfs/pending
@@ -82,6 +82,25 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
8282
%config %{_localstatedir}/lib/initramfs/kernel/%{uname_r}
8383

8484
%changelog
85+
* Thu Mar 18 2021 Chris Co <[email protected]> - 5.10.21.1-3
86+
- Fix file copy
87+
88+
* Wed Mar 17 2021 Nicolas Ontiveros <[email protected]> - 5.10.21.1-2
89+
- Update to kernel release 5.10.21.1-2
90+
91+
* Thu Mar 11 2021 Chris Co <[email protected]> - 5.10.21.1-1
92+
- Update source to 5.10.21.1
93+
94+
* Fri Mar 05 2021 Chris Co <[email protected]> - 5.10.13.1-4
95+
- Update release number to match kernel spec
96+
- Use uname_r macro instead of version-release for kernel version
97+
98+
* Thu Mar 04 2021 Suresh Babu Chalamalasetty <[email protected]> - 5.10.13.1-3
99+
- Update to kernel release 5.10.13.1-3
100+
101+
* Mon Feb 22 2021 Thomas Crain <[email protected]> - 5.10.13.1-2
102+
- Update to kernel release 5.10.13.1-2
103+
85104
* Thu Feb 18 2021 Chris Co <[email protected]> - 5.10.13.1-1
86105
- Update source to 5.10.13.1
87106

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

+26-7
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
%define uname_r %{version}-rolling-lts-mariner-%{release}
33
Summary: Signed Linux Kernel for x86_64 systems
44
Name: kernel-signed-x64
5-
Version: 5.10.13.1
6-
Release: 1%{?dist}
5+
Version: 5.10.21.1
6+
Release: 3%{?dist}
77
License: GPLv2
88
Vendor: Microsoft Corporation
99
Distribution: Mariner
@@ -22,7 +22,7 @@ URL: https://github.com/microsoft/CBL-Mariner-Linux-Kernel
2222
# 3. Place the unsigned package and signed binary in this spec's folder
2323
# 4. Build this spec
2424
Source0: kernel-%{version}-%{release}.x86_64.rpm
25-
Source1: vmlinuz-%{version}-%{release}
25+
Source1: vmlinuz-%{uname_r}
2626
BuildRequires: cpio
2727
Requires: filesystem
2828
Requires: kmod
@@ -38,16 +38,16 @@ This package contains the Linux kernel package with kernel signed with the produ
3838

3939
%build
4040
rpm2cpio %{SOURCE0} | cpio -idmv
41+
cp %{SOURCE1} ./boot/vmlinuz-%{uname_r}
4142

4243
%install
4344
install -vdm 700 %{buildroot}/boot
4445
install -vdm 755 %{buildroot}/lib/modules/%{uname_r}
4546
mkdir -p %{buildroot}/%{_localstatedir}/lib/initramfs/kernel
4647

47-
cp -rp ./boot/* %{buildroot}/boot
48-
cp -rp ./lib/* %{buildroot}/lib
49-
cp -rp ./var/* %{buildroot}/%{_localstatedir}
50-
cp %{SOURCE1} %{buildroot}/boot/vmlinuz-%{version}-%{release}
48+
cp -rp ./boot/. %{buildroot}/boot
49+
cp -rp ./lib/. %{buildroot}/lib
50+
cp -rp ./var/. %{buildroot}/%{_localstatedir}
5151

5252
%triggerin -- initramfs
5353
mkdir -p %{_localstatedir}/lib/rpm-state/initramfs/pending
@@ -82,6 +82,25 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
8282
%config %{_localstatedir}/lib/initramfs/kernel/%{uname_r}
8383

8484
%changelog
85+
* Thu Mar 18 2021 Chris Co <[email protected]> - 5.10.21.1-3
86+
- Fix file copy
87+
88+
* Wed Mar 17 2021 Nicolas Ontiveros <[email protected]> - 5.10.21.1-2
89+
- Update to kernel release 5.10.21.1-2
90+
91+
* Thu Mar 11 2021 Chris Co <[email protected]> - 5.10.21.1-1
92+
- Update source to 5.10.21.1
93+
94+
* Fri Mar 05 2021 Chris Co <[email protected]> - 5.10.13.1-4
95+
- Update release number to match kernel spec
96+
- Use uname_r macro instead of version-release for kernel version
97+
98+
* Thu Mar 04 2021 Suresh Babu Chalamalasetty <[email protected]> - 5.10.13.1-3
99+
- Update to kernel release 5.10.13.1-3
100+
101+
* Mon Feb 22 2021 Thomas Crain <[email protected]> - 5.10.13.1-2
102+
- Update to kernel release 5.10.13.1-2
103+
85104
* Thu Feb 18 2021 Chris Co <[email protected]> - 5.10.13.1-1
86105
- Update source to 5.10.13.1
87106

0 commit comments

Comments
 (0)