From 2ad5911360338d2d893be9baa7767fe43b1679db Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Thu, 14 Sep 2023 11:25:17 +0300 Subject: [PATCH] Rebase/Clean up patches Signed-off-by: David Abdurachmanov --- ...841137833edeaf3779542d6475f0dc3aa5a7.patch | 25 +++---------------- ...fc4820ad1ef2d54c695699de949974dc5bbc.patch | 23 ----------------- systemd.spec | 2 +- 3 files changed, 5 insertions(+), 45 deletions(-) delete mode 100644 ca15fc4820ad1ef2d54c695699de949974dc5bbc.patch diff --git a/2bca841137833edeaf3779542d6475f0dc3aa5a7.patch b/2bca841137833edeaf3779542d6475f0dc3aa5a7.patch index 2f17945..c9e5d6c 100644 --- a/2bca841137833edeaf3779542d6475f0dc3aa5a7.patch +++ b/2bca841137833edeaf3779542d6475f0dc3aa5a7.patch @@ -1,22 +1,5 @@ -From 2bca841137833edeaf3779542d6475f0dc3aa5a7 Mon Sep 17 00:00:00 2001 -From: Emil Renner Berthing -Date: Sat, 29 Jul 2023 22:26:54 +0200 -Subject: [PATCH] 90-loaderentry: support installing device trees - -Like the cmdline file we look for a devicetree file in -$KERNEL_INSTALL_CONF_ROOT, /etc/kernel and /usr/lib/kernel. If it is -present we look for the specified device tree that comes with the kernel -we're adding and install it into $ENTRY_DIR_ABS and add a devicetree -stanza to the loader entry. - -Unfortunately it seems there is no common consensus on where to install -device tree blobs, so we have to look in a few different places for it. ---- - src/kernel-install/90-loaderentry.install.in | 38 ++++++++++++++++++++ - 1 file changed, 38 insertions(+) - diff --git a/src/kernel-install/90-loaderentry.install.in b/src/kernel-install/90-loaderentry.install.in -index bc4cad9e6f61f..dc7c371e5a195 100755 +index e8e8cf3..8f13307 100755 --- a/src/kernel-install/90-loaderentry.install.in +++ b/src/kernel-install/90-loaderentry.install.in @@ -115,6 +115,43 @@ install -m 0644 "$KERNEL_IMAGE" "$KERNEL_DEST" || { @@ -62,12 +45,12 @@ index bc4cad9e6f61f..dc7c371e5a195 100755 + shift "$INITRD_OPTIONS_SHIFT" # All files listed as arguments, and staged files starting with "initrd" are installed as initrds. - for initrd in "${KERNEL_INSTALL_STAGING_AREA}"/microcode* "${@}" "${KERNEL_INSTALL_STAGING_AREA}"/initrd*; do -@@ -154,6 +191,7 @@ mkdir -p "${LOADER_ENTRY%/*}" || { + for initrd in "$@" "${KERNEL_INSTALL_STAGING_AREA}"/initrd*; do +@@ -151,6 +188,7 @@ mkdir -p "${LOADER_ENTRY%/*}" || { [ -n "$SORT_KEY" ] && echo "sort-key $SORT_KEY" echo "options $BOOT_OPTIONS" echo "linux $KERNEL_ENTRY" + [ -n "$DEVICETREE_ENTRY" ] && echo "devicetree $DEVICETREE_ENTRY" have_initrd= - for initrd in "${KERNEL_INSTALL_STAGING_AREA}"/microcode* "${@}" "${KERNEL_INSTALL_STAGING_AREA}"/initrd*; do + for initrd in "${@}" "${KERNEL_INSTALL_STAGING_AREA}"/initrd*; do diff --git a/ca15fc4820ad1ef2d54c695699de949974dc5bbc.patch b/ca15fc4820ad1ef2d54c695699de949974dc5bbc.patch deleted file mode 100644 index 3281e1a..0000000 --- a/ca15fc4820ad1ef2d54c695699de949974dc5bbc.patch +++ /dev/null @@ -1,23 +0,0 @@ -From ca15fc4820ad1ef2d54c695699de949974dc5bbc Mon Sep 17 00:00:00 2001 -From: Xeonacid -Date: Sat, 8 Jul 2023 20:56:47 +0800 -Subject: [PATCH] seccomp: add riscv_hwprobe to @default - -This syscall is for probing hardware capabilities from userspace and should do no harm. -Added in https://github.com/torvalds/linux/commit/ea3de9ce8aa280c5175c835bd3e94a3a9b814b74 ---- - src/shared/seccomp-util.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c -index 4eae96e69a644..ed3119d14e697 100644 ---- a/src/shared/seccomp-util.c -+++ b/src/shared/seccomp-util.c -@@ -358,6 +358,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = { - "prlimit64\0" - "restart_syscall\0" - "riscv_flush_icache\0" -+ "riscv_hwprobe\0" - "rseq\0" - "rt_sigreturn\0" - "sched_getaffinity\0" diff --git a/systemd.spec b/systemd.spec index 4ca7059..522ee32 100644 --- a/systemd.spec +++ b/systemd.spec @@ -103,8 +103,8 @@ GIT_DIR=../../src/systemd/.git git diffab -M v233..master@{2017-06-15} -- hwdb/[ Patch0001: https://github.com/systemd/systemd/pull/26494.patch +# riscv backports Patch0010: https://github.com/systemd/systemd/commit/2bca841137833edeaf3779542d6475f0dc3aa5a7.patch -Patch0011: https://github.com/systemd/systemd/commit/ca15fc4820ad1ef2d54c695699de949974dc5bbc.patch # Those are downstream-only patches, but we don't want them in packit builds: # https://bugzilla.redhat.com/show_bug.cgi?id=1738828