]> git.ipfire.org Git - thirdparty/dracut-ng.git/log
thirdparty/dracut-ng.git
10 months agochore: inst_rules_wildcard is no longer used
Jo Zzsi [Mon, 21 Oct 2024 12:52:51 +0000 (08:52 -0400)] 
chore: inst_rules_wildcard is no longer used

10 months agoci: limit when Publish to GitHub Pages needs to run
Jo Zzsi [Mon, 21 Oct 2024 12:39:28 +0000 (08:39 -0400)] 
ci: limit when Publish to GitHub Pages  needs to run

Do not run the action if all changes are below the following directories:
 - 'modules.d/**'
 - 'test/**'
 - 'src/**'

10 months agoci: add latest distribution images
Jo Zzsi [Mon, 21 Oct 2024 03:03:03 +0000 (23:03 -0400)] 
ci: add latest distribution images

Build the following containers and add them as manual testing options.
 - fedora:rawhide
 - debian:sid
 - ubuntu:rolling

10 months agofix: set initrd-release in the base module
Jo Zzsi [Mon, 21 Oct 2024 11:55:40 +0000 (07:55 -0400)] 
fix: set initrd-release in the base module

This resolves a regression introduced by 5bf724fa217ccd6011be4341d30eca05427b3415.

10 months agoci: remove gawk dependency from alpine container
Jo Zzsi [Sun, 20 Oct 2024 14:01:40 +0000 (10:01 -0400)] 
ci: remove gawk dependency from alpine container

This change switches awk to the busybox implementation.

10 months agoci: only run other jobs after basic tests passed
Jo Zzsi [Sun, 20 Oct 2024 00:37:03 +0000 (20:37 -0400)] 
ci: only run other jobs after basic tests passed

10 months agoci: re-enable one workaround to handle enable-split-usr
Jo Zzsi [Sun, 20 Oct 2024 02:02:12 +0000 (22:02 -0400)] 
ci: re-enable one workaround to handle enable-split-usr

See https://gitlab.alpinelinux.org/alpine/aports/-/issues/14610

10 months agoci: install plymouth theme into alpine container
Jo Zzsi [Sun, 20 Oct 2024 00:18:48 +0000 (20:18 -0400)] 
ci: install plymouth theme into alpine container

This PR resolves the following error

dracut[I]: *** Including module: plymouth ***
grep: /usr/share/plymouth/themes/text/text.plymouth: No such file or directory
grep: /usr/share/plymouth/themes/text/text.plymouth: No such file or directory
grep: /usr/share/plymouth/themes/text/text.plymouth: No such file or directory
grep: /usr/share/plymouth/themes/text/text.plymouth: No such file or directory
grep: /usr/share/plymouth/themes/text/text.plymouth: No such file or directory
The default plymouth plugin () doesn't exist

10 months agoci: remove remaining workarounds from the alpine container
Jo Zzsi [Sat, 19 Oct 2024 23:42:03 +0000 (19:42 -0400)] 
ci: remove remaining workarounds from the alpine container

Reorganize VMLINUZ detection to make the test pass again
on alpine after the container change.

10 months agochore(systemd): move steps into more specific dracut modules
Jo Zzsi [Sat, 14 Sep 2024 01:39:14 +0000 (21:39 -0400)] 
chore(systemd): move steps into more specific dracut modules

10 months agoci: improve VMLINUZ and KVERSION detection
Jo Zzsi [Fri, 18 Oct 2024 12:19:12 +0000 (08:19 -0400)] 
ci: improve VMLINUZ and KVERSION detection

10 months agofeat(fips): include openssl's fips.so and openssl.cnf
Pavel Valena [Wed, 16 Aug 2023 12:02:51 +0000 (14:02 +0200)] 
feat(fips): include openssl's fips.so and openssl.cnf

10 months agofix: remove extra bracket
Jochen Sprickerhof [Fri, 18 Oct 2024 17:33:56 +0000 (19:33 +0200)] 
fix: remove extra bracket

