]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
5 years agomultipath: add automatic configuration for multipath
Ben Howard [Fri, 3 Apr 2020 19:32:44 +0000 (13:32 -0600)] 
multipath: add automatic configuration for multipath

Add support for 'rd.multipath=default' for using the default
configuration on boot. The intended purpose for this is to help support
ostree-based image boots from multipathed devices (such as Fedora and
Red Hat CoreOS).

5 years agourl-lib: drop NSS if it's not in curl --version
Alexander Sosedkin [Thu, 26 Mar 2020 14:11:15 +0000 (15:11 +0100)] 
url-lib: drop NSS if it's not in curl --version

5 years agodhclient-script: Fix typo in output of BOUND & BOUND6 cases
Patrick Talbert [Wed, 18 Mar 2020 14:58:48 +0000 (15:58 +0100)] 
dhclient-script: Fix typo in output of  BOUND & BOUND6 cases

No bonding going on here.

Signed-off-by: Patrick Talbert <ptalbert@redhat.com>
5 years agodasd: only install /etc/dasd.conf if present
Sebastian Mitterle [Thu, 19 Mar 2020 11:12:50 +0000 (12:12 +0100)] 
dasd: only install /etc/dasd.conf if present

`dasd.conf` needn't be present on system even if modules have been loaded.

Check if file exists to avoid error message during kernel update
```bash
dracut-install: ERROR: installing '/etc/dasd.conf'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.YvVRx5/initramfs -H /etc/dasd.conf
```

5 years agoMakefile: really make externally defined CFLAGS work
Daniel Molkentin [Fri, 13 Mar 2020 10:39:46 +0000 (11:39 +0100)] 
Makefile: really make externally defined CFLAGS work

The fix in aed52a6cfb43ebea372328fd5837c1f341c3f0df does not
work (second line will be ignored on override), so expand the implicitly
defined rule and add them there.

5 years agoMake externally defined CFLAGS work
Daniel Molkentin [Fri, 20 Apr 2018 22:11:17 +0000 (00:11 +0200)] 
Make externally defined CFLAGS work

5 years agodracut.sh: add check for invalid configuration files
Harald Hoyer [Wed, 23 Oct 2019 12:16:56 +0000 (14:16 +0200)] 
dracut.sh: add check for invalid configuration files

Emit a warning about possible misconfigured configuration files, where
the spaces around values are missing for +=""

Better report a possible source of problems. We can fix annoying false
positives later.

5 years agocryptroot-ask: no warn if /run/cryptsetup exist
Đoàn Trần Công Danh [Sat, 14 Mar 2020 04:44:47 +0000 (11:44 +0700)] 
cryptroot-ask: no warn if /run/cryptsetup exist

In either case:
- encrypted device is decrypted, udev will trigger device changes again,
- multiple encrypted device,

cryptroot-ask will run multiple time, then report:
> mkdir: cannot create directory '/run/cryptsetup': File exists

Pass `-p` into mkdir to ignore that warning.

5 years agodon't prefer $TMPDIR over --tmpdir
Dusty Mabe [Fri, 13 Mar 2020 19:40:11 +0000 (15:40 -0400)] 
don't prefer $TMPDIR over --tmpdir

Ability to use `$TMPDIR` was introduced in bc1e69b but
causes the `--tmpdir` option on the command line to be
ignored. Switch to only using `$TMPDIR` if `--tmpdir`
wasn't specified.

5 years agoTEST-03-USR-MOUNT/test.sh: increase loglevel
Harald Hoyer [Thu, 12 Mar 2020 12:44:08 +0000 (13:44 +0100)] 
TEST-03-USR-MOUNT/test.sh: increase loglevel

to debug the spurious fails

5 years ago.travis.yml: reformat
Harald Hoyer [Thu, 12 Mar 2020 12:01:46 +0000 (13:01 +0100)] 
.travis.yml: reformat

5 years agonetwork: fix glob matching ipv6 addresses
Lukas Nykryn [Tue, 10 Mar 2020 14:18:37 +0000 (15:18 +0100)] 
network: fix glob matching ipv6 addresses

In this case we want to cover three cases
1) ip_address:ip_address
2) number:macaddress
3) :macaddress

We consider something an IPv6 address if it starts with number and
contains ":", but IPv6 addresses are in hexa.

