boot/systemd-boot: new package
PATCH 1/1 boot/systemd-boot: new package
From: James Hilliard <[email protected]>
This is essentially the successor to gummiboot.
Signed-off-by James Hilliard <[email protected]>
--- DEVELOPERS | 1 + boot/Config.in | 1 + boot/systemd-boot/0001-fix-getty-unit.patch | 81 +++++++++++++++ .../0002-install-don-t-use-ln-relative.patch | 80 +++++++++++++++ ...etect-whether-struct-statx-is-defined-in-.patch | 111 +++++++++++++++++++++ ...-linux-stat.h-check-with-other-checks-and.patch | 77 ++++++++++++++ ...sure-we-have-enough-space-for-the-DHCP6-o.patch | 30 ++++++ ...eson.build-fix-detection-of-Werror-shadow.patch | 34 +++++++ boot/systemd-boot/Config.in | 23 +++++ boot/systemd-boot/buildroot.conf | 3 + boot/systemd-boot/loader.conf | 2 + boot/systemd-boot/systemd-boot.hash | 5 + boot/systemd-boot/systemd-boot.mk | 106 ++++++++++++++++++++ 13 files changed, 554 insertions(+) create mode 100644 boot/systemd-boot/0001-fix-getty-unit.patch create mode 100644 boot/systemd-boot/0002-install-don-t-use-ln-relative.patch create mode 100644 boot/systemd-boot/0003-build-sys-Detect-whether-struct-statx-is-defined-in-.patch create mode 100644 boot/systemd-boot/0004-meson-unify-linux-stat.h-check-with-other-checks-and.patch create mode 100644 boot/systemd-boot/0005-dhcp6-make-sure-we-have-enough-space-for-the-DHCP6-o.patch create mode 100644 boot/systemd-boot/0006-meson.build-fix-detection-of-Werror-shadow.patch create mode 100644 boot/systemd-boot/Config.in create mode 100644 boot/systemd-boot/buildroot.conf create mode 100644 boot/systemd-boot/loader.conf create mode 100644 boot/systemd-boot/systemd-boot.hash create mode 100644 boot/systemd-boot/systemd-boot.mk
DEVELOPERS +1 -0
@@ -995,6 +995,7 @@ F: configs/pine64_defconfig F: configs/pine64_sopine_defconfig N: James Hilliard <[email protected]> +F: boot/systemd-boot/ F: package/python-aiodns/ F: package/python-aiohttp/ F: package/python-aiohttp-jinja2/
boot/Config.in +1 -0
@@ -16,6 +16,7 @@ source "boot/mxs-bootlets/Config.in" source "boot/riscv-pk/Config.in" source "boot/s500-bootloader/Config.in" source "boot/syslinux/Config.in" +source "boot/systemd-boot/Config.in" source "boot/ts4800-mbrboot/Config.in" source "boot/uboot/Config.in" source "boot/vexpress-firmware/Config.in"
boot/systemd-boot/0001-fix-getty-unit.patch new file +81 -0
81 lines not on this page · raw message
boot/systemd-boot/0002-install-don-t-use-ln-relative.patch new file +80 -0
80 lines not on this page · raw message
boot/systemd-boot/0003-build-sys-Detect-whether-struct-statx-is-defined-in-.patch new file +111 -0
111 lines not on this page · raw message
boot/systemd-boot/0004-meson-unify-linux-stat.h-check-with-other-checks-and.patch new file +77 -0
77 lines not on this page · raw message
boot/systemd-boot/0005-dhcp6-make-sure-we-have-enough-space-for-the-DHCP6-o.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 49653743f69658aeeebdb14faf1ab158f1f2cb20 Mon Sep 17 00:00:00 2001 +From: Lennart Poettering <[email protected]> +Date: Fri, 19 Oct 2018 12:12:33 +0200 +Subject: [PATCH] dhcp6: make sure we have enough space for the DHCP6 option + header + +Fixes CVE-2018-15688: +https://security-tracker.debian.org/tracker/CVE-2018-15688 + +Patch downloaded from upstream commit: +https://github.com/systemd/systemd/commit/49653743f69658aeeebdb14faf1ab158f1f2cb20 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + src/libsystemd-network/dhcp6-option.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/libsystemd-network/dhcp6-option.c b/src/libsystemd-network/dhcp6-option.c +index cbd4bc7a2a3..2806415100c 100644 +--- a/src/libsystemd-network/dhcp6-option.c ++++ b/src/libsystemd-network/dhcp6-option.c +@@ -106,7 +106,7 @@ int dhcp6_option_append_ia(uint8_t **buf, size_t *buflen, const DHCP6IA *ia) { + return -EINVAL; + } + +- if (*buflen < len) ++ if (*buflen < offsetof(DHCP6Option, data) + len) + return -ENOBUFS; + + ia_hdr = *buf;
boot/systemd-boot/0006-meson.build-fix-detection-of-Werror-shadow.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 7bd6e6db3dbb980c099b444c61d9aff7fcc636cf Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Thu, 29 Nov 2018 13:22:08 +0100 +Subject: [PATCH] meson.build: fix detection of -Werror=shadow + +Pass -Werror=shadow in args of cc.compiles otherwise test will always +succeed +This fix a build failure with gcc 4.7.3 + +Fixes: + - http://autobuild.buildroot.org/results/ffd71c473d3b29618c18cd2e04705370266696f2 + +Signed-off-by: Fabrice Fontaine <[email protected]> +[Upstream status: https://github.com/systemd/systemd/pull/10993] +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 37ae27b4a..980150ac8 100644 +--- a/meson.build ++++ b/meson.build +@@ -396,7 +396,7 @@ if cc.compiles(''' + struct timespec now; + return 0; + } +-''', name : '-Werror=shadow with local shadowing') ++''', args: '-Werror=shadow', name : '-Werror=shadow with local shadowing') + add_project_arguments('-Werror=shadow', language : 'c') + endif + +-- +2.14.1 +
boot/systemd-boot/Config.in new file +23 -0
@@ -0,0 +1,23 @@ +config BR2_TARGET_SYSTEMD_BOOT + bool "systemd-boot" + depends on BR2_i386 || BR2_x86_64 + select BR2_PACKAGE_GNU_EFI + select BR2_PACKAGE_UTIL_LINUX + select BR2_PACKAGE_UTIL_LINUX_LIBBLKID + help + systemd-boot is a simple UEFI boot manager which executes + configured EFI images. The default entry is selected by a + configured pattern (glob) or an on-screen menu. + + systemd-boot operates on the EFI System Partition (ESP) + only. Configuration file fragments, kernels, initrds, other + EFI images need to reside on the ESP. Linux kernels need to + be built with CONFIG_EFI_STUB to be able to be directly + executed as an EFI image. + + See the Grub2 help text for details on preparing an EFI + capable disk image using systemd-boot: the instructions are + exactly the same, except that the systemd-boot configuration + files will be located in /loader/ inside the EFI partition. + + https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/
boot/systemd-boot/buildroot.conf new file +3 -0
@@ -0,0 +1,3 @@ +title Buildroot +linux /bzImage +options root=/dev/sda2 rootwait console=tty1
boot/systemd-boot/loader.conf new file +2 -0
@@ -0,0 +1,2 @@ +timeout 3 +default buildroot
boot/systemd-boot/systemd-boot.hash new file +5 -0
@@ -0,0 +1,5 @@ +# sha256 locally computed +sha256 8a11b1b07d620f4c06a16e95bba4dd2a97e90efdf2a5ba47ed0a935085787a14 systemd-boot-239.tar.gz +sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 LICENSE.GPL2 +sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LICENSE.LGPL2.1 +sha256 37ab495827a3cdbbc35ceaba3066764d69b6490e514e0c8a1acdb3c2fdb9e921 README
boot/systemd-boot/systemd-boot.mk new file +106 -0
106 lines not on this page · raw message
Signature · 1 line
2.7.4