Thanks: keentux

10 months agoimprovement: allow other awk implementations
Jochen Sprickerhof [Thu, 17 Oct 2024 13:39:12 +0000 (15:39 +0200)] 
improvement: allow other awk implementations

10 months agodocs: move a section from the README to the generated docs
Jo Zzsi [Fri, 18 Oct 2024 10:43:11 +0000 (06:43 -0400)] 
docs: move a section from the README to the generated docs

10 months agotest: call lvm lvcreate with --yes
Jo Zzsi [Fri, 18 Oct 2024 11:29:34 +0000 (07:29 -0400)] 
test: call lvm lvcreate with --yes

Avoid interactivity in CI. This change should prevent the following
prompt waiting for interactions

WARNING: ext4 signature detected on /dev/dracut/root at offset 1080. Wipe it? [y/n]:

10 months agochore: fix type in the labeler
Jo Zzsi [Fri, 18 Oct 2024 11:03:56 +0000 (07:03 -0400)] 
chore: fix type in the labeler

10 months agochore: add recently introduced dracut modules
Jo Zzsi [Fri, 18 Oct 2024 10:29:54 +0000 (06:29 -0400)] 
chore: add recently introduced dracut modules

- squash-erofs
- squash-lib
- squash-squashfs
- hwdb
- fips-crypto-policies

10 months agodocs: split guide.adoc into separate documents
Jo Zzsi [Fri, 18 Oct 2024 03:13:13 +0000 (23:13 -0400)] 
docs: split guide.adoc into separate documents

10 months agochore: fix docs GitHub label rule
Jo Zzsi [Fri, 18 Oct 2024 03:36:59 +0000 (23:36 -0400)] 
chore: fix docs GitHub label rule

10 months agochore: remove dracut modules that are no longer supported
Jo Zzsi [Fri, 18 Oct 2024 01:15:21 +0000 (21:15 -0400)] 
chore: remove dracut modules that are no longer supported

10 months agodocs: import modules guide from wiki
Ian Wienand [Fri, 18 Oct 2024 00:35:16 +0000 (11:35 +1100)] 
docs: import modules guide from wiki

This is a import of the modules guide that is in the wiki to the generated
documentation site.  Other than a couple of edits for layout this doesn't have
any content changes.

10 months agodocs: import developer info from wiki
Ian Wienand [Fri, 18 Oct 2024 00:25:56 +0000 (11:25 +1100)] 
docs: import developer info from wiki

This imports most of the unique developer information that is in the wiki into
the generated documentation site.  Mostly this is around compatability and
reviews.  I've not really reviewed the content, but just tried to find it a
logical home.

10 months agodocs: add origin story
Ian Wienand [Thu, 17 Oct 2024 23:55:05 +0000 (10:55 +1100)] 
docs: add origin story

Add the interesting origin story and some older presentation links to the main
documentation site

10 months agoci: upgrade GitHub actions to newer versions
Jo Zzsi [Thu, 17 Oct 2024 23:43:28 +0000 (19:43 -0400)] 
ci: upgrade GitHub actions to newer versions

10 months agoci: fix linting GitHub Action
Jo Zzsi [Fri, 18 Oct 2024 00:08:44 +0000 (20:08 -0400)] 
ci: fix linting GitHub Action

10 months agoci: only run linting when it is useful
Jo Zzsi [Thu, 17 Oct 2024 23:35:25 +0000 (19:35 -0400)] 
ci: only run linting when it is useful

10 months agodocs: developer/bash formatting updates
Ian Wienand [Thu, 17 Oct 2024 23:11:20 +0000 (10:11 +1100)] 
docs: developer/bash formatting updates

Small formatting updates.  Use "bash" as source type so it syntax highlights.

10 months agodocs: formatting for hacking package
Ian Wienand [Thu, 17 Oct 2024 23:02:42 +0000 (10:02 +1100)] 
docs: formatting for hacking package

