Accepting request 1130227 from home:aplanas:branches:devel:microos
Dracut module to import into the initrd the PCR signatures from the ESP OBS-URL: https://build.opensuse.org/request/show/1130227 OBS-URL: https://build.opensuse.org/package/show/devel:microos/dracut-pcr-signature?expand=0&rev=1
This commit is contained in:
commit
8f909e67ff
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
17
_service
Normal file
17
_service
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<services>
|
||||
<service name="tar_scm" mode="manual">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/aplanas/dracut-pcr-signature.git</param>
|
||||
<param name="revision">main</param>
|
||||
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="extract">dracut-pcr-signature.spec</param>
|
||||
</service>
|
||||
<service name="recompress" mode="manual">
|
||||
<param name="compression">xz</param>
|
||||
<param name="file">*.tar</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual"/>
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/aplanas/dracut-pcr-signature.git</param>
|
||||
<param name="changesrevision">bf9761a7efc5c7965f1249fe11ca3ad9c44bf774</param></service></servicedata>
|
3
dracut-pcr-signature-0.1+1.tar.xz
Normal file
3
dracut-pcr-signature-0.1+1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:61521cc8a92c2d776997c71db26598227ff4f05f87b15822b520cc229201a635
|
||||
size 8220
|
10
dracut-pcr-signature.changes
Normal file
10
dracut-pcr-signature.changes
Normal file
@ -0,0 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 01 13:04:17 UTC 2023 - aplanas@suse.com
|
||||
|
||||
- Update to version 0.1+1:
|
||||
* Use xz compression
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 29 15:47:37 UTC 2023 - Alberto Planas Dominguez <aplanas@suse.com>
|
||||
|
||||
- Initial package
|
53
dracut-pcr-signature.spec
Normal file
53
dracut-pcr-signature.spec
Normal file
@ -0,0 +1,53 @@
|
||||
#
|
||||
# spec file for package dracut-pcr-signature
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# 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
|
||||
Version: 0.1+1
|
||||
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
|
Loading…
Reference in New Issue
Block a user