From c9fd6762d14afbad9be8e55608535342f9ad431d Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Fri, 28 Jun 2024 03:45:12 +0000 Subject: [PATCH] Enable systemd-resolved by default.Resolve: #5859 --- 1020-enable-systemd-resolved-by-default.patch | 26 +++++++++++++++++++ lorax-templates-anolis.spec | 6 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 1020-enable-systemd-resolved-by-default.patch diff --git a/1020-enable-systemd-resolved-by-default.patch b/1020-enable-systemd-resolved-by-default.patch new file mode 100644 index 0000000..7703be9 --- /dev/null +++ b/1020-enable-systemd-resolved-by-default.patch @@ -0,0 +1,26 @@ +From 0b2e8284c5f61ed5444d75c00d705a22b00c3c81 Mon Sep 17 00:00:00 2001 +From: "taifu.gc" +Date: Fri, 28 Jun 2024 03:32:21 +0000 +Subject: [PATCH] 1 + +--- + 80-anolis/runtime-postinstall.tmpl | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/80-anolis/runtime-postinstall.tmpl b/80-anolis/runtime-postinstall.tmpl +index 6a8b76a..e437a5e 100644 +--- a/80-anolis/runtime-postinstall.tmpl ++++ b/80-anolis/runtime-postinstall.tmpl +@@ -26,6 +26,9 @@ symlink /lib/systemd/system/anaconda.target etc/systemd/system/default.target + mkdir etc/systemd/system/local-fs.target.wants/ + symlink /lib/systemd/system/tmp.mount etc/systemd/system/local-fs.target.wants/tmp.mount + ++## Enable systemd-resolved.service by default ++systemctl enable systemd-resolved.service ++ + systemctl enable dbus-daemon + ## Disable unwanted systemd services + systemctl disable systemd-readahead-collect.service \ +-- +2.39.3 + diff --git a/lorax-templates-anolis.spec b/lorax-templates-anolis.spec index fb8d454..2607080 100644 --- a/lorax-templates-anolis.spec +++ b/lorax-templates-anolis.spec @@ -1,4 +1,4 @@ -%define anolis_release 22 +%define anolis_release 23 Name: lorax-templates-anolis Version: 37.0 @@ -31,6 +31,7 @@ Patch1016: 1016-remove-deprecated-kernel-packs-in-6.6-version.patch Patch1017: 1017-add-ls2k500sfb.ko-for-loongarch64.patch Patch1018: 1018-Set-data-source-for-EFI-System-Partition-on-loongarch64.patch Patch1019: 1019-add-inst.xtimeout-1200.patch +Patch1020: 1020-enable-systemd-resolved-by-default.patch # Where are these supposed to end up? %define templatedir %{_datadir}/lorax/templates.d/80-anolis @@ -55,6 +56,9 @@ cp -a 80-anolis/* $RPM_BUILD_ROOT/%{templatedir} %{templatedir}/* %changelog +* Wed Oct 30 2024 Chang Gao - 37.0-1.23 +- Enable systemd-resolved by default. Resolve: #5859 + * Tue Oct 29 2024 yangxinyu - 37.0-1.22 - add-inst.xtimeout-1200 -- Gitee