]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
4 years agofix(dracut): prevent symbolic links containing `//`
Harald Hoyer [Wed, 12 May 2021 13:09:35 +0000 (15:09 +0200)] 
fix(dracut): prevent symbolic links containing `//`

Results in `usr/lib64 -> ..//usr/lib` for Arch Linux otherwise.

4 years agofix(network-manager): cope with distributions not using `libexec`
Harald Hoyer [Wed, 12 May 2021 13:10:30 +0000 (15:10 +0200)] 
fix(network-manager): cope with distributions not using `libexec`

4 years agofix: cope with distributions with `/usr/etc` files
Harald Hoyer [Wed, 12 May 2021 13:11:55 +0000 (15:11 +0200)] 
fix: cope with distributions with `/usr/etc` files

4 years agofix(nbd): assume nbd version >= 3.8
Harald Hoyer [Wed, 12 May 2021 13:12:54 +0000 (15:12 +0200)] 
fix(nbd): assume nbd version >= 3.8

This reduces the quirks.

4 years agofix(iscsi): replace sed call with bash internals
Harald Hoyer [Wed, 12 May 2021 13:13:52 +0000 (15:13 +0200)] 
fix(iscsi): replace sed call with bash internals

This removes a fork/exec and additionally gives more information in debug logs.

4 years agofix: make testsuite pass on OpenSuse and Arch
Harald Hoyer [Fri, 7 May 2021 07:58:28 +0000 (09:58 +0200)] 
fix: make testsuite pass on OpenSuse and Arch

This removes some hard assumptions about the file system layout.

It also hardens the tests with network interface renaming rules and
guards.

4 years agofix(crypt-gpg): cope with different scdaemon location
Harald Hoyer [Wed, 12 May 2021 14:48:52 +0000 (16:48 +0200)] 
fix(crypt-gpg): cope with different scdaemon location

On Arch things are different for some reason.

4 years agofix(url-lib): fix passing args
Mikhail Novosyolov [Wed, 12 May 2021 15:16:01 +0000 (18:16 +0300)] 
fix(url-lib): fix passing args

Fixes: 8e84fa726 ("fix(url-lib): shellcheck for modules.d/45url-lib")
Behaviour introduced by that commit made the following to be run:
curl "--globoff --location --retry 3 --fail --show-error" http://192.168.1.173:8000/test.ks
instead of:
curl --globoff --location --retry 3 --fail --show-error http://192.168.1.173:8000/test.ks

This broke downloading kickstart file in anaconda-dracut.

4 years agofix: adding crc32c for ext3
Jóhann B. Guðmundsson [Wed, 12 May 2021 18:49:28 +0000 (18:49 +0000)] 
fix: adding crc32c for ext3

Noticed that ext3 is still being used in the wild so let's add it to the crc32c list
so downstream does not have to carry a patch for it.

4 years agoci: ensure pigz is installed in the CI containers
Harald Hoyer [Wed, 12 May 2021 13:46:39 +0000 (15:46 +0200)] 
ci: ensure pigz is installed in the CI containers

pigz speeds up things considerably. Although pigz is already installed
by default, explicitely adding it makes sure, it will not disappear
unnoticed.

4 years agoci: add cpio and pigz to arch container
Harald Hoyer [Wed, 12 May 2021 13:24:48 +0000 (15:24 +0200)] 
ci: add cpio and pigz to arch container

4 years agoci: really, really cleanup the arch container
Harald Hoyer [Wed, 12 May 2021 12:43:01 +0000 (14:43 +0200)] 
ci: really, really cleanup the arch container

4 years agoci: cleanup the arch container
Harald Hoyer [Wed, 12 May 2021 12:33:03 +0000 (14:33 +0200)] 
ci: cleanup the arch container

4 years agoci: don't use `rpm` to determine the kernel version
Harald Hoyer [Wed, 12 May 2021 12:19:58 +0000 (14:19 +0200)] 
ci: don't use `rpm` to determine the kernel version

for `/etc/profile.d/dracut-test.sh`

4 years agoci: build container images and push to ghcr.io
Harald Hoyer [Wed, 12 May 2021 08:09:29 +0000 (10:09 +0200)] 
ci: build container images and push to ghcr.io

4 years agofix: deprecate gummiboot
Jóhann B. Guðmundsson [Mon, 10 May 2021 16:45:40 +0000 (16:45 +0000)] 
fix: deprecate gummiboot

Gummiboot was merged into systemd and official became systemd-boot in 2015 ( 6 years ago )
and no longer was being maintained as Gummiboot from that point.

