From c88c9e6568a4994a3a859d85099c6f0a9ee956ca Mon Sep 17 00:00:00 2001 From: nettingsisyphus Date: Tue, 22 Dec 2020 21:09:09 +0800 Subject: [PATCH] carry xattr when copying files to initramfs --- ...attr-when-copying-files-to-initramfs.patch | 26 +++++++++++++++++++ plymouth.spec | 7 ++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 carry-xattr-when-copying-files-to-initramfs.patch diff --git a/carry-xattr-when-copying-files-to-initramfs.patch b/carry-xattr-when-copying-files-to-initramfs.patch new file mode 100644 index 0000000..212b7b2 --- /dev/null +++ b/carry-xattr-when-copying-files-to-initramfs.patch @@ -0,0 +1,26 @@ +From 1b33543094337e1edf6b7806d0cffed5ea6b0629 Mon Sep 17 00:00:00 2001 +From: Anakin Zhang +Date: Thu, 24 Sep 2020 23:51:51 +0800 +Subject: [PATCH] carry xattr when copying files to initramfs + +Signed-off-by: Anakin Zhang +--- + scripts/plymouth-populate-initrd.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/plymouth-populate-initrd.in b/scripts/plymouth-populate-initrd.in +index 616ecc4..100724d 100644 +--- a/scripts/plymouth-populate-initrd.in ++++ b/scripts/plymouth-populate-initrd.in +@@ -144,7 +144,7 @@ inst_simple() { + inst "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac" + fi + ddebug "Installing $_src" +- cp --sparse=always -pfL "$PLYMOUTH_SYSROOT$_src" "${initdir}/$target" ++ cp -a --sparse=always -pfL "$PLYMOUTH_SYSROOT$_src" "${initdir}/$target" + } + + # find symlinks linked to given library file +-- +2.23.0.windows.1 + diff --git a/plymouth.spec b/plymouth.spec index 35cb48e..be52c6e 100644 --- a/plymouth.spec +++ b/plymouth.spec @@ -2,12 +2,14 @@ Name: plymouth Version: 0.9.5 -Release: 1 +Release: 2 License: GPLv2+ Summary: Graphical Boot Animation and Logger URL: https://www.freedesktop.org/wiki/Software/Plymouth Source0: %{name}-%{version}.tar.gz +Patch9000: carry-xattr-when-copying-files-to-initramfs.patch + BuildRequires: gcc libtool libdrm-devel systemd-devel kernel-headers BuildRequires: libpng-devel libxslt docbook-style-xsl gtk3-devel BuildRequires: pango-devel cairo-devel gettext-devel intltool @@ -218,6 +220,9 @@ fi %{_mandir}/man?/* %changelog +* Tue Dec 22 2020 openEuler Buildteam - 0.9.5-2 +- carry xattr when copying files to initramfs + * Thu Aug 27 2020 yuboyun - 0.9.5-1 - Type:NA - Id:NA