5 years agoTEST-41-NBD-NM/Makefile: should be based on TEST-40-NBD not TEST-20-NFS
Harald Hoyer [Thu, 12 Mar 2020 12:22:10 +0000 (13:22 +0100)] 
TEST-41-NBD-NM/Makefile: should be based on TEST-40-NBD not TEST-20-NFS

5 years agogithub actions: use test container directly
Harald Hoyer [Thu, 12 Mar 2020 11:50:08 +0000 (12:50 +0100)] 
github actions: use test container directly

5 years agotest: use dd from /dev/zero, instead of creating files with a hole
Harald Hoyer [Thu, 12 Mar 2020 10:55:37 +0000 (11:55 +0100)] 
test: use dd from /dev/zero, instead of creating files with a hole

5 years agonetwork-manager: ensure that nm-run.sh is executed when needed
Beniamino Galvani [Wed, 11 Mar 2020 08:40:50 +0000 (09:40 +0100)] 
network-manager: ensure that nm-run.sh is executed when needed

The network-manager command line hook must install a
initqueue/finished hook to ensure that nm-run.sh is executed when
there are network connections to activate.

Fixes: #694
5 years agoTEST-12-RAID-DEG/create-root.sh: more udevadm settle
Harald Hoyer [Wed, 11 Mar 2020 12:14:26 +0000 (13:14 +0100)] 
TEST-12-RAID-DEG/create-root.sh: more udevadm settle

5 years agobtrfs: force preload btrfs module
Harald Hoyer [Wed, 11 Mar 2020 11:56:52 +0000 (12:56 +0100)] 
btrfs: force preload btrfs module

fixes https://github.com/dracutdevs/dracut/issues/658

raid6_pq and xor takes time doing benchmarking

[    3.983009] request_module fs-btrfs succeeded, but still no fs?

5 years agoREADME.md: fix github action badge links
Harald Hoyer [Wed, 11 Mar 2020 11:38:01 +0000 (12:38 +0100)] 
README.md: fix github action badge links

5 years ago95fcoe: default rd.nofcoe to false
Thomas Blume [Mon, 24 Feb 2020 11:11:25 +0000 (12:11 +0100)] 
95fcoe: default rd.nofcoe to false

rd.nofcoe should default to false, e.g. fcoe should be enabled unless
overwritten from the command line.
The same applies for lldapd.sh.

5 years agoFix pre-trigger stage by replacing exit with return in lldpad.sh
Radek Vykydal [Tue, 10 Mar 2020 09:48:21 +0000 (10:48 +0100)] 
Fix pre-trigger stage by replacing exit with return in lldpad.sh

Using exit makes the pre-trigger stage finish after running 03-lldpad.sh
pre-trigger hook.

5 years agoMakefile: fix VERSION again
Alexander Tsoy [Sun, 8 Mar 2020 02:47:50 +0000 (05:47 +0300)] 
Makefile: fix VERSION again

The variable is not undefined anymore after the first assignment, so
we should check if variable is empty instead.

5 years ago95dcssblk: fix script permissions
Daniel Molkentin [Tue, 24 Jul 2018 17:38:30 +0000 (19:38 +0200)] 
95dcssblk: fix script permissions

5 years agoUse TMPDIR if available
Topi Miettinen [Sun, 1 Mar 2020 08:45:16 +0000 (10:45 +0200)] 
Use TMPDIR if available

Use environment variable TMPDIR (typically /run/user/$UID) as default
temporary directory, if available. This should be more private
location than /var/tmp. Path specified with --tmpdir is takes
precedence over TMPDIR and /var/tmp is still used as last resort if
neither TMPDIR is set nor --tmpdir is used.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
5 years agodracut.sh: don't call fsfreeze on subvol of root file system
Martin Wilck [Wed, 29 Jan 2020 22:53:29 +0000 (23:53 +0100)] 
dracut.sh: don't call fsfreeze on subvol of root file system

dracut.sh already doesn't call fsfreeze if the output file is on
the root file system. For btrfs, however, this is not sufficient.
Because fsfreeze is a superblock operation, and all btrfs subvolumes
share the same superblock, fsfreeze may freeze the entire system
if the subvolume on which the output file is written and / are
subvolumes of the same file system. Avoid this by comparing file
system UUIDs for btrfs.