It's safe to say distribution should have migrated to sd-boot by now so let's deprecate
it.

4 years agofix(install): handle $LIB in ldd output parsing
Jaroslav Jindrak [Fri, 7 May 2021 13:11:55 +0000 (15:11 +0200)] 
fix(install): handle $LIB in ldd output parsing

The ldd output can contain the variable $LIB, which is a documented feature of
ldd. In a previous commit [0], dracut-install received support for this
variable, but that was later reverted [1] due to issues [2][3] on Gentoo ARM64.

The part before '=>' does not necessarily refer to an existing file (e.g. due
to the usage of $LIB) and thus [1] could be seen as a regression to anyone
that uses this ldd feature. This PR combines both cases together and whenever
it find a '$' character (i.e. a variable) on the left side of the '=>' symbol,
it uses the right hand path (and thus uses evaluation done by ldd), otherwise
falls back to the behavior set by [1].

Reproducer that was presented to me:

$ grep "ibz.so" /etc/ld.so.preload || cat << EOF >> /etc/ld.so.preload
/\$LIB/libz.so.1.2.11
EOF
$ mkdir -p /var/tmp/dracut.xitk6p/initramfs
$ strace /usr/lib/dracut/dracut-install -D /var/tmp/dracut.xitk6p/initramfs -l /bin/bash 2>&1|grep ibz
$ rm -rf /var/tmp/dracut.xitk6p/

[0] 45404a2
[1] 6d886bb
[2] #471
[3] https://bugs.gentoo.org/667752

4 years agofeat(systemd-journald): introducing the systemd-journald module
Jóhann B. Guðmundsson [Thu, 6 May 2021 13:54:04 +0000 (13:54 +0000)] 
feat(systemd-journald): introducing the systemd-journald module

4 years agochore(tree): move html files to the dosc directory
Jóhann B. Guðmundsson [Tue, 4 May 2021 14:14:18 +0000 (14:14 +0000)] 
chore(tree): move html files to the dosc directory

Moving the html files into the docs directory.

4 years agochore(install): move install to src directory
Jóhann B. Guðmundsson [Thu, 6 May 2021 13:29:19 +0000 (13:29 +0000)] 
chore(install): move install to src directory

Moving install to the src directory

4 years agofeat(systemd-rfkill): introducing the systemd-rfkill module
Jóhann B. Guðmundsson [Wed, 5 May 2021 19:00:38 +0000 (19:00 +0000)] 
feat(systemd-rfkill): introducing the systemd-rfkill module

Introducing the systemd-rfkill module

4 years agofeat(systemd-ldconfig): introducing the systemd-ldconfig module
Jóhann B. Guðmundsson [Wed, 5 May 2021 16:06:36 +0000 (16:06 +0000)] 
feat(systemd-ldconfig): introducing the systemd-ldconfig module

Introducing the systemd-ldconfig module

4 years agofix: add a missing tmpfilesconfdir global variable
Jóhann B. Guðmundsson [Wed, 5 May 2021 09:41:02 +0000 (09:41 +0000)] 
fix: add a missing tmpfilesconfdir global variable

Adding a missing tmpfilesconfdir global variable

4 years agofeat(systemd-tmpfiles): introducing the systemd-tmpfiles module
Jóhann B. Guðmundsson [Wed, 5 May 2021 09:26:26 +0000 (09:26 +0000)] 
feat(systemd-tmpfiles): introducing the systemd-tmpfiles module

Introducing the systemd-tmpfiles module

4 years agorefactor(systemd-networkd): cosmetic move to 01
Jóhann B. Guðmundsson [Thu, 6 May 2021 11:49:29 +0000 (11:49 +0000)] 
refactor(systemd-networkd): cosmetic move to 01

Moving systemd-networkd to 01 systemd namespace to keep everything in
order.

4 years agofix(base): suppress calls to getarg in build phase
Harald Hoyer [Thu, 6 May 2021 07:10:54 +0000 (09:10 +0200)] 
fix(base): suppress calls to getarg in build phase

Setting `DEBUG_MEM_LEVEL` in the build phase prevents
`setmemdebug()` to call `getargnum`, which would use `dracut-getarg`
in the initrd runtime phase.

No more:

```
modules.d/99base/dracut-lib.sh: line 217: dracut-getarg: command not found
```

4 years agofix(dracut-functions): implement a cache for get_maj_min
Renaud Métrich [Wed, 5 May 2021 13:46:08 +0000 (15:46 +0200)] 
fix(dracut-functions): implement a cache for get_maj_min

