]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
4 years agofix: shellcheck for modules.d/50plymouth/plymouth-populate-initrd.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:11 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/50plymouth/plymouth-populate-initrd.sh

4 years agofix: shellcheck for modules.d/50gensplash/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:11 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/50gensplash/module-setup.sh

4 years agofix: shellcheck for modules.d/45url-lib/url-lib.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:11 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/45url-lib/url-lib.sh

4 years agofix: shellcheck for modules.d/40network/net-lib.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:11 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/40network/net-lib.sh

4 years agofix: shellcheck for modules.d/40network/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/40network/module-setup.sh

4 years agofix: shellcheck for modules.d/10i18n/parse-i18n.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/10i18n/parse-i18n.sh

4 years agofix: shellcheck for modules.d/10i18n/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/10i18n/module-setup.sh

4 years agofix: shellcheck for modules.d/06dbus-daemon/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/06dbus-daemon/module-setup.sh

4 years agofix: shellcheck for modules.d/03modsign/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/03modsign/module-setup.sh

4 years agofix: shellcheck for modules.d/02systemd-networkd/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/02systemd-networkd/module-setup.sh

4 years agofix: shellcheck for modules.d/02caps/caps.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/02caps/caps.sh

4 years agofix: shellcheck for modules.d/00systemd/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/00systemd/module-setup.sh

4 years agofix: shellcheck for mkinitrd-suse.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)] 
fix: shellcheck for mkinitrd-suse.sh

4 years agofix: shellcheck for mkinitrd-dracut.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)] 
fix: shellcheck for mkinitrd-dracut.sh

4 years agofix: shellcheck for lsinitrd-bash-completion.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)] 
fix: shellcheck for lsinitrd-bash-completion.sh

4 years agofix: shellcheck for fedora-test-github.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)] 
fix: shellcheck for fedora-test-github.sh

4 years agofix: shellcheck for dracut-catimages.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)] 
fix: shellcheck for dracut-catimages.sh

4 years agofix: shellcheck for dracut-bash-completion.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)] 
fix: shellcheck for dracut-bash-completion.sh

4 years agofix: shellcheck for configure
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)] 
fix: shellcheck for configure

4 years agofix: shellcheck for 51-dracut-rescue.install
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)] 
fix: shellcheck for 51-dracut-rescue.install

4 years agofix: shellcheck for 50-dracut.install
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)] 
fix: shellcheck for 50-dracut.install

4 years agofix: shellcheck for modules.d/99squash/setup-squash.sh
Harald Hoyer [Thu, 11 Feb 2021 08:10:42 +0000 (09:10 +0100)] 
fix: shellcheck for modules.d/99squash/setup-squash.sh

4 years agodocs: fix dracut.cmdline.7
Harald Hoyer [Thu, 11 Feb 2021 08:01:54 +0000 (09:01 +0100)] 
docs: fix dracut.cmdline.7

```
asciidoc: WARNING: dracut.cmdline.7.asc: line 1115: nested inline passthrough
```

4 years agoci: wait for udev before doing sfdisk
Harald Hoyer [Fri, 12 Feb 2021 13:37:13 +0000 (14:37 +0100)] 
ci: wait for udev before doing sfdisk

might be responsible for some flakiness

4 years agoci: more disk space for test 30 iscsi
Harald Hoyer [Fri, 12 Feb 2021 12:53:34 +0000 (13:53 +0100)] 
ci: more disk space for test 30 iscsi

```
mke2fs 1.45.6 (20-Mar-2020)

Filesystem too small for a journal
Discarding device blocks:          done
Creating filesystem with 1024 1k blocks and 128 inodes

Allocating group tables: 0/1   done
Writing inode tables: 0/1   done
Writing superblocks and filesystem accounting information: 0/1   done

cp: error writing '/sysroot/usr/bin/bash': No space left on device
cp: error writing '/sysroot/usr/bin/grep': No space left on device
cp: error writing '/sysroot/usr/bin/ping': No space left on device
[…]
```

4 years agofix: update dbus module directory in spec file
Beniamino Galvani [Fri, 12 Feb 2021 16:44:43 +0000 (17:44 +0100)] 
fix: update dbus module directory in spec file

The directory name was changed in 16efdfa25c65c31acc97d91b7baf4f7bb4ea8510.

