feat: enable secureboot
This commit is contained in:
parent
d78d4b2e26
commit
ff619402eb
|
|
@ -9,7 +9,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
scripts/chroot
|
scripts/chroot
|
||||||
scripts/image
|
scripts/image
|
||||||
|
scripts/certificates
|
||||||
*.iso
|
*.iso
|
||||||
|
|
|
||||||
|
|
@ -631,9 +631,14 @@ remove packages specified in `filesystem.manifest` that are *not* listed in `fil
|
||||||
2. Create [SBAT](https://github.com/rhboot/shim/blob/main/SBAT.md) file
|
2. Create [SBAT](https://github.com/rhboot/shim/blob/main/SBAT.md) file
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
GRUB_VERSION=`grub-mkstandalone -V | tr -s ' ' | cut -d' ' -f3 | cut -d'-' -f1`
|
||||||
|
GRUB_RELEASE=`grub-mkstandalone -V | tr -s ' ' | cut -d' ' -f3`
|
||||||
|
|
||||||
|
# create SBAT file
|
||||||
cat <<EOF > isolinux/sbat.csv
|
cat <<EOF > isolinux/sbat.csv
|
||||||
sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md
|
sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md
|
||||||
grub,1,Free Software Foundation,grub,2.04,https://www.gnu.org/software/grub/
|
grub,1,Free Software Foundation,grub,$GRUB_VERSION,https://www.gnu.org/software/grub/
|
||||||
|
grub.ubuntu,1,Ubuntu,grub2,$GRUB_RELEASE,https://www.ubuntu.com/
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -349,10 +349,15 @@ EOF
|
||||||
|
|
||||||
popd # return to image directory
|
popd # return to image directory
|
||||||
|
|
||||||
|
# grub version/release
|
||||||
|
GRUB_VERSION=`grub-mkstandalone -V | tr -s ' ' | cut -d' ' -f3 | cut -d'-' -f1`
|
||||||
|
GRUB_RELEASE=`grub-mkstandalone -V | tr -s ' ' | cut -d' ' -f3`
|
||||||
|
|
||||||
# create SBAT file
|
# create SBAT file
|
||||||
cat <<EOF > isolinux/sbat.csv
|
cat <<EOF > isolinux/sbat.csv
|
||||||
sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md
|
sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md
|
||||||
grub,1,Free Software Foundation,grub,2.04,https://www.gnu.org/software/grub/
|
grub,1,Free Software Foundation,grub,$GRUB_VERSION,https://www.gnu.org/software/grub/
|
||||||
|
grub.ubuntu,1,Ubuntu,grub2,$GRUB_RELEASE,https://www.ubuntu.com/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# create a grub UEFI image
|
# create a grub UEFI image
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue