Accepting request 1109707 from home:afeijoo:branches:openSUSE:Factory
- Update to version 059+suse.497.ga7feaf12: * chore(suse): disable fips and ima subpackages for i?86 * fix(dracut.sh): remove microcode check based on CONFIG_MICROCODE_[AMD|INTEL] * chore(suse): update SUSE maintainers doc OBS-URL: https://build.opensuse.org/request/show/1109707 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=504
This commit is contained in:
parent
8ab27867a7
commit
4d4ad0e49c
@ -1,25 +1,81 @@
|
||||
Maintaining Dracut
|
||||
Maintaining dracut
|
||||
==================
|
||||
|
||||
1. Adding/Submitting patches:
|
||||
|
||||
Patches get added as merge requests on Github against the respective maintenance branch.
|
||||
If the dracut version is 049, the maintenance branch is SUSE/049. Please make sure
|
||||
to provide an adiquate patch description. If you fix a modules, please prepend the module
|
||||
name in the first line. Also add bugzilla and fate references in their own line:
|
||||
Patches are added as merge requests on GitHub against the respective maintenance
|
||||
branch. Currently, these active maintenance branches are:
|
||||
|
||||
99example: Provide a useful description
|
||||
- SUSE/044 -> SLE 12 SP5
|
||||
- SUSE/049 -> SLE 15 SP2, SLE 15 SP3
|
||||
- SUSE/055 -> SLE 15 SP4
|
||||
- SLE-15-SP5_Update -> SLE 15 SP5 (based on SUSE/055 plus some specific patches)
|
||||
- SUSE/059 -> Tumbleweed
|
||||
|
||||
Explain the use cases for the module in more detail, give a general summary of
|
||||
its purpose.
|
||||
Rules:
|
||||
|
||||
Reference: bsc#4566
|
||||
- Follow the commit message convention [1].
|
||||
- Write related Bugzilla ID in the commit message (the dracut.changes file is
|
||||
updated automatically from the information of the patch).
|
||||
- If the Bugzilla ID cannot be added to the commit title because the length is
|
||||
greater than 80 characters (the maximum allowed), then write it into the
|
||||
commit description (it must be manually added to dracut.changes prior to OBS
|
||||
submission).
|
||||
- To indicate backports of upstream commits use `git cherry-pick -x` (this
|
||||
automatically appends "cherry picked from commit xxxxx").
|
||||
- First, check if your patch can be submitted upstream, and if so, do it there
|
||||
first. Once approved, it can be backported here.
|
||||
|
||||
2. Updating the OBS repo from git:
|
||||
Example, fix for https://bugzilla.opensuse.org/show_bug.cgi?id=1203749:
|
||||
|
||||
```
|
||||
commit 92a6793c7d94a9a70c99ffcaf72112808164851b
|
||||
Author: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
|
||||
Date: Wed Sep 21 11:54:17 2022 +0200
|
||||
|
||||
fix(systemd): add missing modprobe@.service (bsc#1203749)
|
||||
|
||||
sys-kernel-config.mount needs modprobe@configfs.service since systemd v246.7
|
||||
(https://github.com/systemd/systemd/commit/42cc2855), so the kernel configfs
|
||||
fails to mount in the initrd.
|
||||
|
||||
(cherry picked from commit 928252a145ca44627ba5873e01245eabe246992f)
|
||||
```
|
||||
|
||||
2. Updating the OBS repo:
|
||||
|
||||
2.1. Branch dracut
|
||||
|
||||
- Go to the Factory OBS repo [2] and "Branch Package".
|
||||
- Checkout branch with `osc`:
|
||||
|
||||
$ osc checkout home:USER:branches:openSUSE:Factory/dracut
|
||||
|
||||
2.2. Trigger services and build the package
|
||||
|
||||
$ rm dracut*.xz
|
||||
$ rm dracut*.obscpio
|
||||
$ osc service manualrun
|
||||
$ osc ar
|
||||
|
||||
* Verify that the new Bugzilla IDs are referenced in the dracut.changes file.
|
||||
|
||||
2.3. Commit the changes
|
||||
|
||||
$ osc commit
|
||||
|
||||
* Verify that the package is correctly built in the OBS branch.
|
||||
* Test the built package and make sure it fixes the bug.
|
||||
|
||||
2.4. Create request to submit source
|
||||
|
||||
$ osc sr
|
||||
|
||||
* The request is submitted against the OBS Devel repo [3].
|
||||
|
||||
|
||||
--
|
||||
[1] Commit message convention: https://github.com/dracutdevs/dracut/blob/master/docs/HACKING.md#commit-messages
|
||||
[2] Factory OBS repo: https://build.opensuse.org/package/show/openSUSE:Factory/dracut
|
||||
[3] Factory OBS Devel repo: https://build.opensuse.org/package/show/Base:System/dracut
|
||||
|
||||
rm dracut*.xz
|
||||
rm dracut*.obscpio
|
||||
osc service manualrun
|
||||
osc ar
|
||||
osc commit
|
||||
osc sr
|
||||
|
@ -1,4 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/opensuse/dracut.git</param>
|
||||
<param name="changesrevision">99bc39eb41f1d3ca3e2cd8e50e0ed97aa33a9182</param></service></servicedata>
|
||||
<param name="changesrevision">a7feaf124e8b2fb26ef237d36b290de5e3320e6d</param></service></servicedata>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4a41dabcf5748fc5c2733d351957a372d78db194df1d5e10fd4d965dfc390579
|
||||
size 2096140
|
3
dracut-059+suse.497.ga7feaf12.obscpio
Normal file
3
dracut-059+suse.497.ga7feaf12.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:91f48c744e5f905c2de41984af1a898d2a44cf8a984c5195f214898cbd985eb6
|
||||
size 2098700
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 08 09:51:48 UTC 2023 - antonio.feijoo@suse.com
|
||||
|
||||
- Update to version 059+suse.497.ga7feaf12:
|
||||
* chore(suse): disable fips and ima subpackages for i?86
|
||||
* fix(dracut.sh): remove microcode check based on CONFIG_MICROCODE_[AMD|INTEL]
|
||||
* chore(suse): update SUSE maintainers doc
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 11 08:32:42 UTC 2023 - antonio.feijoo@suse.com
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: dracut
|
||||
version: 059+suse.491.g87f19c22
|
||||
mtime: 1691742580
|
||||
commit: 87f19c22a1ec012937ba10b28aceb39500111605
|
||||
version: 059+suse.497.ga7feaf12
|
||||
mtime: 1694166628
|
||||
commit: a7feaf124e8b2fb26ef237d36b290de5e3320e6d
|
||||
|
34
dracut.spec
34
dracut.spec
@ -25,7 +25,7 @@
|
||||
%endif
|
||||
|
||||
Name: dracut
|
||||
Version: 059+suse.491.g87f19c22
|
||||
Version: 059+suse.497.ga7feaf12
|
||||
Release: 0
|
||||
Summary: Event driven initramfs infrastructure
|
||||
License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||
@ -76,6 +76,7 @@ Dracut contains various modules which are driven by the event-based udev
|
||||
and systemd. Having root on MD, DM, LVM2, LUKS is supported as well as
|
||||
NFS, iSCSI, NBD, FCoE.
|
||||
|
||||
%ifnarch %ix86
|
||||
%package fips
|
||||
Summary: Dracut modules to build a dracut initramfs with an integrity check
|
||||
Group: System/Base
|
||||
@ -89,7 +90,9 @@ Requires: libopenssl1_1-hmac
|
||||
This package requires everything which is needed to build an
|
||||
initramfs with dracut, which does an integrity check of the kernel
|
||||
and its cryptography during startup.
|
||||
%endif
|
||||
|
||||
%ifnarch %ix86
|
||||
%package ima
|
||||
Summary: Dracut modules to build a dracut initramfs with IMA
|
||||
Group: System/Base
|
||||
@ -100,6 +103,7 @@ Requires: keyutils
|
||||
%description ima
|
||||
This package requires everything which is needed to build an
|
||||
initramfs (using dracut) which tries to load an IMA policy during startup.
|
||||
%endif
|
||||
|
||||
%package tools
|
||||
Summary: Tools to build a local initramfs
|
||||
@ -115,8 +119,6 @@ This package contains tools to assemble the local initrd and host configuration.
|
||||
Summary: Dracut modules usually not required for normal operation
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: evmctl
|
||||
Requires: keyutils
|
||||
|
||||
%description extra
|
||||
This package contains all modules that are part of dracut upstream
|
||||
@ -165,8 +167,10 @@ touch %{buildroot}%{_localstatedir}/log/dracut.log
|
||||
|
||||
install -D -m 0644 dracut.conf.d/suse.conf.example %{buildroot}%{dracutlibdir}/dracut.conf.d/01-dist.conf
|
||||
install -m 0644 suse/99-debug.conf %{buildroot}%{_sysconfdir}/dracut.conf.d/99-debug.conf
|
||||
%ifnarch %ix86
|
||||
install -m 0644 dracut.conf.d/fips.conf.example %{buildroot}%{_sysconfdir}/dracut.conf.d/40-fips.conf
|
||||
install -m 0644 dracut.conf.d/ima.conf.example %{buildroot}%{_sysconfdir}/dracut.conf.d/40-ima.conf
|
||||
%endif
|
||||
# bsc#915218
|
||||
%ifarch s390 s390x
|
||||
install -m 0644 suse/s390x_persistent_policy.conf %{buildroot}%{_sysconfdir}/dracut.conf.d/10-persistent_policy.conf
|
||||
@ -206,41 +210,57 @@ if [ -L /var/run ] && [ -f /etc/dracut.conf.d/05-convertfs.conf ]; then
|
||||
fi
|
||||
%{?regenerate_initrd_post}
|
||||
|
||||
%ifnarch %ix86
|
||||
%post fips
|
||||
%{?regenerate_initrd_post}
|
||||
%endif
|
||||
|
||||
%ifnarch %ix86
|
||||
%post ima
|
||||
%{?regenerate_initrd_post}
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%{?regenerate_initrd_post}
|
||||
|
||||
%ifnarch %ix86
|
||||
%postun fips
|
||||
%{?regenerate_initrd_post}
|
||||
%endif
|
||||
|
||||
%ifnarch %ix86
|
||||
%postun ima
|
||||
%{?regenerate_initrd_post}
|
||||
%endif
|
||||
|
||||
%posttrans
|
||||
%{?regenerate_initrd_posttrans}
|
||||
|
||||
%ifnarch %ix86
|
||||
%posttrans fips
|
||||
%{?regenerate_initrd_posttrans}
|
||||
%endif
|
||||
|
||||
%ifnarch %ix86
|
||||
%posttrans ima
|
||||
%{?regenerate_initrd_posttrans}
|
||||
%endif
|
||||
|
||||
%ifnarch %ix86
|
||||
%files fips
|
||||
%license COPYING
|
||||
%config %{_sysconfdir}/dracut.conf.d/40-fips.conf
|
||||
%{dracutlibdir}/modules.d/01fips
|
||||
%endif
|
||||
|
||||
%ifnarch %ix86
|
||||
%files ima
|
||||
%license COPYING
|
||||
%config %{_sysconfdir}/dracut.conf.d/40-ima.conf
|
||||
%{dracutlibdir}/modules.d/96securityfs
|
||||
%{dracutlibdir}/modules.d/97masterkey
|
||||
%{dracutlibdir}/modules.d/98integrity
|
||||
%endif
|
||||
|
||||
%files tools
|
||||
%{_bindir}/dracut-catimages
|
||||
@ -327,6 +347,9 @@ fi
|
||||
%ifnarch s390 s390x
|
||||
%{dracutlibdir}/modules.d/00warpclock
|
||||
%endif
|
||||
%ifarch %ix86
|
||||
%exclude %{dracutlibdir}/modules.d/01fips
|
||||
%endif
|
||||
%{dracutlibdir}/modules.d/01systemd-ac-power
|
||||
%{dracutlibdir}/modules.d/01systemd-ask-password
|
||||
%{dracutlibdir}/modules.d/01systemd-coredump
|
||||
@ -436,6 +459,11 @@ fi
|
||||
%{dracutlibdir}/modules.d/95zfcp_rules
|
||||
%endif
|
||||
%{dracutlibdir}/modules.d/97biosdevname
|
||||
%ifarch %ix86
|
||||
%exclude %{dracutlibdir}/modules.d/96securityfs
|
||||
%exclude %{dracutlibdir}/modules.d/97masterkey
|
||||
%exclude %{dracutlibdir}/modules.d/98integrity
|
||||
%endif
|
||||
%{dracutlibdir}/modules.d/98dracut-systemd
|
||||
%{dracutlibdir}/modules.d/98ecryptfs
|
||||
%{dracutlibdir}/modules.d/98pollcdrom
|
||||
|
Loading…
Reference in New Issue
Block a user