2023-12-09 10:10:38 +01:00
|
|
|
#
|
|
|
|
# spec file for package dracut-pcr-signature
|
|
|
|
#
|
2024-01-09 08:41:40 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-12-09 10:10:38 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dracut-pcr-signature
|
2024-04-17 04:36:47 +02:00
|
|
|
Version: 0.3+2
|
2023-12-09 10:10:38 +01:00
|
|
|
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
|
|
|
|
Requires: dracut
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Dracut module to import PCR signatures. This will make possible the
|
|
|
|
prediction of the initrd (and cmdline) hashes, as will not require the
|
|
|
|
update of the initrd to introduce the JSON and PEM files required to
|
|
|
|
unlock the LUKS2 device via systemd-cryptsetup.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%dir /usr/lib/dracut
|
|
|
|
%dir /usr/lib/dracut/modules.d
|
|
|
|
/usr/lib/dracut/modules.d/50pcr-signature
|
|
|
|
|
|
|
|
%changelog
|