diff --git a/_servicedata b/_servicedata
index c0e4e84..fd3a7c6 100644
--- a/_servicedata
+++ b/_servicedata
@@ -1,4 +1,4 @@
https://github.com/aplanas/dracut-pcr-signature.git
- a92010648c3aa7469928ecc7fff29d99d388ff6a
\ No newline at end of file
+ 1ae9b3570a9fdfe9882c3800e2c486ed12f02e69
\ No newline at end of file
diff --git a/dracut-pcr-signature-0.4+2.tar.xz b/dracut-pcr-signature-0.4+2.tar.xz
deleted file mode 100644
index 357c12f..0000000
--- a/dracut-pcr-signature-0.4+2.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:8981075a7fdbf011e50511a1247598dc6362f5abc806fb1e1d4d366cae364df3
-size 8348
diff --git a/dracut-pcr-signature-0.5+0.tar.xz b/dracut-pcr-signature-0.5+0.tar.xz
new file mode 100644
index 0000000..1506e2a
--- /dev/null
+++ b/dracut-pcr-signature-0.5+0.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:13afef632a38aa91c5cd2ef765f3e4a1b02052ad371689b7da1a52e91b327d0f
+size 8620
diff --git a/dracut-pcr-signature.changes b/dracut-pcr-signature.changes
index 5ceb2eb..3e1428f 100644
--- a/dracut-pcr-signature.changes
+++ b/dracut-pcr-signature.changes
@@ -1,3 +1,11 @@
+-------------------------------------------------------------------
+Thu Oct 31 09:37:56 UTC 2024 - aplanas@suse.com
+
+- Update to version 0.5+0:
+ * Normalize spec file
+ * Use a generator to mount ESP
+ * Avoid race condition when multiple disks are encrypted
+
-------------------------------------------------------------------
Mon Oct 07 14:52:41 UTC 2024 - aplanas@suse.com
diff --git a/dracut-pcr-signature.spec b/dracut-pcr-signature.spec
index 0eba466..e162a11 100644
--- a/dracut-pcr-signature.spec
+++ b/dracut-pcr-signature.spec
@@ -17,12 +17,13 @@
Name: dracut-pcr-signature
-Version: 0.4+2
+Version: 0.5+0
Release: 0
Summary: Dracut module to import PCR signatures
License: GPL-2.0-or-later
URL: https://github.com/aplanas/dracut-pcr-signature
Source: %{name}-%{version}.tar.xz
+BuildRequires: pkgconfig
BuildRequires: rpm-config-SUSE
BuildRequires: pkgconfig(dracut)
BuildArch: noarch
@@ -39,10 +40,10 @@ unlock the LUKS2 device via systemd-cryptsetup.
%build
%install
-mkdir -p %buildroot/usr/lib/dracut/modules.d/50pcr-signature
-cp module-setup.sh %buildroot/usr/lib/dracut/modules.d/50pcr-signature
-cp pcr-signature.sh %buildroot/usr/lib/dracut/modules.d/50pcr-signature
-cp pcr-signature.conf %buildroot/usr/lib/dracut/modules.d/50pcr-signature
+mkdir -p %{buildroot}%{_prefix}/lib/dracut/modules.d/50pcr-signature
+for i in module-setup.sh boot-efi-generator.sh pcr-signature.sh pcr-signature.service; do
+ cp "$i" %{buildroot}%{_prefix}/lib/dracut/modules.d/50pcr-signature
+done
%post
%{?regenerate_initrd_post}
@@ -56,8 +57,8 @@ cp pcr-signature.conf %buildroot/usr/lib/dracut/modules.d/50pcr-signature
%files
%license LICENSE
%doc README.md
-%dir /usr/lib/dracut
-%dir /usr/lib/dracut/modules.d
-/usr/lib/dracut/modules.d/50pcr-signature
+%dir %{_prefix}/lib/dracut
+%dir %{_prefix}/lib/dracut/modules.d
+%{_prefix}/lib/dracut/modules.d/50pcr-signature
%changelog