On systems with a large number of devices, usually multipath devices,
dracut can spend a lot of time stat'ing the devices to collect the
major/minor numbers, leading to huge slowness rebuilding the initramfs
when stat'ing devices is slow (seen with oracleasm file systems in
particular).
This commit implements a basic cache stored in a file under
DRACUT_TMPDIR storing the major:minor corresponding to the specified
device.

Reproducer: create N loopback devices used as a LVM extension to volume
group hosting the root file system

  # LVMVG="rhel"
  # NDEVICES=200
  # mkdir devices; for i in $(seq 1 $NDEVICES); do
    truncate -s 10m devices/$i; losetup loop$i devices/$i
  done
  # vgextend $LVMVG $(/bin/ls -1 /dev/loop[0-9]*)

With standard code (tested with RHEL8.3 dracut):

  # dracut -f --debug /tmp/initramfs.img $(uname -r) >/tmp/debug 2>&1
  # grep -c "stat -L -c" /tmp/debug
  2440

With this code:

  # dracut -f --debug /tmp/initramfs.img $(uname -r) >/tmp/debug_optim 2>&1
  # grep -c "stat -L -c" /tmp/debug_optim
  205

Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
4 years agofix(fips): add dh and ecdh ciphers
David Tardon [Wed, 5 May 2021 14:05:17 +0000 (16:05 +0200)] 
fix(fips): add dh and ecdh ciphers

4 years agofix: shellcheck 0.7.2
Harald Hoyer [Tue, 4 May 2021 14:36:22 +0000 (16:36 +0200)] 
fix: shellcheck 0.7.2

github action `luizm/action-sh-checker@v0.2.2` uses `shellcheck-0.7.2`,
which detects more non-posix shell code and complains accordingly.

4 years agodocs: install `which` in Arch container
Harald Hoyer [Tue, 4 May 2021 14:57:35 +0000 (16:57 +0200)] 
docs: install `which` in Arch container

4 years agofeat: support ZSTD-compressed kernel modules
Mikhail Novosyolov [Tue, 4 May 2021 09:28:46 +0000 (12:28 +0300)] 
feat: support ZSTD-compressed kernel modules

Modern Linux kernels support zstd-compressed modules, which was added
by commit 73f3d1b48f50 ("lib: Add zstd modules").

Commit c3d7ef377eb ("kbuild: add support for zstd compressed modules")
added support of compressing modules with zstd to kernel Makefiles.

libkmod >= 28 built with libzstd is also required.

4 years agodocs: document how to run the test suite in podman on Fedora and Arch
Harald Hoyer [Tue, 4 May 2021 12:44:39 +0000 (14:44 +0200)] 
docs: document how to run the test suite in podman on Fedora and Arch

4 years agostyle: make indent and let shfmt fail again
Harald Hoyer [Tue, 4 May 2021 11:02:09 +0000 (13:02 +0200)] 
style: make indent and let shfmt fail again

The bump of removed the `-d` option for `shfmt`. Readd it until upstream
is fixed.

See also:
https://github.com/luizm/action-sh-checker/issues/44

4 years agochore(tree): move package build files in their own directory
Jóhann B. Guðmundsson [Tue, 4 May 2021 12:22:52 +0000 (12:22 +0000)] 
chore(tree): move package build files in their own directory

Creating pkgbuild directory and move relevant files there.

4 years agotest(NFS): let it run in an Arch container
Harald Hoyer [Tue, 4 May 2021 10:58:34 +0000 (12:58 +0200)] 
test(NFS): let it run in an Arch container

`dhclient` on Arch does not understand the `--timeout` parameter.

`/etc/virc` does not need to be installed in tests. This is a debugging
leftover.

4 years agofix: include `modules.builtin.alias` in the initramfs
Harald Hoyer [Tue, 4 May 2021 10:53:42 +0000 (12:53 +0200)] 
fix: include `modules.builtin.alias` in the initramfs

Let's also resolve the compiled in aliases to builtin modules.

4 years agotest(FULL SYSTEMD): try pacman rather than rpm on Arch
Harald Hoyer [Tue, 4 May 2021 09:49:34 +0000 (11:49 +0200)] 
test(FULL SYSTEMD): try pacman rather than rpm on Arch

If there is no `rpm`, try `pacman` to get a full list of systemd files
to install into the real test root.