Fixes: de576db3c225 ("call fsfreeze(8) on /boot to flush initramfs data & metadata to media")
5 years ago95zfcp_rules/parse-zfcp.sh: remove rule existence check
Daniel Molkentin [Mon, 21 Jan 2019 13:40:06 +0000 (14:40 +0100)] 
95zfcp_rules/parse-zfcp.sh: remove rule existence check

Reference: bsc#1008352

Original-Patch-By: Michal Suchanek <msuchanek@suse.com>
5 years ago99base: Remove duplicate nfsroot_to_var from dracut-lib.sh
Daniel Molkentin [Wed, 30 Oct 2019 08:30:32 +0000 (09:30 +0100)] 
99base: Remove duplicate nfsroot_to_var from dracut-lib.sh

It already lives in nfs-lib.sh, which is the more correct library scope.

Fixes #17

5 years agodracut.spec: add 90nvdimm
Martin Wilck [Fri, 6 Mar 2020 09:26:43 +0000 (10:26 +0100)] 
dracut.spec: add 90nvdimm

5 years ago90kernel-modules: remove nfit from static module list
Martin Wilck [Thu, 30 Jan 2020 14:44:28 +0000 (15:44 +0100)] 
90kernel-modules: remove nfit from static module list

The 90nvdimm module now resolves the nfit dependency when it's
necessary, so it's not necessary any more to pack it always.

5 years agoAdd module "90nvdimm" for NVDIMM support
Martin Wilck [Thu, 30 Jan 2020 12:48:11 +0000 (13:48 +0100)] 
Add module "90nvdimm" for NVDIMM support

Detection of persistent memory devices works mostly out of the box
already. Only the "provider" modules for ndbus devices, which are responsible
to extract information of available NVDIMM devices and their configuration
from system firmware, are only indirectly linked into the module stack.
Examples for such modules are nfit.ko, nd_e820.ko, and virtio-pmem.ko.

Add a module that resolves these dependencies.

5 years agoMakefile: merge main-version and git-version earlier
Đoàn Trần Công Danh [Fri, 6 Mar 2020 01:46:36 +0000 (08:46 +0700)] 
Makefile: merge main-version and git-version earlier

With GNU Make 4.3 on both ArchLinux, and VoidLinux,
GITVERION is always empty because of bad substitution.
Change '\#' to simply '#' can fix it,
but we don't need that complation.

We can merge DRACUT_MAIN_VERSION and GITVERSION into DRACUT_FULL_VERSION.
Because, GITVERSION will be attached back to DRACUT_MAIN_VERSION in all
situation.

While we're at it, detect if we're in git worktree by:
limiting GIT_CEILING_DIRECTORIES to parent directory of
dracut's top level directory; instead of checking for .git directory,
in order to support git-worktree, in such case, .git will be a file, see
gitrepository-layout(5)

5 years agodracut.spec: add version check for deprecated files
Harald Hoyer [Wed, 4 Mar 2020 13:39:39 +0000 (14:39 +0100)] 
dracut.spec: add version check for deprecated files

5 years agotest/TEST-35-ISCSI-MULTI: bump disk space
Harald Hoyer [Wed, 4 Mar 2020 13:39:22 +0000 (14:39 +0100)] 
test/TEST-35-ISCSI-MULTI: bump disk space

5 years agoNEWS, AUTHORS: update 050
Harald Hoyer [Wed, 4 Mar 2020 10:43:22 +0000 (11:43 +0100)] 
NEWS, AUTHORS: update

5 years agoTEST-14-IMSM: clear marker disk
Harald Hoyer [Wed, 4 Mar 2020 10:02:33 +0000 (11:02 +0100)] 
TEST-14-IMSM: clear marker disk

5 years agofedora-test-github.sh: only fetch tags, if building rpm
Harald Hoyer [Wed, 4 Mar 2020 10:01:52 +0000 (11:01 +0100)] 
fedora-test-github.sh: only fetch tags, if building rpm

5 years agoConsider also drm_dev_register when looking for gpu driver
Marek Marczykowski-Górecki [Tue, 3 Mar 2020 20:20:34 +0000 (21:20 +0100)] 
Consider also drm_dev_register when looking for gpu driver