4 years agofix: add sdaskpw and sdsyctl to spec file
Jóhann B. Guðmundsson [Wed, 10 Feb 2021 13:21:04 +0000 (13:21 +0000)] 
fix: add sdaskpw and sdsyctl to spec file

Adding systemd-ask-password and systemd-sysctl to the spec file

Alphabeticaly order the newly introduced systemd based module
in the spec file.

4 years agofix: cosmetic comment fixes
Jóhann B. Guðmundsson [Wed, 10 Feb 2021 13:36:28 +0000 (13:36 +0000)] 
fix: cosmetic comment fixes

This rephrases a comment in the check() as requested on another PR
and generalizes the install() section comments on par with other recent
module changes.

4 years agofeat(systemd-ask-password): introducing systemd-ask-password module
Jóhann B. Guðmundsson [Mon, 8 Feb 2021 23:22:00 +0000 (23:22 +0000)] 
feat(systemd-ask-password): introducing systemd-ask-password module

Introducing systemd-ask-password module which is used to query a
system password or passphrase from the user.

This module can be used standalone ( systemd-ask-password )
( which is without plymouth & wall support )
With plymouth module ( systemd-ask-password + plymouth )
With wall module ( systemd-ask-password + wall ), which is currently
commented out since there is no forceable usecase for it or even exiting
wall module.

This is a standalone systemd module which means it depends on no other module than systemd.

4 years agoRevert "nbd: use systemd-run to start nbd-client"
Luiz Angelo Daros de Luca [Thu, 12 Nov 2020 01:19:06 +0000 (22:19 -0300)] 
Revert "nbd: use systemd-run to start nbd-client"

systemd-run runs nbd-client in parallel. This introduces a possible
race condition when /dev/nbd0 is not directly used by /sysroot mount
but used by another dracut module as in:

  netroot=nbd:ip:port:fstype root=live:/dev/nbd0

Before nbd0 usages are synchronized, it is better to keep it serial.

This reverts commit 9fd0461b7d632c8e30f5241fff8306359b592438.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
4 years agodmsquash-live-root: squashfs in bare device
Luiz Angelo Daros de Luca [Wed, 11 Nov 2020 03:54:33 +0000 (00:54 -0300)] 
dmsquash-live-root: squashfs in bare device

Check if dev in root=live:<dev> might be already the squashfs image.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
4 years agofeat(systemd-sysctl): introducing systemd-sysctl module
Jóhann B. Guðmundsson [Tue, 26 Jan 2021 17:28:36 +0000 (17:28 +0000)] 
feat(systemd-sysctl): introducing systemd-sysctl module

Introducing systemd-sysctl module which is an early boot
service that configures sysctl.

The systemd-sysctl module has dependency's on systemd and
systemd-modules-load module.

4 years agofix: adding missing efi paths
Jóhann B. Guðmundsson [Thu, 28 Jan 2021 14:15:07 +0000 (14:15 +0000)] 
fix: adding missing efi paths

4 years agodocs: fix CI badges in README
Harald Hoyer [Wed, 27 Jan 2021 16:01:33 +0000 (17:01 +0100)] 
docs: fix CI badges in README

4 years agofix: correct the squash quirk
Harald Hoyer [Tue, 9 Feb 2021 15:34:35 +0000 (16:34 +0100)] 
fix: correct the squash quirk

Previously with `no_kernel` the `for` loop errored on the modules
wildcard. By checking, if the file exists, this is mitigated.

"mv" asked interactively, if aliased in the user session, so a "--force"
was added.

4 years agofeat(systemd-modules-load): introducing systemd-modules-load module
Jóhann B. Guðmundsson [Thu, 21 Jan 2021 22:54:01 +0000 (22:54 +0000)] 
feat(systemd-modules-load): introducing systemd-modules-load module

Introducing systemd-modules-load which is an early boot service
that loads kernel modules from a static list, which is required for
kernel modules that do for example not support automatic module loading
( like key type parsers ).

4 years agofix(shutdown): add timeout to umount calls
Petr Pavlu [Tue, 9 Feb 2021 12:13:25 +0000 (13:13 +0100)] 
fix(shutdown): add timeout to umount calls

When terminating a system, the shutdown module attempts to unmount all
file systems from under /oldroot. This reaps remaining file systems that
systemd cannot unmount and detaches /oldroot itself.

In case that running umount for some file system repeatedly fails, the
module reports this error and continues the processing in order to
shutdown the system. This handles a condition when the umount command
actually terminates but it can happen in some cases that it waits
indefinitely.