4 years agofix: install all depmod relevant configuration files
Harald Hoyer [Tue, 4 May 2021 09:42:46 +0000 (11:42 +0200)] 
fix: install all depmod relevant configuration files

This is important for running `depmod` in the initrd.

4 years agofix: add `modules.builtin.modinfo` to the initramfs
Harald Hoyer [Tue, 4 May 2021 09:17:55 +0000 (11:17 +0200)] 
fix: add `modules.builtin.modinfo` to the initramfs

This solves all issues, where builtin kernel modules are not recognized
as such.

Fixes: https://github.com/dracutdevs/dracut/issues/1146
Fixes: https://github.com/dracutdevs/dracut/issues/1099
4 years agofix(crypt): install all crypto modules in the generic initrd
Harald Hoyer [Tue, 4 May 2021 08:40:23 +0000 (10:40 +0200)] 
fix(crypt): install all crypto modules in the generic initrd

Just install all `=crypto` drivers in the generic initramfs, because who
are we to decide which combinations are allowed in current and future
`cryptsetup`. We only could install blacklist filter in the future, if
there are modules, which are definetely not used and are huge in size.

4 years agofeat: also restore the initramfs from /lib/modules
Harald Hoyer [Tue, 4 May 2021 08:36:44 +0000 (10:36 +0200)] 
feat: also restore the initramfs from /lib/modules

Fallback to /lib/modules/$(uname -r)/initrd, if present and all other
files don't exist.

4 years agochore: skip rpmbuild, if there is no rpmbuild installed
Harald Hoyer [Tue, 4 May 2021 08:23:36 +0000 (10:23 +0200)] 
chore: skip rpmbuild, if there is no rpmbuild installed

On non-rpm distributions this does not make sense.

4 years agochore: fix indent-c path for src directory
Harald Hoyer [Tue, 4 May 2021 08:21:56 +0000 (10:21 +0200)] 
chore: fix indent-c path for src directory

4 years agotest: use `uname -m` to determine qemu-system
Harald Hoyer [Tue, 4 May 2021 07:35:42 +0000 (09:35 +0200)] 
test: use `uname -m` to determine qemu-system

E.g. `uname -i` does not work in Arch Linux containers.

4 years agofix(systemd-sysusers): misc fixes and cleanup
Jóhann B. Guðmundsson [Sat, 1 May 2021 02:41:08 +0000 (02:41 +0000)] 
fix(systemd-sysusers): misc fixes and cleanup

- module-setup.sh file permission corrected
- comment section cleaned up
- removal of dependency on systemd module
- added inclution of the unit into the sysinit target
- removal of systemctl enablement of type unit

4 years agochore(tree): move src into their own src directory
Jóhann B. Guðmundsson [Mon, 3 May 2021 17:14:26 +0000 (17:14 +0000)] 
chore(tree): move src into their own src directory

Moving sources into their src directory

4 years agochore(tree): move tools into their own directory
Jóhann B. Guðmundsson [Mon, 3 May 2021 15:20:36 +0000 (15:20 +0000)] 
chore(tree): move tools into their own directory

Moving tools into their own directory

4 years agochore(tree): move docs into the docs directory
Jóhann B. Guðmundsson [Mon, 3 May 2021 18:12:50 +0000 (18:12 +0000)] 
chore(tree): move docs into the docs directory

Consolidating all the projects documentation into the docs
directory with the exception of news and readme.

4 years agochore(tree): move kernel install files into its own directory
Jóhann B. Guðmundsson [Mon, 3 May 2021 14:33:10 +0000 (14:33 +0000)] 
chore(tree): move kernel install files into its own directory

Move kernel install files into it's own directory within the tree.

4 years agochore(tree): move man pages into a man directory
Jóhann B. Guðmundsson [Mon, 3 May 2021 13:56:55 +0000 (13:56 +0000)] 
chore(tree): move man pages into a man directory

Moving man pages into it's own man directory within the tree

4 years agochore(tree): move shell completion into a directory
Jóhann B. Guðmundsson [Mon, 3 May 2021 13:25:17 +0000 (13:25 +0000)] 
chore(tree): move shell completion into a directory

Moving shell completion into it's own directory for a more organized and
cleaner tree.

4 years agofix(mdraid): remove dependency statements
Jóhann B. Guðmundsson [Mon, 3 May 2021 10:16:17 +0000 (10:16 +0000)] 
fix(mdraid): remove dependency statements

mdadm 4.1 was released 2 years ago so it's safe to assume
that everyone are on 4.1.X branch now...