DRM drivers are filtered for drm_crtc_init symbol,
but not all drivers use it. Especially, cirrus driver
doesn't use it since Linux 5.2.

The practical result is text plymouth theme instead of graphical when in qemu.

Fix it by looking also for drm_dev_register symbol.
Suggested by @haraldh
Fixes #712

5 years ago.github/workflows: bump timeout to 45min
Harald Hoyer [Wed, 4 Mar 2020 08:23:46 +0000 (09:23 +0100)] 
.github/workflows: bump timeout to 45min

5 years ago90kernel-modules: Add PCI host controller modules
Daniel Molkentin [Tue, 4 Feb 2020 14:51:57 +0000 (15:51 +0100)] 
90kernel-modules: Add PCI host controller modules

Currently there is no usb support on RPi4 in the
initrd phase as the pcie-brcmstb module is missing.
If part of the boot is handled from a USB stick
(e.g. with Ignition), the stick cannot be accessed.

Reference: boo#1162669

5 years ago90crypt: install crypt-run-generator in non-systemd environments
Daniel Molkentin [Thu, 6 Feb 2020 09:00:23 +0000 (10:00 +0100)] 
90crypt: install crypt-run-generator in non-systemd environments

5 years ago90crypt: Do not call cryptsetup in a systemd environment
Daniel Molkentin [Tue, 29 Oct 2019 13:29:34 +0000 (14:29 +0100)] 
90crypt: Do not call cryptsetup in a systemd environment

systemd provides its own cryptsetup facilities, and the
cryptsetup binary might not even exist, failing
to execute the discard flag processing.

Fixes #602

5 years agoMerge branch 'regenerate_all'
Daniel Molkentin [Tue, 3 Mar 2020 19:09:45 +0000 (20:09 +0100)] 
Merge branch 'regenerate_all'

5 years agoEnable resume module if hibernation's enabled on the host
nabijaczleweli [Fri, 13 Dec 2019 06:59:59 +0000 (07:59 +0100)] 
Enable resume module if hibernation's enabled on the host

Ref: https://github.com/dracutdevs/dracut/commit/34b56de12aad622d602d6e3bd434e02c840f1cd0
Fixes https://github.com/dracutdevs/dracut/issues/496

5 years agoMerge branch 'master' into regenerate_all 722/head
Daniel Molkentin [Tue, 3 Mar 2020 18:25:16 +0000 (19:25 +0100)] 
Merge branch 'master' into regenerate_all

5 years agoTEST-04-FULL-SYSTEMD: use seperate marker disk for root creation
Harald Hoyer [Tue, 3 Mar 2020 15:56:16 +0000 (16:56 +0100)] 
TEST-04-FULL-SYSTEMD: use seperate marker disk for root creation

5 years agoMake lsinitrd usable for images made with Debian mkinitramfs
Topi Miettinen [Sun, 1 Mar 2020 10:22:30 +0000 (12:22 +0200)] 
Make lsinitrd usable for images made with Debian mkinitramfs

Debian mkinitramfs does not create the file 'early_cpio', so detection
of additional cpio images fails and only the first cpio is listed.

I checked some Arch and Gentoo initramfs files and these didn't have
'early_cpio' either, but they also have only one cpio part.

Fix this so that if check for 'early_cpio' fails, check if firmware
files ('/kernel/*/microcode/*.bin') exist.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
5 years agoTEST-04-FULL-SYSTEMD: change error reporting
Harald Hoyer [Mon, 2 Mar 2020 13:55:23 +0000 (14:55 +0100)] 
TEST-04-FULL-SYSTEMD: change error reporting

5 years agodracut_mkdir(): create parent directories as needed.
Lucas C. Villa Real [Thu, 20 Feb 2020 19:37:32 +0000 (16:37 -0300)] 
dracut_mkdir(): create parent directories as needed.

5 years agotest/TEST-0[34] remove qemu return check
Harald Hoyer [Mon, 2 Mar 2020 13:40:16 +0000 (14:40 +0100)] 
test/TEST-0[34] remove qemu return check

remove check of qemu return code $?

seems like it randomly returns with != 0

5 years agoDon't resolve libraries lazily if tmpdir is mounted with 'noexec'
Topi Miettinen [Wed, 26 Feb 2020 12:48:18 +0000 (14:48 +0200)] 
Don't resolve libraries lazily if tmpdir is mounted with 'noexec'

