]>
git.ipfire.org Git - thirdparty/dracut.git/log
Renaud Métrich [Mon, 1 Mar 2021 16:43:10 +0000 (17:43 +0100)]
fix(dracut.sh): harden dracut against GZIP environment variable
When a GZIP environment variable is set, this leads to various breakage:
In case 'pigz' is installed and GZIP is defined as a path, e.g.
/usr/local/bin/gzip, then dracut will fail with the following message:
"
pigz: abort: cannot provide files in GZIP environment variable
"
In case 'pigz' isn't installed and regular 'gzip' is used and GZIP is
defined as a path, e.g. /usr/local/bin/gzip, then the path will be
zipped and dracut will fail for no obvious reason. Trying again, dracut
will then fail with following message:
"
gzip: /usr/local/bin/gzip.gz already exists; not overwritten
"
In any case, GZIP environment should be unset to avoid breakage or
unwanted behaviour. This variable is anyway obsolescent, from gzip(1)
manpage.
Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
Harald Hoyer [Wed, 24 Feb 2021 12:55:54 +0000 (13:55 +0100)]
feat(skipcpio): speed up and harden skipcpio
Before:
```
Benchmark #1: ./skipcpio/skipcpio test-5.10.15-200.fc33.x86_64.img >/dev/null
Time (mean ± σ): 125.5 ms ± 0.9 ms [User: 97.4 ms, System: 27.9 ms]
Range (min … max): 124.8 ms … 129.4 ms 23 runs
```
After:
```
Benchmark #1: ./skipcpio/skipcpio test-5.10.15-200.fc33.x86_64.img >/dev/null
Time (mean ± σ): 12.2 ms ± 0.3 ms [User: 2.7 ms, System: 9.5 ms]
Range (min … max): 11.7 ms … 13.6 ms 212 runs
```
Besides the speedup, skipcpio now parses the cpio header and is not
falsely ending when the early cpio payload contains `TRAILER!!!`.
Fixes: https://github.com/dracutdevs/dracut/issues/1123
Harald Hoyer [Tue, 23 Feb 2021 08:54:37 +0000 (09:54 +0100)]
docs: update NEWS.md and AUTHORS
Harald Hoyer [Tue, 23 Feb 2021 08:53:40 +0000 (09:53 +0100)]
docs: update RELEASE.md
* clog from last tag
* push commits to kernelorg also
Jóhann B. Guðmundsson [Fri, 19 Feb 2021 14:51:47 +0000 (14:51 +0000)]
feat(github): adding packit support for fedora maintenance
Adding initial packit [1] support for fedora maintenance which
should automate the release process from upstream release to fedora.
1. https://packit.dev
Harald Hoyer [Tue, 16 Feb 2021 13:22:06 +0000 (14:22 +0100)]
fix(dracut.sh): remove unneeded variables
There is no `fstab_lines_l` variable used before.
The `--include` option was turned into `++include` and therefore the
switch option is not reachable anymore.
Sergei Iudin [Fri, 19 Feb 2021 21:06:03 +0000 (13:06 -0800)]
fix(dracut.sh): unfreeze /boot on exit
If SIGWHATEVER will be processed after fsfreeze -f, but before fsfreeze
-u we will end up with /boot/ never unfrozen, let's try to minimize risk of this.
Evgeni Golov [Sat, 13 Feb 2021 20:40:47 +0000 (21:40 +0100)]
fix: skip empty modalias files in drm module setup
on my system (ThinkPad X201s) I have several modalias entries that are
empty:
/sys/bus/platform/devices/dock.0/modalias
/sys/bus/platform/devices/dock.1/modalias
/sys/bus/platform/devices/dock.2/modalias
executing the drm module setup thus results in the following errors
dracut-install: No SOURCE argument given
when calling dracut_instmods and hostonly mode is enabled.
Skip those entries, as there are no modules to load in this case
anyways.
Note: it is not sufficient to use [['s -s test (file size is greater
than zero), as all those files are 4096B if you stat them.
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.
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.
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,....
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.
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.
Tomasz Paweł Gajc [Wed, 17 Feb 2021 14:55:11 +0000 (15:55 +0100)]
chore: update authors in .mailmap
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.
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
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.
Harald Hoyer [Tue, 16 Feb 2021 07:50:08 +0000 (08:50 +0100)]
docs: update docs/RELEASE.md
Harald Hoyer [Mon, 15 Feb 2021 14:58:57 +0000 (15:58 +0100)]
docs: update NEWS.md and AUTHORS
Harald Hoyer [Mon, 15 Feb 2021 15:18:33 +0000 (16:18 +0100)]
chore: add `CONTRIBUTORS` target to Makefile
Harald Hoyer [Mon, 15 Feb 2021 14:58:38 +0000 (15:58 +0100)]
docs: update docs/RELEASE.md
Harald Hoyer [Mon, 15 Feb 2021 14:18:24 +0000 (15:18 +0100)]
docs: move NEWS to NEWS.md
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.
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.
Harald Hoyer [Fri, 12 Feb 2021 12:53:34 +0000 (13:53 +0100)]
fix: shellcheck for dracut-init.sh
Harald Hoyer [Fri, 12 Feb 2021 12:53:25 +0000 (13:53 +0100)]
fix: shellcheck for dracut-init.sh
Harald Hoyer [Fri, 12 Feb 2021 12:53:15 +0000 (13:53 +0100)]
fix: shellcheck for dracut-init.sh
Harald Hoyer [Fri, 12 Feb 2021 12:53:07 +0000 (13:53 +0100)]
fix: shellcheck for dracut-init.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)]
fix: shellcheck for dracut-init.sh
Harald Hoyer [Fri, 12 Feb 2021 12:50:47 +0000 (13:50 +0100)]
fix: shellcheck for dracut.sh
Harald Hoyer [Fri, 12 Feb 2021 12:50:44 +0000 (13:50 +0100)]
fix: shellcheck for dracut.sh
Harald Hoyer [Fri, 12 Feb 2021 12:50:35 +0000 (13:50 +0100)]
fix: shellcheck for dracut.sh
Harald Hoyer [Fri, 12 Feb 2021 12:50:25 +0000 (13:50 +0100)]
fix: shellcheck for dracut.sh
Harald Hoyer [Fri, 12 Feb 2021 12:50:16 +0000 (13:50 +0100)]
fix: shellcheck for dracut.sh
Harald Hoyer [Fri, 12 Feb 2021 12:50:05 +0000 (13:50 +0100)]
fix: shellcheck for dracut.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)]
fix: shellcheck for dracut.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)]
fix: shellcheck for dracut-functions.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)]
fix: shellcheck for dracut-logger.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:14 +0000 (13:26 +0100)]
fix: 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/clear-squash.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:14 +0000 (13:26 +0100)]
fix: 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/99base/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:14 +0000 (13:26 +0100)]
fix: shellcheck for modules.d/99base/dracut-lib.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:13 +0000 (13:26 +0100)]
fix: 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/95udev-rules/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
Harald Hoyer [Fri, 12 Feb 2021 12:26:13 +0000 (13:26 +0100)]
fix: 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/95rootfs-block/block-genrules.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:13 +0000 (13:26 +0100)]
fix: 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/95nfs/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:13 +0000 (13:26 +0100)]
fix: 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/95fstab-sys/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
Harald Hoyer [Fri, 12 Feb 2021 12:26:13 +0000 (13:26 +0100)]
fix: shellcheck for modules.d/95fcoe/cleanup-fcoe.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:12 +0000 (13:26 +0100)]
fix: 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/95dcssblk/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:12 +0000 (13:26 +0100)]
fix: 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/95cifs/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:12 +0000 (13:26 +0100)]
fix: 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/91crypt-gpg/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
Harald Hoyer [Fri, 12 Feb 2021 12:26:12 +0000 (13:26 +0100)]
fix: 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/90lvm/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:12 +0000 (13:26 +0100)]
fix: 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/90kernel-network-modules/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
Harald Hoyer [Fri, 12 Feb 2021 12:26:11 +0000 (13:26 +0100)]
fix: 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/90dm/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
Harald Hoyer [Fri, 12 Feb 2021 12:26:11 +0000 (13:26 +0100)]
fix: 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_device_ready.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:11 +0000 (13:26 +0100)]
fix: 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/50gensplash/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:11 +0000 (13:26 +0100)]
fix: 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/40network/net-lib.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)]
fix: 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/10i18n/parse-i18n.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)]
fix: 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/06dbus-daemon/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
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)]
fix: 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/02caps/caps.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)]
fix: shellcheck for modules.d/00systemd/module-setup.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)]
fix: shellcheck for mkinitrd-suse.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)]
fix: shellcheck for mkinitrd-dracut.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)]
fix: shellcheck for lsinitrd-bash-completion.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)]
fix: shellcheck for fedora-test-github.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)]
fix: shellcheck for dracut-catimages.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)]
fix: shellcheck for dracut-bash-completion.sh
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)]
fix: shellcheck for configure
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)]
fix: shellcheck for 51-dracut-rescue.install
Harald Hoyer [Fri, 12 Feb 2021 12:26:09 +0000 (13:26 +0100)]
fix: shellcheck for 50-dracut.install
Harald Hoyer [Thu, 11 Feb 2021 08:10:42 +0000 (09:10 +0100)]
fix: shellcheck for modules.d/99squash/setup-squash.sh
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
```
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
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
[…]
```
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 .
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.
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.
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.