This is a formatting update for the hacking package.  The headers are nested
correctly, we've used some defintion lists where appropriate and fixed up a few
translation errors from the md->asciidoc conversion.

10 months agodocs: fix list in contributing
Ian Wienand [Thu, 17 Oct 2024 22:11:06 +0000 (09:11 +1100)] 
docs: fix list in contributing

Make this a list to separate the items

10 months agodocs: fix links to doc site
Ian Wienand [Thu, 17 Oct 2024 22:06:25 +0000 (09:06 +1100)] 
docs: fix links to doc site

While the main page redirects, it isn't really possible to do a .htaccess
rewrite rule to have the whole site at the root of the github pages.  Make sure
the README.md links are correct.

10 months agochore: cleanup .gitignore
Ian Wienand [Thu, 17 Oct 2024 21:54:30 +0000 (08:54 +1100)] 
chore: cleanup .gitignore

All the man pages are generated, so put in a global match for **/*.[0-9] and
remove individual matches.

While we're here, sort alphabetically for ongoing consistency.

10 months agochore: remove dracut.html handling from release generation
Jo Zzsi [Thu, 17 Oct 2024 12:58:28 +0000 (08:58 -0400)] 
chore: remove dracut.html handling from release generation

10 months agoperf(base): /etc/initrd-release is only for systemd
Jo Zzsi [Fri, 13 Sep 2024 18:35:22 +0000 (14:35 -0400)] 
perf(base): /etc/initrd-release is only for systemd

10 months agochore: reserve range 50-59 to out of tree dracut modules
Jo Zzsi [Sat, 12 Oct 2024 20:53:45 +0000 (16:53 -0400)] 
chore: reserve range 50-59 to out of tree dracut modules

50drm --> 45drm
50plymouth --> 45plymouth

10 months agoci: fix typo in the GitHub Action yml file
Jo Zzsi [Thu, 17 Oct 2024 11:41:12 +0000 (07:41 -0400)] 
ci: fix typo in the GitHub Action yml file

10 months agodocs: move docs to published doc site
Ian Wienand [Thu, 17 Oct 2024 10:41:33 +0000 (21:41 +1100)] 
docs: move docs to published doc site

There are a bunch of .md documentation files under docs/

I have used kramdoc to convert them to asciidoc and put them into the
documentation site as developer information under developer/.  I have not made
content changes other than to fix up references.

The only one that didn't seem worth moving was README.kernel which is removed.

To remove duplication, he top level CONTRIBUTING.md is moved into this
hierarchy as well.

In it's place I have reorganised the README.md to clearly point you at the
documentation.  I feel this is about equal -- you were probably in a
web-browser on github.com to view the formatted text anyway, so it's only a
matter of clicking to to dracut-ng.github.io instead of the source viewer.
I've added some things I think are important into the README.md, like an
explicit section on reporting security issues.

Finally I reorganised the navigation of the manual pages, so they are under a
combined section and expand out into user, developer and systemd groups.

10 months agodocs: do full fetch for github publishing
Ian Wienand [Wed, 16 Oct 2024 23:43:07 +0000 (10:43 +1100)] 
docs: do full fetch for github publishing

The DRACUT_MAIN_VERSION works by looking for tags; make sure the publish CI job
checks out the whole repo.

10 months agodocs: do not run integration tests for docs only changes
Ian Wienand [Thu, 17 Oct 2024 09:57:36 +0000 (20:57 +1100)] 
docs: do not run integration tests for docs only changes

In the integration workflow, add paths-ignore so that if any changes only match
these filters, the integration tests will be skipped.

10 months agodocs: small cleanup of main landing page
Ian Wienand [Thu, 17 Oct 2024 00:09:48 +0000 (11:09 +1100)] 
docs: small cleanup of main landing page

This is a few small cleanups.  The message about the license first up makes it
seem like dracut itself is under creative commons license, which isn't true.
I've moved this down to the bottom, and added a note that dracut is gpl2 but
some parts of the docs are CC.

I've added a shorter introduction and de-dented things.  I've also linked in
the development site along with the other man pages.

10 months agofix(dmsquash-live-root.sh): support images with non-existing /proc
Patrick Schleizer [Wed, 9 Oct 2024 05:03:40 +0000 (01:03 -0400)] 
fix(dmsquash-live-root.sh): support images with non-existing /proc

Change folder existence test from /run/initramfs/squashfs/proc to /run/initramfs/squashfs/usr.

fixes https://github.com/dracut-ng/dracut-ng/issues/244

10 months agofeat(base): create /proc if it does not exists
Jo Zzsi [Wed, 16 Oct 2024 11:45:39 +0000 (07:45 -0400)] 
feat(base): create /proc if it does not exists

Change tests to test for this scenario.

10 months agochore: teach labeler to ignore two-digit numeric sort code
Jo Zzsi [Sat, 12 Oct 2024 21:17:37 +0000 (17:17 -0400)] 
chore: teach labeler to ignore two-digit numeric sort code

10 months agofeat: create a documentation site
Ian Wienand [Tue, 2 Jul 2024 23:16:38 +0000 (09:16 +1000)] 
feat: create a documentation site

This is a proposal to create a documentation site with Antora
(https://antora.org/) which works with the existing asciidoc files.

As motivation; there is a somewhat difficult to navigate (due to length and no
indexing) single .html file made already, and a wiki page that is kept
separately and links back to several docs, which can be viewed via github's
rendering.  I'm of the feeling that incorporating docs into the main workflow
leads to a better outcome, especially taking advantage of pipelines to publish
on commit ensuring things are kept up-to-date.

There isn't much too this other than the framework stuff and some minor syntax
fixes to some of the files.  "make doc_site" outputs the site in build/.

man/dracut.asc becomes the index page; everything else remains in place where
it was.  After discussion we decided to remove the dracut.html file and
generation to avoid confusion over what is current.

I've added in custom css and lightly styled the output site to keep the vibe of
the older html page.

In terms of developer workflow, I know little about nodejs and have not found
it onerous to figure out; "nodejs" installed by your distro and "npx antora"
"just works"; it's very self-contained.

I've included the sample github workflow to publish it to github pages on
commit taken from the Antora docs -- it may need tweaking by project admins.

The output is basic but functional.  The nice thing about a framework like this
is the almost limitless options for improvement :)

10 months agoci: combine running advanced networking tests and disable them
Jo Zzsi [Tue, 15 Oct 2024 14:16:53 +0000 (10:16 -0400)] 
ci: combine running advanced networking tests and disable them

These test are flaky and these dracut modules are not under
active development.

10 months agotest: only set VMLINUZ if it is not already set
Jo Zzsi [Tue, 15 Oct 2024 01:10:10 +0000 (21:10 -0400)] 
test: only set VMLINUZ if it is not already set

Make it consistent with KVERSION and only set it if
it is not already set.

10 months agotest: reorganize tests
Jo Zzsi [Fri, 11 Oct 2024 13:13:41 +0000 (09:13 -0400)] 
test: reorganize tests

10-19: core modules
20-29: multiple boot drives
30-39: live boot
40-49: systemd
60-69: basic networking (nfs)
70-79: advanced networking (iscsi, nbd)
80-89: dracut binaries

old -> new
----------
01 -> 10
02 -> 40
03 -> 11
04 -> 41
05 -> 42
10 -> 20
11 -> 21
12 -> 22
13 -> 25
14 -> 23
15 -> 24
16 -> 30
17 -> 25
18 -> 12
20 -> 60
30 -> 70
35 -> 71
40 -> 72
50 -> 61
60 -> 62
62 -> 81
63 -> 82
98 -> 80

10 months agoci: remove sudo from all test containers
Jo Zzsi [Sun, 13 Oct 2024 21:26:56 +0000 (17:26 -0400)] 
ci: remove sudo from all test containers

10 months agodocs: update NEWS.md and AUTHORS for release 105 105
dracutng[bot] [Sun, 13 Oct 2024 00:23:58 +0000 (00:23 +0000)] 
docs: update NEWS.md and AUTHORS for release 105

10 months agofix(systemd-cryptsetup): change the ordering for consistency
Jo Zzsi [Sat, 12 Oct 2024 14:38:41 +0000 (10:38 -0400)] 
fix(systemd-cryptsetup): change the ordering for consistency

All other systemd modules are numbered as 01.

10 months agofix(systemd): remove typo from the dracut module name
Jo Zzsi [Sat, 12 Oct 2024 13:52:46 +0000 (09:52 -0400)] 
fix(systemd): remove typo from the dracut module name

Follow-up 5551746088633116a28f3ded9d7003f378b6cd17.

10 months agofix(udev-rules): move relevant rules from systemd
Jo Zzsi [Sat, 12 Oct 2024 03:11:25 +0000 (23:11 -0400)] 
fix(udev-rules): move relevant rules from systemd

Also install elogind into Alpine and Void containers.

10 months agofix(dmsquash-live): checkisomd5 is installed into /usr/bin
Jo Zzsi [Fri, 11 Oct 2024 00:18:58 +0000 (20:18 -0400)] 
fix(dmsquash-live): checkisomd5 is installed into /usr/bin

11 months agofix(man): use US English spelling for initialization
Benjamin Drung [Wed, 9 Oct 2024 12:09:35 +0000 (14:09 +0200)] 
fix(man): use US English spelling for initialization

11 months agofix(man): correct spelling of initramfs
Benjamin Drung [Wed, 9 Oct 2024 11:57:07 +0000 (13:57 +0200)] 
fix(man): correct spelling of initramfs

11 months agodocs: update NEWS.md and AUTHORS for release 104 104
dracutng[bot] [Tue, 8 Oct 2024 13:10:06 +0000 (13:10 +0000)] 
docs: update NEWS.md and AUTHORS for release 104

11 months agofix: install test infrastructure
Jo Zzsi [Sat, 5 Oct 2024 11:49:42 +0000 (07:49 -0400)] 
fix: install test infrastructure

11 months agofix(network): call both check_module and module_check
Jo Zzsi [Fri, 20 Sep 2024 03:10:48 +0000 (23:10 -0400)] 
fix(network): call both check_module and module_check

Add back testing the module with check_module as well as module_check.

Without this PR, on some Linux distributions (e.g. Void) adding `network` meta module
no longer works as it tries and fails to install the preferred netowrking backend
(network-manager).

11 months agochore: .asc --> .adoc in preparation to improve manual generation
Jo Zzsi [Sat, 28 Sep 2024 22:09:44 +0000 (18:09 -0400)] 
chore: .asc --> .adoc in preparation to improve manual generation

Antora seems to require .adoc.

https://asciidoctor.org/docs/asciidoc-recommended-practices/ recommends
.adoc extension.

11 months agoci: remove unused interactive debugging tools
Jo Zzsi [Fri, 20 Sep 2024 01:56:03 +0000 (21:56 -0400)] 
ci: remove unused interactive debugging tools

Remove vi(m), strace, tcpdump, wget, less.

11 months agoci: add swtpm for TPM emulation
Jo Zzsi [Fri, 20 Sep 2024 01:26:38 +0000 (21:26 -0400)] 
ci: add swtpm for TPM emulation

11 months agofix(hwdb): only install /etc/udev/udev.hwdb in hostonly mode
Jo Zzsi [Thu, 19 Sep 2024 14:38:40 +0000 (10:38 -0400)] 
fix(hwdb): only install /etc/udev/udev.hwdb in hostonly mode

"$udevconfdir"/hwdb.bin already grabs /etc/udev/udev.hwdb
in hostonly mode.

11 months agochore: create a dedicated directory for each reference config
Jo Zzsi [Thu, 19 Sep 2024 16:55:40 +0000 (12:55 -0400)] 
chore: create a dedicated directory for each reference config

This change helps with downstream packaging as packaging will no
no longer needs to rename the file.

11 months agotest: move test scripts under test/
Jo Zzsi [Wed, 18 Sep 2024 01:31:55 +0000 (21:31 -0400)] 
test: move test scripts under test/

11 months agotest: move dracut.conf.d conf dir for tests under $TESTDIR
Jo Zzsi [Sun, 15 Sep 2024 22:05:46 +0000 (18:05 -0400)] 
test: move dracut.conf.d conf dir for tests under $TESTDIR

This will ensure that the directory gets cleaned up after test run.

11 months agotest(UEFI): prepare for testing with more than one kernel command line
Jo Zzsi [Sun, 15 Sep 2024 18:44:14 +0000 (14:44 -0400)] 
test(UEFI): prepare for testing with more than one kernel command line

Use SMBIOS Type 11 Strings support in systemd-stub
(io.systemd.stub.kernel-cmdline-extra).

11 months agotest: move test dracut modules under the test/ directory
Jo Zzsi [Sun, 15 Sep 2024 00:49:40 +0000 (20:49 -0400)] 
test: move test dracut modules under the test/ directory

11 months agotest: remove unnecessary intermediate cleanups
Jo Zzsi [Sun, 15 Sep 2024 00:07:34 +0000 (20:07 -0400)] 
test: remove unnecessary intermediate cleanups

11 months agotest: always keep the generated initrd to help writing assertions
Jo Zzsi [Sat, 14 Sep 2024 23:39:46 +0000 (19:39 -0400)] 
test: always keep the generated initrd to help writing assertions

This should also make the tests to run faster.

11 months agotest: move more code out from tests into common test functions
Jo Zzsi [Sat, 14 Sep 2024 14:51:42 +0000 (10:51 -0400)] 
test: move more code out from tests into common test functions

11 months agotest: create a config for test test-makeroot test-root
Jo Zzsi [Thu, 12 Sep 2024 00:58:19 +0000 (20:58 -0400)] 
test: create a config for test test-makeroot test-root

11 months agotest: consolidate TEST_KERNEL_CMDLINE
Jo Zzsi [Wed, 11 Sep 2024 19:44:46 +0000 (15:44 -0400)] 
test: consolidate TEST_KERNEL_CMDLINE

11 months agotest(BASIC): move driver regression testing out to a different test
Jo Zzsi [Wed, 11 Sep 2024 17:48:03 +0000 (13:48 -0400)] 
test(BASIC): move driver regression testing out to a different test

11 months agotest: showmount is not required to run the tests
Jo Zzsi [Wed, 11 Sep 2024 15:35:54 +0000 (11:35 -0400)] 
test: showmount is not required to run the tests

11 months agotest: tcpdump is not required to run the tests
Jo Zzsi [Wed, 11 Sep 2024 15:32:04 +0000 (11:32 -0400)] 
test: tcpdump is not required to run the tests

11 months agotest(MULTINIC): ifcfg dracut module is no longer available
Jo Zzsi [Wed, 11 Sep 2024 01:34:28 +0000 (21:34 -0400)] 
test(MULTINIC): ifcfg dracut module is no longer available

11 months agotest: remove dracut-lib.sh dependency from real rootfs
Jo Zzsi [Tue, 10 Sep 2024 02:42:07 +0000 (22:42 -0400)] 
test: remove dracut-lib.sh dependency from real rootfs

11 months agotest: remove less from the required binaries for tests
Jo Zzsi [Tue, 10 Sep 2024 02:08:09 +0000 (22:08 -0400)] 
test: remove less from the required binaries for tests

11 months agoci: do not force rootfstype, let the initrd figure it out
Jo Zzsi [Tue, 10 Sep 2024 00:46:48 +0000 (20:46 -0400)] 
ci: do not force rootfstype, let the initrd figure it out

remove 'rw' from kernel command line as that is the default

11 months agoci: set rd.retry consistently by only setting it in one place
Jo Zzsi [Tue, 10 Sep 2024 00:36:23 +0000 (20:36 -0400)] 
ci: set rd.retry consistently by only setting it in one place

11 months agochore(tests): search for bash in $PATH to improve portability
Jo Zzsi [Tue, 10 Sep 2024 00:24:37 +0000 (20:24 -0400)] 
chore(tests): search for bash in $PATH to improve portability

11 months agotest(UEFI): use ukify if available
Jo Zzsi [Sun, 8 Sep 2024 14:03:14 +0000 (10:03 -0400)] 
test(UEFI): use ukify if available

Create test coverage for using dracut with ukify.

11 months agofeat(rescue): move command line arguments to 50-rescue.conf
Jo Zzsi [Fri, 13 Sep 2024 16:45:23 +0000 (12:45 -0400)] 
feat(rescue): move command line arguments to 50-rescue.conf

The benefit of this change is that even if kernel-install
is not used (e.g. direct user invocation), the correct
kernel command line options will be set for the generated
rescue image.

11 months agofix(rescue): make rescue always no-hostonly
Jo Zzsi [Wed, 21 Aug 2024 23:20:43 +0000 (19:20 -0400)] 
fix(rescue): make rescue always no-hostonly

Currently the rescue image is only set to no-hostonly if it is
generated via dracut-rescue.install. Make the rescue image
generation more predictable and consistent by setting no-hostonly
right in the rescue config.

11 months agodocs: clarify --print-cmdline
Jo Zzsi [Fri, 13 Sep 2024 13:01:08 +0000 (09:01 -0400)] 
docs: clarify --print-cmdline

11 months agoperf(systemd-initrd): do not depend on base module
Jo Zzsi [Wed, 18 Sep 2024 02:20:07 +0000 (22:20 -0400)] 
perf(systemd-initrd): do not depend on base module

Make sure /etc/initrd exist.

Test SYSTEMD-INITRD confirms no regression as this tests
now no longer includes the base module and it still passes
the boot tests with systemd (hence the perf tag).

11 months agochore(deps): bump luizm/action-sh-checker from 0.8.0 to 0.9.0
dependabot[bot] [Tue, 17 Sep 2024 20:55:13 +0000 (20:55 +0000)] 
chore(deps): bump luizm/action-sh-checker from 0.8.0 to 0.9.0

Bumps [luizm/action-sh-checker](https://github.com/luizm/action-sh-checker) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/luizm/action-sh-checker/releases)
- [Commits](https://github.com/luizm/action-sh-checker/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: luizm/action-sh-checker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
11 months agochore: remove logtree
Jo Zzsi [Sun, 25 Aug 2024 14:20:00 +0000 (10:20 -0400)] 
chore: remove logtree

logtree was introduced for testing Fedora on Travis CI.
After the transition to GitHub Action logtree is no longer used.

11 months agofix(dracut): --list-modules should imply --no-kernel as well
Jo Zzsi [Fri, 13 Sep 2024 12:50:05 +0000 (08:50 -0400)] 
fix(dracut): --list-modules should imply --no-kernel as well

This will ensure that 'dracut --list-modules' works well in a container.

11 months agotest(UEFI): add test coverage for 50-uki-virt.conf
Jo Zzsi [Fri, 13 Sep 2024 15:28:27 +0000 (11:28 -0400)] 
test(UEFI): add test coverage for 50-uki-virt.conf

11 months agofeat: config example for cloud provider uki vm
Jo Zzsi [Fri, 13 Sep 2024 12:22:42 +0000 (08:22 -0400)] 
feat: config example for cloud provider uki vm

This is an example configuration for a 'unified kernel image'.

The key benefit of a unified kernel is that its secure boot
signature covers the initrd and cmdline contents, allowing
a trustworthy measured boot process with attestation, which
is not practical with locally generated initrds/cmdlines.

The initrd in this example only needs a very small set of
block driver modules present, in order to be usable across
KVM, Hyper-V and Xen hypervisors which will cover essentially
all common public and private clouds.

11 months agofix(dracut): don't apply aggressive strip to kernel modules
Kairui Song [Fri, 13 Sep 2024 09:12:43 +0000 (17:12 +0800)] 
fix(dracut): don't apply aggressive strip to kernel modules

Unlike ordinary binaries, kernel module will be unusable if stripped
with "-p". Fix this by always use "-g" only.

So far it didn't cause many issues since most kernels have their
modules signed or compressed so this is skipped.

Signed-off-by: Kairui Song <kasong@tencent.com>
11 months agodocs: document more creation functions for dracut modules
Antonio Alvarez Feijoo [Thu, 12 Sep 2024 08:26:18 +0000 (10:26 +0200)] 
docs: document more creation functions for dracut modules

11 months agofix: typo in variable name
Jo Zzsi [Wed, 11 Sep 2024 20:57:13 +0000 (16:57 -0400)] 
fix: typo in variable name

11 months agorefactor(dracut-install): simplify open() call in cp()
Marcos Mello [Wed, 11 Sep 2024 01:38:06 +0000 (22:38 -0300)] 
refactor(dracut-install): simplify open() call in cp()

Flipping `S_IFMT` gives the file mode bits.

11 months agotest: continue to force network-legacy for server when needed
Jo Zzsi [Wed, 11 Sep 2024 13:25:37 +0000 (09:25 -0400)] 
test: continue to force network-legacy for server when needed

This change allows us to address the remaining test issues one by one.

11 months agofeat(dracut.sh): add --add-confdir option
Lichen Liu [Wed, 7 Aug 2024 02:13:37 +0000 (10:13 +0800)] 
feat(dracut.sh): add --add-confdir option

When generating kdump's initrd, we want to keep [omit_]dracutmodules
empty and let kdump to handle the modules. And we don't want to
affect the first kernel's initrd, so we cannot place our conf file
to /etc/dracut.conf.d or /usr/lib/dracut/dracut.conf.d.

This patch adds a new option to allow user to add an extra configuration
directory to use *.conf files from. If the dir not exists, will look for
confdir's subdir.

After that, kdump can use "--add-confdir kdump" if
/usr/lib/dracut/dracut.conf.d/kdump exists, to apply its own dracut conf.

See also:
https://github.com/rhkdump/kdump-utils/issues/11
https://github.com/rhkdump/kdump-utils/pull/31

Suggested-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Lichen Liu <lichliu@redhat.com>
11 months agoperf(systemd-initrd): initrd.target is already the default
Jo Zzsi [Mon, 9 Sep 2024 13:32:14 +0000 (09:32 -0400)] 
perf(systemd-initrd): initrd.target is already the default

Avoid creating an extra symlink under /etc inside the
generated initrd.

initrd.target is already the default.

11 months agofeat(fips): add support for UKIs
Vitaly Kuznetsov [Fri, 9 Aug 2024 10:49:05 +0000 (12:49 +0200)] 
feat(fips): add support for UKIs

Kernel integrity check in FIPS module is incompatible with UKIs as neither
/boot/vmlinuz-`uname-r` nor /boot/.vmlinuz-`uname-r`.hmac are present. UKI
is placed to $ESP\EFI\Linux\<install-tag>-<uname-r>.efi and if a .hmac file
is present next to it, it is possible to do similar check.

Note, UKIs have a 'one size fits all' command line and 'boot=' is not expected
to be set. Luckily, if the UKI is systemd-stub based then we can expect
'LoaderDevicePartUUID' variable containing PARTUUID of the ESP to be set. Mount
it to /boot using the existing logic.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
11 months agofix(nvmf): install (only) required nvmf modules
Martin Wilck [Mon, 9 Sep 2024 07:43:01 +0000 (09:43 +0200)] 
fix(nvmf): install (only) required nvmf modules

nvme_rdma was not installed, even if it was required, whereas
nvme_tcp was installed in non-TCP setups. nvme_fabrics will be
pulled in automatically by any transport module and doesn't
need to be installed explicitly.

Fix it.