If the temporary directory for images is mounted with 'noexec', dracut
would construct unbootable images because most dynamic libraries
aren't installed. Avoid this by not resolving library dependencies
lazily if the temporary directory is mounted with 'noexec'.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
5 years agostratis module: fix start order
Alexander Miroshnichenko [Mon, 24 Feb 2020 15:14:26 +0000 (18:14 +0300)] 
stratis module: fix start order

Change start script order to pre-mount as stratis require fully initialized udev.

5 years agofcoe/fcoe-genrules.sh: use $name instead of $env{INTERFACE}
Frantisek Sumsal [Fri, 28 Feb 2020 15:43:14 +0000 (16:43 +0100)] 
fcoe/fcoe-genrules.sh: use $name instead of $env{INTERFACE}

Followup to a8ba1c4e25051c3c482bb7a6a754c9d785463917 and
11a5501d0f844b9e52f2f1b62d980b733c73f10a

5 years agogithub: fetch git tags before testing
Frantisek Sumsal [Fri, 28 Feb 2020 17:07:12 +0000 (18:07 +0100)] 
github: fetch git tags before testing

GitHub workflows fetch a clone of the dracut repository which doesn't
contain git tags, thus "breaking" the RPM build in certain situations
i.e.:
DRACUT_MAIN_VERSION in Makefile is defined as an output of `git describe`,
which in full git clone returns a tag with a numeric version. However,
without tags it returns SHA of the last commit, which later propagates into
`Provides:` attribute of the built RPM and can break dependency tree when
installed

5 years agocms/cmssetup.sh: use $name instead of $env{INTERFACE}
Frantisek Sumsal [Fri, 28 Feb 2020 13:58:59 +0000 (14:58 +0100)] 
cms/cmssetup.sh: use $name instead of $env{INTERFACE}

Followup to a8ba1c4e25051c3c482bb7a6a754c9d785463917

5 years agotest: build docs when running TEST-99-RPM
Frantisek Sumsal [Fri, 28 Feb 2020 14:49:37 +0000 (15:49 +0100)] 
test: build docs when running TEST-99-RPM

5 years agogithub: add TEST-99 to the workflow
Frantisek Sumsal [Fri, 28 Feb 2020 14:18:18 +0000 (15:18 +0100)] 
github: add TEST-99 to the workflow

5 years agoTEST-99-RPM: ignore weak dependencies in dnf
Frantisek Sumsal [Mon, 24 Feb 2020 21:10:58 +0000 (22:10 +0100)] 
TEST-99-RPM: ignore weak dependencies in dnf

Weak dependencies are useless for this test and pollute the chroot,
causing unexpected fails.

5 years agoMakefile: fix RPM build
Frantisek Sumsal [Mon, 24 Feb 2020 20:56:37 +0000 (21:56 +0100)] 
Makefile: fix RPM build

`make rpm` usually chose `/tmp` as the `$rpmbuild` dir, which breaks the
dracut build, since it needs to execute `./configure`, but `/tmp` is
mounted with `-o noexec`, leading to:

```
/var/tmp/rpm-tmp.SwEhJO: line 46: ./configure: Permission denied
error: Bad exit status from /var/tmp/rpm-tmp.SwEhJO (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.SwEhJO (%build)
```

Switching to `/var/tmp` helps in this case.

5 years agoTEST-12-RAID-DEG: harden test
Harald Hoyer [Fri, 28 Feb 2020 13:40:14 +0000 (14:40 +0100)] 
TEST-12-RAID-DEG: harden test

use whole sda as marker disk and clear it completly between test runs

5 years agotest: use dd to write status to marker disk
Harald Hoyer [Fri, 28 Feb 2020 12:39:05 +0000 (13:39 +0100)] 
test: use dd to write status to marker disk

5 years agofedora-test.sh: set logtee timeout to 5 minutes
Harald Hoyer [Fri, 28 Feb 2020 12:12:25 +0000 (13:12 +0100)] 
fedora-test.sh: set logtee timeout to 5 minutes

5 years agofedora-test.sh / fedora-test-github.sh: don't build the documentation
Harald Hoyer [Fri, 28 Feb 2020 11:52:03 +0000 (12:52 +0100)] 
fedora-test.sh / fedora-test-github.sh: don't build the documentation