4 years agofix(systemd-resolved): remove nss libraries
Jóhann B. Guðmundsson [Sat, 1 May 2021 07:55:28 +0000 (07:55 +0000)] 
fix(systemd-resolved): remove nss libraries

Removing inclution of nss libraries since they are part of
the systemd module now.

4 years agofix(systemd): include all nss libraries
Jóhann B. Guðmundsson [Sat, 1 May 2021 07:58:51 +0000 (07:58 +0000)] 
fix(systemd): include all nss libraries

Include all nss libraries so other modules dont have to.

4 years agofix(systemd-udevd): add udev id program files
Jóhann B. Guðmundsson [Fri, 30 Apr 2021 19:57:15 +0000 (19:57 +0000)] 
fix(systemd-udevd): add udev id program files

Adding missing udev id program files

4 years agofix(integrity): properly set up EVM when using an x509 cert
Stefan Berger [Thu, 29 Apr 2021 22:23:26 +0000 (18:23 -0400)] 
fix(integrity): properly set up EVM when using an x509 cert

The current EVM script does not handle the EVM setup properly when X509
certificates are involved. In this patch we extend the setup and add
the necessary flags for support of EVM activation that include
x509 certificates, possibly in conjunction with an HMAC key. We also
first try activating EVM for x509 certificates using
EVM_ALLOW_METADATA_WRITES for newer kernels, then without it for older
ones that did not support this flag.

We add support for additional EVM activation bits to be set, such
as EVM_SETUP_COMPLETE (0x80000000) via the config file and
EVM_ACTIVATION_BITS variable.

To avoid error messages related to unloading the HMAC key if none is
used, only attempt to unload the HMAC key if one was actually set.

We add documentation about the variables that can be set in the EVM
config file.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Cc: Roberto Sassu <roberto.sassu@huawei.com>
4 years agofix(tpm2-tss): add tpm2 requirement
Jóhann B. Guðmundsson [Fri, 30 Apr 2021 12:43:54 +0000 (12:43 +0000)] 
fix(tpm2-tss): add tpm2 requirement

4 years agofeat(tpm2-tss): introducing the tpm2-tss module
Jóhann B. Guðmundsson [Thu, 29 Apr 2021 12:07:59 +0000 (12:07 +0000)] 
feat(tpm2-tss): introducing the tpm2-tss module

Introducing the tpm2-tss module

4 years agofix(udev-rules): remove sourcing of network link files
Jóhann B. Guðmundsson [Wed, 28 Apr 2021 15:11:46 +0000 (15:11 +0000)] 
fix(udev-rules): remove sourcing of network link files

Removing sourcing of network link files from the udev-rules module.
What always should be included should be placed in the systemd-network
module and other modules that provide/require spesific link files
should add them, themselves via their relevant include section.

4 years agofix(systemd-udev): use global vars instead of fixed path
Jóhann B. Guðmundsson [Thu, 29 Apr 2021 15:28:32 +0000 (15:28 +0000)] 
fix(systemd-udev): use global vars instead of fixed path

4 years agoci: switch to action-sh-checker v0.2.0
Harald Hoyer [Thu, 29 Apr 2021 13:59:13 +0000 (15:59 +0200)] 
ci: switch to action-sh-checker v0.2.0

See also:
https://github.com/luizm/action-sh-checker/pull/40#issuecomment-829260125

4 years agoci: remove label cron job
Harald Hoyer [Thu, 29 Apr 2021 12:52:15 +0000 (14:52 +0200)] 
ci: remove label cron job

With the event called pull_request_target added to GitHub Actions, the
cron job can be removed.

See:
https://www.jclem.net/posts/labeling-prs-on-public-github-repositories

4 years agofix(dracut): adding missing globalvars for udev
Jóhann B. Guðmundsson [Thu, 29 Apr 2021 11:57:12 +0000 (11:57 +0000)] 
fix(dracut): adding missing globalvars for udev

Adding missing global variables for udev
udevconfdir --> /etc/udev
udevrulesdir --> /usr/lib/udev/rules.d
udevrulesconfdir --> /etc/udev/rules.d

4 years agofeat(systemd-udevd): introducing the systemd-udevd module
Jóhann B. Guðmundsson [Wed, 28 Apr 2021 19:36:39 +0000 (19:36 +0000)] 
feat(systemd-udevd): introducing the systemd-udevd module

Introducing the systemd-udevd module

4 years agofix(network): use wicked unit instead of find_binary
Jóhann B. Guðmundsson [Tue, 27 Apr 2021 09:55:12 +0000 (09:55 +0000)] 
fix(network): use wicked unit instead of find_binary

