• [gentoo-dev] [PATCH 1/5]: secureboot.eclass: add new eclass

    From Andrew Ammerlaan@21:1/5 to All on Fri Jul 14 10:50:02 2023
    From 3116d64388a5381b5ad1d200eb2e01a8194cf631 Mon Sep 17 00:00:00 2001
    From: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
    Date: Tue, 11 Jul 2023 19:47:52 +0200
    Subject: [PATCH 01/13] eclass/secureboot.eclass: add new eclass

    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
    ---
    eclass/secureboot.eclass | 179 +++++++++++++++++++++++++++++++++++++++
    1 file changed, 179 insertions(+)
    create mode 100644 eclass/secureboot.eclass

    diff --git a/eclass/secureboot.eclass b/eclass/secureboot.eclass
    new file mode 100644
    index 000000000000..3cae2faf9711
    --- /dev/null
    +++ b/eclass/secureboot.eclass
    @@ -0,0 +1,179 @@
    +# Copyright 1999-2023 Gentoo Authors
    +# Distributed under the terms of the GNU General Public License v2
    +
    +# @ECLASS: secureboot.eclass
    +# @MAINTAINER:
    +# Andrew Ammerlaan <andrewammerlaan@gentoo.org>
    +# @AUTHOR:
    +# Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
    +# @SUPPORTED_EAPIS: 7 8
    +# @BLURB: A small eclass to sign efi files for Secure Boot
    +# @DESCRIPTION:
    +# Eclass for packages that install .efi files. A use flag and two user
    +# variables allow signing these .efi files for use on systems with
    Secure Boot
    +# enabled.
    +#
    +# Signing the files during emerge ensures that any tooling that actually
    +# installs the bootloaders and kernels
  • From Andrew Ammerlaan@21:1/5 to All on Tue Jul 18 10:30:01 2023
    v2 is mostly just some style fixes and simplifications. The only major difference is that secureboot_auto_sign now also finds .efi32, .efi64 in addition to .efi files. Furthermore, the find is now case insensitive.

    Best regards,
    Andrew

    From 5fa9c00477917b07cbecd1619506d6db8e978cfd Mon Sep 17 00:00:00 2001
    From: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
    Date: Tue, 11 Jul 2023 19:47:52 +0200
    Subject: [PATCH] eclass/secureboot.eclass: add new eclass

    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
    ---
    eclass/secureboot.eclass | 173 +++++++++++++++++++++++++++++++++++++++
    1 file changed, 173 insertions(+)
    create mode 100644 eclass/secureboot.eclass

    diff --git a/eclass/secureboot.eclass b/eclass/secureboot.eclass
    new file mode 100644
    index 0000000000000..477722a83bb3b
    --- /dev/null
    +++ b/eclass/secureboot.eclass
    @@ -0,0 +1,173 @@
    +# Copyright 1999-2023 Gentoo Authors
    +# Distributed under the terms of the GNU General Public License v2
    +
    +# @ECLASS: secureboot.eclass
    +# @MAINTAINER:
    +# Andrew Ammerlaan <andrewammerlaan@gentoo.org>
    +# @AUTHOR:
    +# Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
    +# @SUPPORTED_EAPIS: 7 8
    +# @BLURB: A small eclass to sign efi files for Secure Boot
    +# @DESCRIPTION:
    +# Eclass for packages that install .efi files. A use flag and two user
    +# variables allow signing these .efi files for use on systems with
    Secure Boot
    +# enabled.
    +#
    +# Signing the files during emerge ensures that any tooling that actually
    +# installs the bootloaders and kerne