don't build the documentation, if running a test

5 years agoDisable NetworkManager tests for Fedora 30
Harald Hoyer [Fri, 28 Feb 2020 11:51:16 +0000 (12:51 +0100)] 
Disable NetworkManager tests for Fedora 30

5 years ago.travis.yml: add note about test container
Harald Hoyer [Fri, 28 Feb 2020 10:59:51 +0000 (11:59 +0100)] 
.travis.yml: add note about test container

5 years agotestsuite: refactor qemu options
Harald Hoyer [Fri, 28 Feb 2020 07:52:59 +0000 (08:52 +0100)] 
testsuite: refactor qemu options

- refactor common qemu options
- fix the ens[0-9] interface shift
- add split network-[legacy|network] tests

5 years agoRevert "test: run-qemu refactor common qemu parameters"
Harald Hoyer [Fri, 28 Feb 2020 07:51:36 +0000 (08:51 +0100)] 
Revert "test: run-qemu refactor common qemu parameters"

This reverts commit 77537bf2d7ff7b37b1013a2b2eb1ef8cd6a247d7.

Sorry, for the noise!

5 years agoRevert "test/run-qemu: add "-serial stdio""
Harald Hoyer [Fri, 28 Feb 2020 07:51:31 +0000 (08:51 +0100)] 
Revert "test/run-qemu: add "-serial stdio""

This reverts commit c6c588d64866579267600f73c5de5b15d44ea807.

5 years agotest/run-qemu: add "-serial stdio"
Harald Hoyer [Fri, 28 Feb 2020 07:47:52 +0000 (08:47 +0100)] 
test/run-qemu: add "-serial stdio"

5 years agotest: run-qemu refactor common qemu parameters
Harald Hoyer [Fri, 28 Feb 2020 07:39:31 +0000 (08:39 +0100)] 
test: run-qemu refactor common qemu parameters

5 years agoTEST-40-NBD: disable again
Harald Hoyer [Thu, 27 Feb 2020 15:44:28 +0000 (16:44 +0100)] 
TEST-40-NBD: disable again

NBD is still too flaky and hangs hard sometimes

5 years agoTEST-04-FULL-SYSTEMD: more info on failure
Harald Hoyer [Thu, 27 Feb 2020 15:42:21 +0000 (16:42 +0100)] 
TEST-04-FULL-SYSTEMD: more info on failure

5 years agotest/test-functions: colorize startup
Harald Hoyer [Thu, 27 Feb 2020 15:17:23 +0000 (16:17 +0100)] 
test/test-functions: colorize startup

5 years ago.travis.yml: fix docker pull
Harald Hoyer [Thu, 27 Feb 2020 14:51:12 +0000 (15:51 +0100)] 
.travis.yml: fix docker pull

5 years agotest/TEST-40-NBD/test.sh: bail out early if mount fails
Harald Hoyer [Thu, 27 Feb 2020 14:26:44 +0000 (15:26 +0100)] 
test/TEST-40-NBD/test.sh: bail out early if mount fails

5 years agonbd/parse-nbdroot.sh: don't create mount unit
Harald Hoyer [Thu, 27 Feb 2020 14:24:29 +0000 (15:24 +0100)] 
nbd/parse-nbdroot.sh: don't create mount unit

let the generator do its thing

5 years agotest: remove "sudo" calls in test scripts
Harald Hoyer [Thu, 27 Feb 2020 13:25:01 +0000 (14:25 +0100)] 
test: remove "sudo" calls in test scripts

5 years agotest: do btrfs filesystem sync in create-root.sh
Harald Hoyer [Thu, 27 Feb 2020 13:24:38 +0000 (14:24 +0100)] 
test: do btrfs filesystem sync in create-root.sh

5 years agoTEST-40-NBD: run the working tests
Harald Hoyer [Thu, 27 Feb 2020 12:38:02 +0000 (13:38 +0100)] 
TEST-40-NBD: run the working tests

5 years agoTEST-03-USR-MOUNT: more debugging
Harald Hoyer [Wed, 26 Feb 2020 16:09:23 +0000 (17:09 +0100)] 
TEST-03-USR-MOUNT: more debugging