dracut-install triggers "ERROR: installing '/usr/lib/wicked/bin/*'"
when find_binary is being used to determine if wicked is installed
so let's just check for the wicked type service unit instead.

4 years agofix(multipath): stop multipath before udev db cleanup
Harald Hoyer [Fri, 23 Apr 2021 09:11:27 +0000 (11:11 +0200)] 
fix(multipath): stop multipath before udev db cleanup

All device-mapper based devices, including device-mapper-multipath,
do reuse the udev db from the initramfs after switching to the root fs.

Therefore device-mapper devices have to be correctly initialized before
the udev daemon is stopped, to have the correct entries in the udev db.

See also https://bugzilla.redhat.com/show_bug.cgi?id=1949076

4 years agofix(network-legacy): add missing options to dhclient.conf
Jóhann B. Guðmundsson [Tue, 27 Apr 2021 14:16:42 +0000 (14:16 +0000)] 
fix(network-legacy): add missing options to dhclient.conf

Adding the following commonly used options to dhclient.conf
- netbios-name-servers
- netbios-scope
- ntp-servers
- dhcp6.domain-search
- dhcp6.fqdn
- dhcp6.name-servers
- dhcp6.sntp-servers

4 years agofix(systemd-verity): incorrect reference to cryptsetup target
Jóhann B. Guðmundsson [Tue, 27 Apr 2021 10:37:20 +0000 (10:37 +0000)] 
fix(systemd-verity): incorrect reference to cryptsetup target

Incorrect include of remote-cryptsetup.target in hostonly.
Corrected to point to remote-veritysetup.target

4 years agofix(systemd-verity): re-naming module to veritysetup
Jóhann B. Guðmundsson [Tue, 27 Apr 2021 10:33:32 +0000 (10:33 +0000)] 
fix(systemd-verity): re-naming module to veritysetup

Renaming the module from systemd-verity to systemd-veritysetup to be inline
with the systemd-cryptsetup module.

4 years agofeat(systemd-verity): introducing the systemd-verity module
Jóhann B. Guðmundsson [Fri, 23 Apr 2021 16:23:39 +0000 (16:23 +0000)] 
feat(systemd-verity): introducing the systemd-verity module

Introducing the systemd-verity module.

4 years agoci: reorder the tests
Harald Hoyer [Mon, 26 Apr 2021 11:14:17 +0000 (13:14 +0200)] 
ci: reorder the tests

4 years agofix(iscsi): add iscsid.service requirements
Harald Hoyer [Mon, 26 Apr 2021 12:10:37 +0000 (14:10 +0200)] 
fix(iscsi): add iscsid.service requirements

Since Fedora 34, iscsid.service requires:
- iscsi-init.service
- iscsi-shutdown.service
- a non-empty /var/lib/iscsi/nodes/.dracut

4 years agotest(ISCSI): fix the watchdog loop
Harald Hoyer [Mon, 26 Apr 2021 09:06:41 +0000 (11:06 +0200)] 
test(ISCSI): fix the watchdog loop

Test for `pidof tgtd` and not the shell background jobs.

4 years agofix: search for btrfs devices from actual mount poiont
Kairui Song [Thu, 22 Apr 2021 14:04:37 +0000 (22:04 +0800)] 
fix: search for btrfs devices from actual mount poiont

Currently when dracut search for btrfs device used for initramfs, it
assumes the mount points passed in with "--mount" are all mounted with
given mount path. If user want the device to be mounted to a different
location in initramfs, this will not be true.

eg. with "--mount '/dev/mapper/vol /sysroot btrfs rw,relatime,subvolid=256,subvol=/root'"
and having '/dev/mapper/vol' currently mounted on '/', will raise an
error:
    ERROR: cannot access '/sysroot': No such file or directory

So search for actual mount point of given device.

Signed-off-by: Kairui Song <kasong@redhat.com>
4 years agotest: don't fail on modprobe btrfs in create-root.sh
Harald Hoyer [Mon, 26 Apr 2021 10:40:52 +0000 (12:40 +0200)] 
test: don't fail on modprobe btrfs in create-root.sh

4 years agoci: run all Fedora CI in a matrix
Harald Hoyer [Mon, 26 Apr 2021 09:31:20 +0000 (11:31 +0200)] 
ci: run all Fedora CI in a matrix

Also automatically cancel it, if the PR is updated