An example with NFS mounts:
# mount -t nfs 192.168.0.1:/srv/nfs/dir /mnt/nfs
# mkdir /mnt/nfs/dir2
# mount -t nfs 192.168.0.1:/srv/nfs/dir2 /mnt/nfs/dir2
# touch /mnt/nfs/dir2/file
# systemd-run -pKillMode=none -pSendSIGKILL=no tail -f /mnt/nfs/dir2/file
Running as unit: run-r367825c967ca4d88a793ae4793c02f8b.service
# systemctl poweroff

The invoked tail command escapes normal termination by systemd and
prevents stopping mnt-nfs.mount and mnt-nfs-dir2.mount as it makes the
mounts busy. Systemd then again attempts to unmount these file systems
in systemd-shutdown but this fails as well. The utility tries to unmount
/mnt/nfs/dir2 but the kernel waits indefinitely doing a path lookup for
/mnt/nfs because network is no longer available at that point. The
systemd-shutdown gives up after 90 seconds. Finally, the control is
transferred to dracut which tries to unmount the file systems in the
same way and ends up indefinitely waiting on umount to finish.

This situation causes that the system hangs during shutdown. The patch
improves the shutdown module to add a timeout of 90 seconds for the
umount operation and continue with the shutdown if it gets reached,
similarly to what systemd-shutdown does.

4 years agoci: disable tests with NFS kernel crashes
Harald Hoyer [Wed, 10 Feb 2021 12:11:50 +0000 (13:11 +0100)] 
ci: disable tests with NFS kernel crashes

Tests 50, 51, 60, 61 all suffer from kernel crashes in the kernel nfsd.

Until this is resolved, disable these tests.

4 years agoci: only bind /dev/kvm into the container
Harald Hoyer [Wed, 10 Feb 2021 12:11:04 +0000 (13:11 +0100)] 
ci: only bind /dev/kvm into the container

dracut is only interested to use `/dev/kvm` if available.

4 years agoci: reduce CI workload
Harald Hoyer [Wed, 10 Feb 2021 12:09:52 +0000 (13:09 +0100)] 
ci: reduce CI workload

Only run `fedora-latest` and `fedora-32` on actual merge.

4 years agofix: revise all module checks
Harald Hoyer [Tue, 9 Feb 2021 15:24:59 +0000 (16:24 +0100)] 
fix: revise all module checks

1. no module checks for modules which are in depends()
2. no `derror` for optional (255) modules checking for dependencies
3. fix dbus meta module

4 years agofix: add missing line continuation
Harald Hoyer [Wed, 10 Feb 2021 10:10:03 +0000 (11:10 +0100)] 
fix: add missing line continuation

4 years agofix: BuildRequiring git-core is enough in dracut.spec
Daniel Molkentin [Wed, 10 Feb 2021 10:03:18 +0000 (11:03 +0100)] 
fix: BuildRequiring git-core is enough in dracut.spec

4 years agofix(kernel-modules): add reset controllers for arm
Nicolas Saenz Julienne [Tue, 9 Feb 2021 15:49:47 +0000 (16:49 +0100)] 
fix(kernel-modules): add reset controllers for arm

Reset controllers might be needed by some of the devices used in the
initrd. Particularly on the Raspberry Pi 4, 'xhci-pci' depends on a
platform specific reset controller.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
4 years ago35network-legacy: discard pointless RTNETLINK message
David Tardon [Tue, 9 Feb 2021 15:46:07 +0000 (16:46 +0100)] 
35network-legacy: discard pointless RTNETLINK message

This command prints

    RTNETLINK answers: Network is unreachable

to stderr if IP is not assigned yet, but that's the thing we are
checking for, so there's no point in showing the message.

4 years agofix(plymouth): install binaries with dependencies
Zoltán Böszörményi [Tue, 9 Feb 2021 13:59:43 +0000 (14:59 +0100)] 
fix(plymouth): install binaries with dependencies

If plymouth is used then its own installation script is preferred.
While plymouth's own variant of inst_binary resolves the library
dependencies properly, its inst_library shell function doesn't
actually install them in some cases properly.

Make sure to install both the required binaries and their
dependencies. In the worst case, it's a NOP.

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
4 years agofix: correct the line continuation
Harald Hoyer [Tue, 9 Feb 2021 14:02:02 +0000 (15:02 +0100)] 
fix: correct the line continuation