5 years agoTEST-04-FULL-SYSTEMD: report failure on rootfs creation
Harald Hoyer [Wed, 26 Feb 2020 16:05:11 +0000 (17:05 +0100)] 
TEST-04-FULL-SYSTEMD: report failure on rootfs creation

5 years agoTEST-20-NFS/test.sh TEST-30-ISCSI/test.sh reduce debug output
Harald Hoyer [Wed, 26 Feb 2020 14:17:07 +0000 (15:17 +0100)] 
TEST-20-NFS/test.sh TEST-30-ISCSI/test.sh reduce debug output

5 years agotest/TEST-60-IFCFG/test.sh: fixed qemu hubport netifs
Harald Hoyer [Wed, 26 Feb 2020 13:45:55 +0000 (14:45 +0100)] 
test/TEST-60-IFCFG/test.sh: fixed qemu hubport netifs

netifs are offset by one if qemu hubport is used

5 years agotests: untabify, reformat
Harald Hoyer [Wed, 26 Feb 2020 11:00:35 +0000 (12:00 +0100)] 
tests: untabify, reformat

5 years agotest: fix server init scripts for network
Harald Hoyer [Wed, 26 Feb 2020 08:17:34 +0000 (09:17 +0100)] 
test: fix server init scripts for network

5 years agoAdd github workflow
Harald Hoyer [Tue, 25 Feb 2020 13:08:10 +0000 (14:08 +0100)] 
Add github workflow

5 years agoadd DRACUT_NO_XATTR global environment variable
Harald Hoyer [Thu, 27 Feb 2020 12:21:06 +0000 (13:21 +0100)] 
add DRACUT_NO_XATTR global environment variable

Useful, if you know, that those can't be copied anyway.

5 years agonetwork-legacy/net-genrules.sh: use $name instead of $env{INTERFACE}
Harald Hoyer [Wed, 26 Feb 2020 15:53:47 +0000 (16:53 +0100)] 
network-legacy/net-genrules.sh: use $name instead of $env{INTERFACE}

The original behavior of $env{INTERFACE} was undocumented and changed in
the recent udev versions, breaking the ability to bring up networking
reliably. Switching to $name directive should fix this issue.

Related links:
 - systemd/systemd#12700 (udev PR)
 - systemd/systemd#12291 (related udev issue)
 - systemd/systemd#14935 (this issue, udev side)
 - #732 (this issue, dracut side)

Fixes: #732
5 years agonetwork-legacy/ifup: fix ip=dhcp,dhcp6 setup_net logic
Jonathan Lebon [Wed, 19 Feb 2020 15:44:24 +0000 (10:44 -0500)] 
network-legacy/ifup: fix ip=dhcp,dhcp6 setup_net logic

Previously, we were doing `setup_net` from `ifup` for any setup that
wasn't DHCP, since those are already taken care of by `dhclient-script`.

The issue is that the case-statement we use to detect this doesn't catch
options like `ip=dhcp,dhcp6`.

Fix this by reworking the logic here to just check if a
`setup_net_$netif.sh` hook exists. If so, then we know that `setup_net`
will be called for this interface later.

This was causing issues in RHCOS which now ships with `ip=dhcp,dhcp6` to
support IPv6 environments[1]. The code here would make us do `setup_net`
pre-emptively which IIUC would then cause the initqueue to finish
earlier even if we had more udev netif events to process.

[1] https://github.com/coreos/coreos-assembler/pull/1067

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1803926

5 years agonetwork-legacy/ifup: drop redundant if-statement
Jonathan Lebon [Wed, 19 Feb 2020 16:11:32 +0000 (11:11 -0500)] 
network-legacy/ifup: drop redundant if-statement

No need to check that `$ret` is 0, we're already running inside an
if-statement block which checks this.

5 years agoRevert "github workflow"
Harald Hoyer [Tue, 25 Feb 2020 13:06:36 +0000 (14:06 +0100)] 
Revert "github workflow"

This reverts commit 150cea0336e2edf04450d0477895821c2d531c1f.

5 years agogithub workflow
Harald Hoyer [Tue, 25 Feb 2020 13:01:13 +0000 (14:01 +0100)] 
github workflow

5 years agoSupport the EFI Stub loader's splash image feature.
Donovan Tremura [Sat, 15 Feb 2020 05:18:19 +0000 (05:18 +0000)] 
Support the EFI Stub loader's splash image feature.