4 years agofix(iscsi): only rely on socket activiation
Harald Hoyer [Mon, 26 Apr 2021 08:05:06 +0000 (10:05 +0200)] 
fix(iscsi): only rely on socket activiation

Only rely on socket activation. This speeds up in case iscsi isn't used
and also prevents failures, where iscsiuio stopping somehow disables
iscsi.

4 years agofeat(systemd-initrd): add initrd-usr-fs.target
Jóhann B. Guðmundsson [Thu, 15 Apr 2021 07:49:48 +0000 (07:49 +0000)] 
feat(systemd-initrd): add initrd-usr-fs.target

Adding a new systemd initrd-usr-fs.target to the systemd-initrd module

4 years agofix: quotes in systemd modules
Jóhann B. Guðmundsson [Thu, 22 Apr 2021 20:20:15 +0000 (20:20 +0000)] 
fix: quotes in systemd modules

Fixing quotes around *.conf in systemd modules

4 years agorefactor: check() in systemd modules
Jóhann B. Guðmundsson [Thu, 22 Apr 2021 19:29:13 +0000 (19:29 +0000)] 
refactor: check() in systemd modules

Refactoring require_binaries in check() for systemd modules

4 years agofix(network-manager): set timeout via command line option
Harald Hoyer [Thu, 22 Apr 2021 08:21:18 +0000 (10:21 +0200)] 
fix(network-manager): set timeout via command line option

With Fedora 32, only the command line option works for `nm-online`.

4 years agofeat(systemd-network-management): introducing systemd-network-management module
Jóhann B. Guðmundsson [Thu, 22 Apr 2021 11:04:24 +0000 (11:04 +0000)] 
feat(systemd-network-management): introducing systemd-network-management module

Introducing the systemd-network-management meta module which will
allow distribution users and vendors to easily include
systemd + systemd's network management modules by simply include this
module instead of systemd network modules individually.

Obviously if the intent is to glue together somekind of network stack
out of random existing modules such as NetworkManager and or Wicked,
this meta module should not be enabled.

4 years agofix(network): user variable for sdnetworkd instead of path
Jóhann B. Guðmundsson [Thu, 22 Apr 2021 13:22:42 +0000 (13:22 +0000)] 
fix(network): user variable for sdnetworkd instead of path

Use globalvariable for systemd networkd instead of path

4 years agofix(systemd-hostnamed): extra quote
Jóhann B. Guðmundsson [Thu, 22 Apr 2021 12:19:42 +0000 (12:19 +0000)] 
fix(systemd-hostnamed): extra quote

4 years agofix(systemd-networkd): make systemd-networkd a proper network provider
Jóhann B. Guðmundsson [Wed, 14 Apr 2021 14:06:27 +0000 (14:06 +0000)] 
fix(systemd-networkd): make systemd-networkd a proper network provider

Make systemd-networkd a proper network service provider. Fixes #737

4 years agofeat(systemd-timedated): add systemd-timedated module to the spec file
Jóhann B. Guðmundsson [Wed, 14 Apr 2021 18:17:03 +0000 (18:17 +0000)] 
feat(systemd-timedated): add systemd-timedated module to the spec file

4 years agofeat(systemd-timedated): introducing the systemd-timedated module
Jóhann B. Guðmundsson [Wed, 14 Apr 2021 18:08:53 +0000 (18:08 +0000)] 
feat(systemd-timedated): introducing the systemd-timedated module

Introducing the systemd-timedated module

4 years agofix(network-manager): run after dracut-cmdline
Harald Hoyer [Thu, 22 Apr 2021 08:31:34 +0000 (10:31 +0200)] 
fix(network-manager): run after dracut-cmdline

dracut-cmdline runs `nm-config.sh`, which generates the configurations.

Also remove the now unused `nm-run.service`.

4 years agofix(img-lib): ignored null byte in input
Lev Veyde [Wed, 21 Apr 2021 22:11:55 +0000 (01:11 +0300)] 
fix(img-lib): ignored null byte in input

The system currently throws numerous nasty warning messages during
the boot, about ignored null bytes in input.

This patch adds a filter to the dd command, to filter these null
bytes out, and thus to prevent these warning messages.

Signed-off-by: Lev Veyde <lveyde@redhat.com>
4 years agofix(systemd-modules-load): misc repairs
Jóhann B. Guðmundsson [Tue, 20 Apr 2021 14:45:48 +0000 (14:45 +0000)] 
fix(systemd-modules-load): misc repairs

- Removing dependency on the systemd meta module since it causes circular dependency,
  prevents the existance of multiple systemd based meta modules and is redunant.