Comments will break bash line continuation.
Also added some missing line continuation here and there.

4 years agofix(dbus-daemon): use uid/gid from sysroot is dracutsysrootdir is set
Zoltán Böszörményi [Tue, 9 Feb 2021 05:00:19 +0000 (06:00 +0100)] 
fix(dbus-daemon): use uid/gid from sysroot is dracutsysrootdir is set

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
4 years agofix(network-manager): allow override network manager version
Zoltán Böszörményi [Mon, 8 Feb 2021 16:50:19 +0000 (17:50 +0100)] 
fix(network-manager): allow override network manager version

With dracutsysrootdir set and foreign binaries in sysroot,
running NetworkManager --version is not possible and it may be
different than the one installed on the host.
NM_VERSION can be used to override it.

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
4 years agofeat(dracut.sh): allow overriding the systemctl command for sysroot
Zoltán Böszörményi [Sun, 7 Feb 2021 14:29:56 +0000 (15:29 +0100)] 
feat(dracut.sh): allow overriding the systemctl command for sysroot

Allow overriding the systemctl command for sysroot with $SYSTEMCTL
Modified every modules' module-setup.sh to use the envvar instead
of the hardcoded command name.

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
4 years agofix: use find_binary
Zoltán Böszörményi [Sun, 7 Feb 2021 14:01:49 +0000 (15:01 +0100)] 
fix: use find_binary

Use find_binary instead of type -P because the former works if
dracutsysrootdir is set.

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
4 years agofix(dracut.sh): don't override path with foreign sysroot
Zoltán Böszörményi [Sun, 7 Feb 2021 12:30:53 +0000 (13:30 +0100)] 
fix(dracut.sh): don't override path with foreign sysroot

Don't override PATH with foreign sysroot and
trim the sysroot prefix from NPATH elements.

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
4 years agofix: quote globbing in module-setup.sh for inst_multiple
Zoltán Böszörményi [Sat, 30 Jan 2021 13:19:44 +0000 (14:19 +0100)] 
fix: quote globbing in module-setup.sh for inst_multiple

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
4 years agofix(dracut-install): allow globbing for multiple sources
Zoltán Böszörményi [Tue, 2 Feb 2021 08:42:37 +0000 (09:42 +0100)] 
fix(dracut-install): allow globbing for multiple sources

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
4 years agoFix bad ls parsing
foopub [Wed, 3 Feb 2021 17:41:08 +0000 (17:41 +0000)] 
Fix bad ls parsing

This used to cause some echo write/invalid argument errors. Simplest fix is to use readlink with -f for absolute path and -n to remove trailing newline.
See previous discussion here:
https://github.com/void-linux/void-packages/issues/13024

4 years agofix: move ldconfig after library workaround
Alexander Tsoy [Thu, 17 Dec 2020 21:01:32 +0000 (00:01 +0300)] 
fix: move ldconfig after library workaround

Commit de3cb0e3214c moved libpthread workaround after the code that runs
ldconfig. As a result, if installed in a non-default path, libgcc_s.so.1
could not be found by dynamic linker.

4 years agofeat(kernel-modules): add driver memory
Nicolas Chauvet [Wed, 21 Oct 2020 15:01:49 +0000 (17:01 +0200)] 
feat(kernel-modules): add driver memory

External Memory Controller (EMC) drivers can be built as a module.

On Tegra, this allows tegra_drm to load faster and without deferred
probes, instead of waiting for the rootfs for the tegra*_emc dependencies.

Tested on jetson-tk1 and ac100.

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
4 years agofeat(systemd-repart): introducing systemd-repart module
Jóhann B. Guðmundsson [Thu, 4 Feb 2021 18:19:02 +0000 (18:19 +0000)] 
feat(systemd-repart): introducing systemd-repart module

This modules introduces systemd-repart which can be used
to generate partition(s), via a simple systemd-repart
drop-in(s), which can be useful in wide varity of usecase.

feat(systemd-repart): adding module to spec file

feat(systemd-repart): removing unessary requirement on type unit

fix: spelling error

4 years agofeat(dbus-daemon): introducing the dbus-daemon module
Jóhann B. Guðmundsson [Wed, 3 Feb 2021 16:00:33 +0000 (16:00 +0000)] 
feat(dbus-daemon): introducing the dbus-daemon module

Introdusing dbus-daemon which is based on but superseeds
the previous 06dbus implementation with various enhancements and fixes.

