]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
4 years agofix(network-manager): run as a service if systemd module is present
Lukas Nykryn [Thu, 4 Feb 2021 09:15:45 +0000 (10:15 +0100)] 
fix(network-manager): run as a service if systemd module is present

In the current state, services that depend on network need to
use dracut hooks, since nothing with pull in the network
targets into the transaction.

In the future, it would be nice to provide developers on systemd-only
systems the possibility to not use dracut hooks at all, but simply put
normal systemd services into the initrd.

Also, some modules even right now depend on systemd ordering, like
cryptsetup, so let's make sure, that the ordering inside systemd work
properly as well.

4 years agofix(network-manager): rework how NM is started in debug mode
Lukas Nykryn [Wed, 10 Feb 2021 09:27:27 +0000 (10:27 +0100)] 
fix(network-manager): rework how NM is started in debug mode

Instead of running directly NM with --debug, create a drop-in in
nm-config.sh. This will make sure, that we can get the debug output
regardless the way how NM will be started.

4 years agofix(fcoe): rename rd.nofcoe to rd.fcoe
Lukas Nykryn [Thu, 18 Feb 2021 10:23:41 +0000 (11:23 +0100)] 
fix(fcoe): rename rd.nofcoe to rd.fcoe

The current name of this bool is kinda stupid. Based on the manpage
setting it to 0 turns off fcoe, which means that nofcoe=1 should mean
that it is on.

Let's just do the same thing as with rd.lvm=0, rd.luks=0,....

4 years agofix(fcoe): rd.nofcoe=0 should disable fcoe
Lukas Nykryn [Thu, 18 Feb 2021 10:01:31 +0000 (11:01 +0100)] 
fix(fcoe): rd.nofcoe=0 should disable fcoe

8446c8f9 Changed the default behavior, but also flipped meaning of 0/1.
Right now rd.nofcoe=0 enables fcoe, which is the opposite what manpage
says.

4 years agofix: proper return code for inst_multiple in dracut-init.sh
Andrew J. Hesford [Thu, 18 Feb 2021 23:53:15 +0000 (18:53 -0500)] 
fix: proper return code for inst_multiple in dracut-init.sh

A test of the form

    if ! command; then
        _ret=$?
        ...
        return _ret
    fi

does not capture the return code of `command`, but the negation of the
return code, leaving _ret == 0. The test of this form in inst_multiple
has been refactored to capture and return the right value.

4 years agochore: update authors in .mailmap
Tomasz Paweł Gajc [Wed, 17 Feb 2021 14:55:11 +0000 (15:55 +0100)] 
chore: update authors in .mailmap

4 years agofix(i18n): get rid of `eval` calls
Harald Hoyer [Tue, 16 Feb 2021 14:16:41 +0000 (15:16 +0100)] 
fix(i18n): get rid of `eval` calls

By changing KBDSUBDIRS to a bash array, all kinds of `eval` quirks are
avoided.

4 years agofix(i18n): create the keyboard symlinks again
Harald Hoyer [Tue, 16 Feb 2021 13:17:50 +0000 (14:17 +0100)] 
fix(i18n): create the keyboard symlinks again

Invalid space broke the creation of the keyboard subdirectories,
leading to a symbolic link

usr/share/consolefonts,consoletrans,keymaps,unimaps ->
/usr/lib/kbd/consolefonts,consoletrans,keymaps,unimaps

in the created initramfs.

With this fix the correct symlinks are created again:

usr/share/consolefonts -> /usr/lib/kbd/consolefonts
usr/share/consoletrans -> /usr/lib/kbd/consoletrans
usr/share/keymaps -> /usr/lib/kbd/keymaps
usr/share/unimaps -> /usr/lib/kbd/unimaps

4 years agofix(github): exempt issues with the label bug
Jóhann B. Guðmundsson [Sun, 14 Feb 2021 20:21:58 +0000 (20:21 +0000)] 
fix(github): exempt issues with the label bug

Let's exempt issues with the label bugs being processed by stalebot.

4 years agodocs: update docs/RELEASE.md
Harald Hoyer [Tue, 16 Feb 2021 07:50:08 +0000 (08:50 +0100)] 
docs: update docs/RELEASE.md

4 years agodocs: update NEWS.md and AUTHORS 052
Harald Hoyer [Mon, 15 Feb 2021 14:58:57 +0000 (15:58 +0100)] 
docs: update NEWS.md and AUTHORS

4 years agochore: add `CONTRIBUTORS` target to Makefile
Harald Hoyer [Mon, 15 Feb 2021 15:18:33 +0000 (16:18 +0100)] 
chore: add `CONTRIBUTORS` target to Makefile

4 years agodocs: update docs/RELEASE.md
Harald Hoyer [Mon, 15 Feb 2021 14:58:38 +0000 (15:58 +0100)] 
docs: update docs/RELEASE.md

4 years agodocs: move NEWS to NEWS.md
Harald Hoyer [Mon, 15 Feb 2021 14:18:24 +0000 (15:18 +0100)] 
docs: move NEWS to NEWS.md

4 years agoci: force binary files for grep on disk images
Harald Hoyer [Mon, 15 Feb 2021 12:02:03 +0000 (13:02 +0100)] 
ci: force binary files for grep on disk images

Because some of the CI tests fail randomly while grepping for the
test success marker, let's be specific of the file format grep will
search to eleminate all failure sources.

4 years agodocs: RELEASE.md
Jóhann B. Guðmundsson [Wed, 10 Feb 2021 20:18:17 +0000 (20:18 +0000)] 
docs: RELEASE.md

Creating the /docs directory which will contain all project related
documentation and will also host the projects github based website
in the future.

Adding RELEASE.md which is a document that outlines the release process.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4 years agofix: shellcheck for modules.d/90dmsquash-live/apply-live-updates.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:11 +0000 (13:26 +0100)] 
fix: shellcheck for modules.d/90dmsquash-live/apply-live-updates.sh

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

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

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

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

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.