diff --git a/dracut.spec b/dracut.spec index 372fc9fb98a3fcbafbdbfb53eb11d9d05722a8aa..869d9760dee38830cb8eea9f231923f981512fa4 100644 --- a/dracut.spec +++ b/dracut.spec @@ -9,7 +9,7 @@ Name: dracut Version: 059 -Release: 13 +Release: 14 Summary: Initramfs generator using udev @@ -46,6 +46,7 @@ Patch6005: backport-feat-dracut-init.sh-give-force-add-precedence-over-o.patch Patch6006: backport-fix-make-iso-scan-trigger-udev-events.patch Patch9000: remove-iscsi-related-code-since-it-is-no-longer-main.patch +Patch9001: stderr-redirect-to-dev-null.patch Source1: https://www.gnu.org/licenses/lgpl-2.1.txt Source2: openEuler.conf.example @@ -534,6 +535,9 @@ rm -f 51-dracut-rescue-postinst.sh %endif %changelog +* Tue Oct 28 2025 zhangshaoning - 059-14 +- Fix unuseful stderr redirect to /dev/null + * Mon Sep 08 2025 Han Jinpeng - 059-13 - Fix the issue of autosetup macro expansion in changelog diff --git a/stderr-redirect-to-dev-null.patch b/stderr-redirect-to-dev-null.patch new file mode 100644 index 0000000000000000000000000000000000000000..c57924dbf5836359865e69f436ae4b8f2c56164c --- /dev/null +++ b/stderr-redirect-to-dev-null.patch @@ -0,0 +1,34 @@ +From eea2a363d3508da40cf49a80c6143dd07388088a Mon Sep 17 00:00:00 2001 +From: zhangshaoning +Date: Tue, 28 Oct 2025 09:53:12 +0800 +Subject: [PATCH] stderr redirect to /dev/null + +--- + modules.d/90dmsquash-live/dmsquash-live-root.sh | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh +index 62d1b5e..dbed767 100755 +--- a/modules.d/90dmsquash-live/dmsquash-live-root.sh ++++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh +@@ -37,14 +37,14 @@ getargbool 0 rd.live.overlay.overlayfs && overlayfs="yes" + # Otherwise returns the original path + get_check_dev() { + local _udevinfo +- dev_path="$(udevadm info -q path --name "$1")" +- _udevinfo="$(udevadm info -q property --path "${dev_path}")" ++ dev_path="$(udevadm info -q path --name "$1" 2> /dev/null)" ++ _udevinfo="$(udevadm info -q property --path "${dev_path}" 2> /dev/null)" + strstr "$_udevinfo" "DEVTYPE=partition" || { + echo "$1" + return + } + parent="${dev_path%/*}" +- _udevinfo="$(udevadm info -q property --path "${parent}")" ++ _udevinfo="$(udevadm info -q property --path "${parent}" 2> /dev/null)" + strstr "$_udevinfo" "DEVTYPE=disk" || { + echo "$1" + return +-- +2.18.2 +