fix: adding new modules to rpm spec file

fix: missed an echo

4 years agofeat(dbus-broker): introducing the dbus-broker module
Jóhann B. Guðmundsson [Wed, 3 Feb 2021 15:43:47 +0000 (15:43 +0000)] 
feat(dbus-broker): introducing the dbus-broker module

Introducing the dbus-broker module.

4 years agofeat(dbus): introducing a meta module for dbus
Jóhann B. Guðmundsson [Wed, 3 Feb 2021 15:35:03 +0000 (15:35 +0000)] 
feat(dbus): introducing a meta module for dbus

We require a meta module to handle multiple modules

4 years agofix(network-legacy): silent check for leaseinfo
Harald Hoyer [Mon, 8 Feb 2021 15:03:25 +0000 (16:03 +0100)] 
fix(network-legacy): silent check for leaseinfo

Reroute negative checks for leaseinfo to /dev/null to suppress:
```
ls: cannot access '/tmp/leaseinfo.ens2*': No such file or directory
```

4 years agoci: mount host /dev into container
Harald Hoyer [Fri, 5 Feb 2021 16:00:32 +0000 (17:00 +0100)] 
ci: mount host /dev into container

might pickup /dev/kvm if we are lucky?

4 years agoci: remove `--privileged` option from docker containers
Harald Hoyer [Fri, 5 Feb 2021 15:41:00 +0000 (16:41 +0100)] 
ci: remove `--privileged` option from docker containers

This option should not be needed anymore with "mount -o loop" removed.

4 years agoci: get rid of "mount -o loop"
Harald Hoyer [Fri, 5 Feb 2021 15:25:14 +0000 (16:25 +0100)] 
ci: get rid of "mount -o loop"

This finally allows running the test suite completely in a rootless container:
```
❯ podman run \
         --user 0 \
         -v /dev:/dev \
         -v ./:/dracut \
         -it \
         quay.io/haraldh/dracut-fedora:33 \
         bash -c 'cd /dracut; make DRACUT_NO_XATTR=1 check'
```

4 years agoci: disable TEST 99
Harald Hoyer [Fri, 5 Feb 2021 15:51:26 +0000 (16:51 +0100)] 
ci: disable TEST 99

1. people got annoyed by merge conflicts
2. spec file can be update per release
3. uses "mount" preventing container testing

4 years agodocs: remove TODO file
Harald Hoyer [Mon, 8 Feb 2021 12:27:58 +0000 (13:27 +0100)] 
docs: remove TODO file

TODO file copied to https://github.com/dracutdevs/dracut/issues/1068
and also filed as individual issues on
https://github.com/dracutdevs/dracut/issues

4 years ago95nfs: fix rpc.statd installation
Kairui Song [Sun, 7 Feb 2021 09:20:16 +0000 (17:20 +0800)] 
95nfs: fix rpc.statd installation

commit 5840c466d tried to make it create the right directory according
to the directory layout on current host, but added "$initdir" prefix
to the if statement by accident, so the installation code have no
effect now. Just fix it.

4 years agofix: do not set cmdline for uefi images unless asked
Matthew Thode [Fri, 29 Jan 2021 04:40:59 +0000 (22:40 -0600)] 
fix: do not set cmdline for uefi images unless asked

The kernel does not allow the cmdline to be overridden if one is defined
in the uefi image.  This means that bootloaders like systemd-boot or
grub cannot manage boot options (editing at boot for debug being a use
case).  This patchset allows for no cmdline to be set (instead of force
setting one if none is provided).

Fixes: https://github.com/dracutdevs/dracut/issues/1012
Signed-off-by: Matthew Thode <mthode@mthode.org>
4 years agofeat(network-legacy): send dhcp in parallel on all devices
Anjali Kulkarni [Thu, 4 Feb 2021 01:15:15 +0000 (17:15 -0800)] 
feat(network-legacy): send dhcp in parallel on all devices

We can drastically improve boot times on some machines, or BM or VM
shapes, if we send DHCP requests in parallel on all interfaces
Add ip=single-dhcp as a kernel boot parameter, to send DHCP requests in
parallel on all interfaces. Thus, DHCP on each interface is overlapped
thereby reducing boot times for multiple interface machines.
This can help reduce the boot time by 1 minute per interface.
In addition, we may also save another 40 secs delay per interface, if
the link on which we try to send DHCP is in DOWN state. This can be
reduced by giving the following kernel command line parameter while
booting - rd.net.timeout.carrier=<timeout>.
Added manpage for ip=single-dhcp with the caveat that it does not
apply to Network Manager or SUSE wicked.