- Removing directory creation for modules-load since it should not be
  necessary and if it turns out that it is, it will be re-introduced in the
  form of a systemd tmpfile instead of inst_dir.

- Add a missing inclusion of configuration files placed in /usr/lib/modules-load.d
  and /etc/modules-load.d ( hostonly ) directories.

- Fix a spelling error in the systemd type unit file conf directory overwrite
  in the hostonly section.

4 years agofeat(systemd-resolved): introducing the systemd-resolved module
Jóhann B. Guðmundsson [Fri, 16 Apr 2021 22:24:57 +0000 (22:24 +0000)] 
feat(systemd-resolved): introducing the systemd-resolved module

Introducing the systemd-resolved module

4 years agofeat(systemd-hostnamed): introducing the systemd-hostnamed module
Jóhann B. Guðmundsson [Thu, 15 Apr 2021 21:22:16 +0000 (21:22 +0000)] 
feat(systemd-hostnamed): introducing the systemd-hostnamed module

Introducing the systemd-hostnamed module.

4 years agofeat(systemd-ac-power): introducing the systemd-ac-power module
Jóhann B. Guðmundsson [Sun, 18 Apr 2021 06:47:15 +0000 (06:47 +0000)] 
feat(systemd-ac-power): introducing the systemd-ac-power module

Introducing the systemd-ac-power module

4 years agofix(systemd-modules): remove dependency on systemd meta module
Jóhann B. Guðmundsson [Tue, 20 Apr 2021 15:05:53 +0000 (15:05 +0000)] 
fix(systemd-modules): remove dependency on systemd meta module

Depending on systemd meta module causes circular dependency,
prevents the existance of multiple systemd based meta modules
and is redunant.

4 years agofeat(systemd-timesyncd): introducing the systemd-timesyncd module
Jóhann B. Guðmundsson [Wed, 21 Apr 2021 22:34:49 +0000 (22:34 +0000)] 
feat(systemd-timesyncd): introducing the systemd-timesyncd module

Introducing the systemd-timesyncd module

4 years agofix(network-manager): create /run directories
Harald Hoyer [Thu, 22 Apr 2021 07:06:23 +0000 (09:06 +0200)] 
fix(network-manager): create /run directories

Create the `/run/NetworkManager/initrd` directory before creating
`/run/NetworkManager/initrd/neednet`. Somehow on Fedora 32 this
directory is missing, when the script is running.

This fixes all NetworkManager tests for Fedora 32.

4 years agoci: use /dev/disk/by-id
Harald Hoyer [Tue, 20 Apr 2021 14:16:14 +0000 (16:16 +0200)] 
ci: use /dev/disk/by-id

Due to parallel probing of the linux kernel `/dev/sd*` can't be used to
reliably address a hard disk. This can be seen by the many spurious
failures of the dracut CI, where `mdadm` failed with error 524 or tests
failed due to the success marker message written to the wrong disk.

* don't rely on `/dev/sd*` but use disk ids and `/dev/disk/by-id/ata-disk_<name>`

* specify the exact qemu machine architecture `-M q35` needed for the
  disk ids. A later patch will move this to `run-qemu`, when all tests are converted

* due to `-M q35` the interface names have changed from
  `ens2` -> `enp0s1` and `ens3` -> `enp0s2`

4 years agofix(systemd): include hosts and nsswitch.conf in hostonly mode
Jóhann B. Guðmundsson [Wed, 21 Apr 2021 11:57:32 +0000 (11:57 +0000)] 
fix(systemd): include hosts and nsswitch.conf in hostonly mode

Adding /etc/hosts and /etc/nsswitch.conf to the hostonly install section.

4 years agofix(90kernel-modules): add watchdog drivers for generic initrd
Peter Robinson [Wed, 21 Apr 2021 11:50:41 +0000 (12:50 +0100)] 
fix(90kernel-modules): add watchdog drivers for generic initrd

The watchdog module pulls in the device specific watchdog if that
module is enabled, but in the case where we need a generic initrd
we don't get all watchdog drivers which means if we have a watchdog
enabled for that usecase it may get kicked too late in the boot
process so we need the drivers in the initrd for the generic case too.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
4 years agofix(examples): remove the examples directory and reference to it
Jóhann B. Guðmundsson [Tue, 20 Apr 2021 04:54:45 +0000 (04:54 +0000)] 
fix(examples): remove the examples directory and reference to it

Let's leave it up to the yocto community to keep and maintain their own
examples.