Checks if `uefi_splash_image` exists in `dracutsysroot` if not unset
`uefi_splash_image`. Alternate Value parameter expansion adds section-vma
for splash image to EFI stub loader when the path to image is valid and
not an empty file.

I did not test on other distributions, but on Arch Linux the `systemd`
package includes a splash image at the path
`/usr/share/systemd/bootctl/splash-arch.bmp`. Perhaps, if this is a
common practice, a default image could be gathered from that directory.

It is required that the image be in bitmap (`.bmp`) format according to
`splash.c`.

The code for `stub.c` and `splash.c` can be found at:
https://github.com/systemd/systemd/blob/master/src/boot/efi/stub.c
https://github.com/systemd/systemd/blob/master/src/boot/efi/splash.c

5 years agosystemd: install systemd-tty-ask-password-agent systemd-ask-password
Harald Hoyer [Tue, 18 Feb 2020 14:32:24 +0000 (15:32 +0100)] 
systemd: install systemd-tty-ask-password-agent systemd-ask-password

fixes https://github.com/dracutdevs/dracut/issues/726

5 years agonetwork/net-lib.sh: Configure all iBFT interfaces
Eugene S. Sobolev [Fri, 14 Feb 2020 08:49:06 +0000 (11:49 +0300)] 
network/net-lib.sh: Configure all iBFT interfaces

Added boolean command line option rd.iscsi.mp

5 years agodracut.sh: added help for --regenerate-all
Renaud Métrich [Thu, 13 Feb 2020 10:37:13 +0000 (11:37 +0100)] 
dracut.sh: added help for --regenerate-all

5 years agoRevert "wait for IPv6 RA if using none/static IPv6 assignment"
Lukas Nykryn [Tue, 4 Feb 2020 13:18:01 +0000 (14:18 +0100)] 
Revert "wait for IPv6 RA if using none/static IPv6 assignment"

This reverts commit c603419030136570b5944dc4620f62d07b9e82bb.

wait_for_ipv6_dad_link is only called from dhclient script,
so the original intent "wait for IPv6 RA if using none/static IPv6 assignment"
does not seem to be correct.

Anyway, this brings an issue on isolated networks, where you don't
have any routes outside. dhclient-script hangs on this check
and after it times out, dhclient is able to set the address normally.

5 years agodhclient-script: ipv6 uses different variables for nameservers
Lukas Nykryn [Tue, 11 Feb 2020 13:14:20 +0000 (14:14 +0100)] 
dhclient-script: ipv6 uses different variables for nameservers

new_domain_name_servers and new_domain_search is only provided vit IPv4

see: https://src.fedoraproject.org/rpms/dhcp/blob/HEAD/f/dhclient-script#_148

5 years ago40network: bump rd.net.timeout.carrier to 10 seconds
Lukas Nykryn [Mon, 10 Feb 2020 13:03:30 +0000 (14:03 +0100)] 
40network: bump rd.net.timeout.carrier to 10 seconds

On some devices kernel currently takes 5.2 seconds to detect carrier,
so let's make the default in dracut bit more sensible.

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

5 years agodracut.sh: check kmoddir is properly formed
Daniel Cordero [Fri, 24 Jan 2020 16:14:25 +0000 (16:14 +0000)] 
dracut.sh: check kmoddir is properly formed

Due to the way dracut-install handles modules from custom kmoddirs, add
a test that ensures the kmoddir argument seems sane.

In addition to erroring out, provide some guidance on how to proceed, as
well as a method of skipping the test via environment variable.

5 years agodracut-install: fetch kernel modules from kmoddir
Daniel Cordero [Tue, 21 Jan 2020 18:43:59 +0000 (18:43 +0000)] 
dracut-install: fetch kernel modules from kmoddir

dracut, when passing --kmoddir, would only install modules that exist at
the same location as it will appear in the initramfs.

For most (possibly all) outputs, the output path would be /lib/modules,
so previously all kernel modules must be copied there or the module
installation silently fails.

Now use the original path variable, and install to the shortened path
variable (as calculated by kerneldirlen).

Note: This means that the argument to --kmoddir (and the modules filetree)
should be a directory that ends in 'lib/modules/$kernelversion'.