Signed-off-by: Anjali Kulkarni <anjali.k.kulkarni@oracle.com>
4 years agofix(mdraid): remove offroot
Mariusz Tkaczyk [Thu, 26 Nov 2020 12:04:44 +0000 (13:04 +0100)] 
fix(mdraid): remove offroot

offroot is deprecated and can be safety removed.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
4 years agofix(mdraid): add grow continue service
Mariusz Tkaczyk [Thu, 26 Nov 2020 11:51:47 +0000 (12:51 +0100)] 
fix(mdraid): add grow continue service

During raid assembly mdadm will call mdadm-grow-continue.service if
reshape is in progress.
If service doesn't exist then it is done via fork and systemd will kill
it unconditionally after processing all events.

Add proper service to allow systemd to manage reshape correctly.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
4 years agofix(spec): add new systemd-coredump module to spec
Lukas Nykryn [Thu, 4 Feb 2021 09:54:01 +0000 (10:54 +0100)] 
fix(spec): add new systemd-coredump module to spec

4 years agofix(watchdog): replace return with echo
Peter Levine [Tue, 2 Feb 2021 03:17:06 +0000 (22:17 -0500)] 
fix(watchdog): replace return with echo

4 years agofeat(systemd-coredump): introducing systemd-coredump module
Jóhann B. Guðmundsson [Mon, 1 Feb 2021 11:27:52 +0000 (11:27 +0000)] 
feat(systemd-coredump): introducing systemd-coredump module

This pull request introduces systemd-coredump as a seperated
module and adds the systemdutilconfdir global variable.

4 years agoci: remove Travis and include Fedora-latest
Harald Hoyer [Wed, 27 Jan 2021 08:48:19 +0000 (09:48 +0100)] 
ci: remove Travis and include Fedora-latest

Also remove Fedora 31.

Github CI should suffice. The only missing piece was Fedora-latest.

Signed-off-by: Harald Hoyer <harald@redhat.com>
4 years agotest: incr. disk size for TEST 35 ISCSI-MULTI
Harald Hoyer [Wed, 27 Jan 2021 09:00:10 +0000 (10:00 +0100)] 
test: incr. disk size for TEST 35 ISCSI-MULTI

4 years agofix(skipcpio): edit skipcpio.c: strstr -> memmem
realtime-neil [Mon, 25 Jan 2021 22:44:07 +0000 (22:44 +0000)] 
fix(skipcpio): edit skipcpio.c: strstr -> memmem

because CPIO_END might follow a NULL byte in buf

4 years agofix(1007): adding shared keyring mode to type unit
Jóhann B. Guðmundsson [Mon, 18 Jan 2021 16:16:54 +0000 (16:16 +0000)] 
fix(1007): adding shared keyring mode to type unit

Fixes: https://github.com/dracutdevs/dracut/issues/1007
4 years agoci: use our own version of commisery
Harald Hoyer [Tue, 26 Jan 2021 14:45:40 +0000 (15:45 +0100)] 
ci: use our own version of commisery

This should hopefully fix:
* not checking the PR github title
* not error on the auto merge commit message

4 years agofeat(systemd-sysusers): introducing systemd-sysuser module
Jóhann B. Guðmundsson [Tue, 19 Jan 2021 23:06:56 +0000 (23:06 +0000)] 
feat(systemd-sysusers): introducing systemd-sysuser module

4 years agofeat(systemd-sysusers): introducing systemd-sysuser module
Jóhann B. Guðmundsson [Tue, 19 Jan 2021 23:03:59 +0000 (23:03 +0000)] 
feat(systemd-sysusers): introducing systemd-sysuser module

4 years agofix(1001): use efivars fs over the deprecated sysfs entries
Daniel Molkentin [Tue, 19 Jan 2021 17:46:13 +0000 (18:46 +0100)] 
fix(1001): use efivars fs over the deprecated sysfs entries

sysfs efi vars has been dropped for non-x86 systems since kernel 5.10.

4 years agofix(kernel-network-modules): also install modules from mdio subdirectory
Javier Martinez Canillas [Thu, 21 Jan 2021 11:35:06 +0000 (12:35 +0100)] 
fix(kernel-network-modules): also install modules from mdio subdirectory

A recent change in Linux kernel v5.10 split the MDIO drivers from the PHY
subdirectory into a new MDIO subdirectory [0]. This caused MDIO drivers
to not be included in the initramfs.

Also include the modules of this new subdirectory to prevent this issue.

[0]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9770eac511

Suggested-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
4 years agofix(06dbus): do not hardcode path to dbus utils
Alexey Shabalin [Fri, 18 Dec 2020 02:01:39 +0000 (05:01 +0300)] 
fix(06dbus): do not hardcode path to dbus utils

4 years agofix(06dbus): do not hardcode path to systemd unit
Alexey Shabalin [Fri, 18 Dec 2020 01:32:25 +0000 (04:32 +0300)] 
fix(06dbus): do not hardcode path to systemd unit

Use $systemdsystemunitdir instead /usr/lib/systemd/system.

4 years agofix(dracut-init.sh): make inst_libdir_file work with dracutsysrootdir set
Zoltán Böszörményi [Tue, 19 Jan 2021 16:24:06 +0000 (17:24 +0100)] 
fix(dracut-init.sh): make inst_libdir_file work with dracutsysrootdir set

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
4 years agofix(99squash): use kernel config instead of modprobe to check modules
Zoltán Böszörményi [Tue, 19 Jan 2021 14:17:05 +0000 (15:17 +0100)] 
fix(99squash): use kernel config instead of modprobe to check modules

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
4 years agofix(dracut-functions.sh): check kernel config from $dracutsysrootdir
Zoltán Böszörményi [Tue, 19 Jan 2021 09:39:17 +0000 (10:39 +0100)] 
fix(dracut-functions.sh): check kernel config from $dracutsysrootdir

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
4 years agofix(90kernel-modules): install generic crypto modules with hostonly unset
Ondrej Mosnacek [Fri, 4 Dec 2020 16:21:05 +0000 (17:21 +0100)] 
fix(90kernel-modules): install generic crypto modules with hostonly unset

Otherwise e.g. the xts(aes) implementation provided by the vmx_crypto
module (which does usually get included on ppc64le) fails to initialize
when xts is built as a module (CONFIG_CRYPTO_XTS=m), because it can't
instantiate the fallback generic xts(aes) implementation (needs the
generic xts module).

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
4 years agofeat: add addional global variables
Jóhann B. Guðmundsson [Tue, 19 Jan 2021 22:50:36 +0000 (22:50 +0000)] 
feat: add addional global variables

4 years agofeat: add addional global variables
Jóhann B. Guðmundsson [Tue, 19 Jan 2021 22:36:37 +0000 (22:36 +0000)] 
feat: add addional global variables

4 years agofix: add a missing efi support
Jóhann B. Guðmundsson [Sat, 16 Jan 2021 17:44:00 +0000 (17:44 +0000)] 
fix: add a missing efi support

4 years agochore(removal): eliminate bootchart module
Jóhann B. Guðmundsson [Mon, 18 Jan 2021 11:33:42 +0000 (11:33 +0000)] 
chore(removal): eliminate bootchart module

4 years agochore(removal): eliminate bootchart module
Jóhann B. Guðmundsson [Mon, 18 Jan 2021 11:30:34 +0000 (11:30 +0000)] 
chore(removal): eliminate bootchart module

4 years agochore(removal): eliminate bootchart module
Jóhann B. Guðmundsson [Mon, 18 Jan 2021 11:28:06 +0000 (11:28 +0000)] 
chore(removal): eliminate bootchart module

4 years agofeat: add addional global variables
Jóhann B. Guðmundsson [Sun, 17 Jan 2021 22:44:17 +0000 (22:44 +0000)] 
feat: add addional global variables

4 years agofeat(cli): add --no-uefi option
Vladius25 [Wed, 13 Jan 2021 11:32:13 +0000 (16:32 +0500)] 
feat(cli): add --no-uefi option

To be able to turn off UEFI mode, when it's enabled in config.

4 years agochore(github): add CODEOWNERS file
Harald Hoyer [Thu, 14 Jan 2021 09:56:23 +0000 (10:56 +0100)] 
chore(github): add CODEOWNERS file

All CODEOWNERS are automatically added as reviewers.

4 years agochore(cleanup): remove logrotate file
Jóhann B. Guðmundsson [Thu, 14 Jan 2021 11:49:19 +0000 (11:49 +0000)] 
chore(cleanup): remove logrotate file