]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
5 years agodracut.spec: fixed invalid spec line
Harald Hoyer [Fri, 21 Sep 2018 10:41:00 +0000 (12:41 +0200)] 
dracut.spec: fixed invalid spec line

5 years agonetwork-manager: add module
Lubomir Rintel [Thu, 30 Aug 2018 14:44:22 +0000 (16:44 +0200)] 
network-manager: add module

5 years agonetwork-legacy: split off from network module
Lubomir Rintel [Thu, 30 Aug 2018 14:44:22 +0000 (16:44 +0200)] 
network-legacy: split off from network module

5 years agonetwork: fix an error message
Lubomir Rintel [Fri, 31 Aug 2018 14:51:38 +0000 (16:51 +0200)] 
network: fix an error message

5 years agoiscsi: start iscsid even w/o systemd
Lubomir Rintel [Thu, 30 Aug 2018 16:41:37 +0000 (18:41 +0200)] 
iscsi: start iscsid even w/o systemd

5 years agoiscsi: do not install all of /etc/iscsi unless hostonly
Lubomir Rintel [Thu, 30 Aug 2018 16:38:34 +0000 (18:38 +0200)] 
iscsi: do not install all of /etc/iscsi unless hostonly

/etc/iscsi/initiatorname.iscsi would leak the host initiator name (that
is host configuration) to the initramfs. Perhaps other files too.

5 years agoiscsi: do not replace the configuration in the host system
Lubomir Rintel [Thu, 30 Aug 2018 14:21:17 +0000 (16:21 +0200)] 
iscsi: do not replace the configuration in the host system

  ln: failed to create symbolic link '/usr/lib/systemd/system/sockets.target.wants/iscsid.socket': Permission denied
  ln: failed to create symbolic link '/usr/lib/systemd/system/sockets.target.wants/iscsiuio.socket': Permission denied

No way. Just ensure the links are there in the initramfs image. In fact,
that is already the case for iscsiuio.socket. Add iscsid.socket too.

5 years agonetwork: configure NetworkManager to use dhclient
Lubomir Rintel [Tue, 18 Sep 2018 09:17:54 +0000 (11:17 +0200)] 
network: configure NetworkManager to use dhclient

If the network module obtained a lease using dhclient, NetworkManager
must be configured to use it too, otherwise it would obtain a different
lease (and could potentially break a connection to the network volume).

5 years agodracut.spec: Add dracut-squash package
Kairui Song [Thu, 20 Sep 2018 09:23:19 +0000 (17:23 +0800)] 
dracut.spec: Add dracut-squash package

As 99squash module requires extra dependency and it introduces new
files, add a new sub package for this module.

5 years agoAdd support for building a squashed initramfs
Kairui Song [Tue, 11 Sep 2018 11:32:24 +0000 (19:32 +0800)] 
Add support for building a squashed initramfs

With all files stored in ramfs, and most of them are not compressed,
the initramfs will take up a lot of memory. Besides, if the file number
is large, each file will waste some memory due to page fragmetation.
This is due to ramfs' design, at least one page will be allocated for
one file however small the file is. On machine with large page size,
this will become worse and waste too many memory.

One approach to reducing the memory usage is to reduce the number of
files that got directly loaded into the root ramfs, and compress files
by put most files will into a read-only squash image and keep a minimum
set of executable and libraries outside as the loader for the squash
image. After the squash image is mounted, the real 'init' will be
executed and then everything behaves as usual.

This patch will introduce a '99squash' module which will never be
included by default. User can force add it, and if it is included,
dracut will perform some extra steps before creating the final image:

For now, "/etc" and "/usr" will be moved into the squashfs image.
"/init" will be renamed to "/init.stock" and replaced by "/init.squash".
Files and folders need to be accessible before mounting the image will
be still avaliable at their original place. And due to squashfs is
readonly, an overlayfs layer will be created on top of squashfs mount
point, as many dracut module require readwrite access to "/etc" and
"/usr", "init.squash" will ultimately call "/init.stock".

An extra systemd service will be installed. This service will umount all
squashfs related mount points right before switch-root to release
resources properly. This service will not actually do anything if
switch-root is not used.

This is very helpful when mem resource is very limited, like Kdump.
According to my tests, this squash module can help save about 35MB of
memory with 64K page size, or about 15MB with 4K page size on an
ordinary kdump capture routine. This module could also help reduce
memory usage for normal boot up process.

Won't change any behavior if squash module is not enabled.

Signed-off-by: Kairui Song <kasong@redhat.com>
5 years agobase/dracut-lib.sh: use "command -v" in pidof()
Alexander Tsoy [Sun, 9 Sep 2018 10:57:33 +0000 (13:57 +0300)] 
base/dracut-lib.sh: use "command -v" in pidof()

"type -P" doesn't work in dash

5 years agoinstall: avoid non-portable __WORDSIZE
Alexander Tsoy [Sat, 8 Sep 2018 23:47:09 +0000 (02:47 +0300)] 
install: avoid non-portable __WORDSIZE

Lets not unnecessarily rely on __WORDSIZE, which is not clearly specified
by any spec. Use explicit size comparisons if we're not interested in the
WORDSIZE, anyway.

Patch ported from systemd.
(commit 8507eb20b64010b26f23822cbf442bb0bf96511c)

Original-patch-by: Emil Renner Berthing <systemd@esmil.dk>
Bug: https://bugs.gentoo.org/602122

5 years agoPrevent environment leaking into initrd-release
Alexander Tsoy [Sat, 8 Sep 2018 14:02:03 +0000 (17:02 +0300)] 
Prevent environment leaking into initrd-release

On my system the following initrd-release is generated:
...
VERSION="4 dracut-048 dracut-048"
...

VERSION is not defined in /etc/os-release, so the variable is
concatenated with its previous value:

* "4" comes from the kernel build system since dracut is called from the
  kernel install hook ("4" is a major kernel version);
* first "dracut-048" comes from the "systemd-initrd" module;
* second "dracut-048" comes from the "base" module.

5 years agodmsquash-live/apply-live-updates: Test proper file link.
Frederick Grose [Mon, 3 Sep 2018 23:41:58 +0000 (19:41 -0400)] 
dmsquash-live/apply-live-updates: Test proper file link.

Update flag link to /dev/root as required by commit
789668deb3e6f8584ffab964d2204ddcb75f0a06.

5 years agodmsquash-live-root: Manage absent overlayfs module better.
Frederick Grose [Mon, 3 Sep 2018 23:02:23 +0000 (19:02 -0400)] 
dmsquash-live-root: Manage absent overlayfs module better.

die when required; systemctl reload otherwise.

5 years agodmsquash-live: Avoid grep and sed in this module.
Frederick Grose [Mon, 3 Sep 2018 21:01:53 +0000 (17:01 -0400)] 
dmsquash-live: Avoid grep and sed in this module.

strstr and variable string manipulations suffice.

5 years ago98dracut-systemd: Start systemd-vconsole-setup before dracut-cmdline-ask
Daniel Molkentin [Wed, 5 Sep 2018 10:06:06 +0000 (12:06 +0200)] 
98dracut-systemd: Start systemd-vconsole-setup before dracut-cmdline-ask

This is what happened before this patch (edited for brevity):

  dracut-cmdline-ask.service in modules.d/98dracut-systemd, which invokes
  dracut-cmdline-ask.sh. This script and systemd-vconsole-setup are
  started in parallel for the same console (tty1).

  Then dracut-cmdline-ask quits immediately without doing anything (unless
  rd.cmdline=ask is given). As this is a bash script and it gets tty as
  stdin as specified in its *.service, this triggers the hangup of tty1 at
  its exit.

  Meanwhile systemd-vconsole-setup continues and tries some ioctls after
  that, but they fail because of the hung up tty1.

The usual culprit for starting systemd-vconsole-setup early on is
plymouth-start.service, even if plymouth.enable=0 is set.

A popular (and annoying) symptom of this as reported by users was
the inability use their configured keyboard layout in plymouth when
unlocking their crypted block devices.

Reference: boo#1055834

5 years agoFix misspellings in man pages and usage
Tobias Klauser [Wed, 29 Aug 2018 09:53:14 +0000 (11:53 +0200)] 
Fix misspellings in man pages and usage

Also remove some trailing whitespaces from the same files.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
5 years agostratis: Add additional binaries
Tony Asleson [Thu, 23 Aug 2018 20:08:59 +0000 (15:08 -0500)] 
stratis: Add additional binaries

Include all binaries that could be called by the daemon.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
5 years agokernel-modules: add nfit
Kairui Song [Mon, 20 Aug 2018 10:40:05 +0000 (18:40 +0800)] 
kernel-modules: add nfit

To support pmem devices, nfit module is required

5 years ago99base: enable initqueue if extra devices are added
Kairui Song [Mon, 20 Aug 2018 10:43:19 +0000 (18:43 +0800)] 
99base: enable initqueue if extra devices are added

When extra devices are added, initqueue should be enabled to make sure
those devices are present, so following services and routines could
use those devices.

See PR #442 for more detail.

5 years agodmsquash-live, livenet: Simplify OverlayFS read-only overlay setup.
Frederick Grose [Mon, 20 Aug 2018 23:52:53 +0000 (19:52 -0400)] 
dmsquash-live, livenet: Simplify OverlayFS read-only overlay setup.

Use multiple lower layer directories in a single OverlayFS mount with
  a transient overlay directory.
Tolerate a command line with rd.live.overlay.readonly and NO persistent
  overlay by reconfiguring the OverlayFS mount options.
Use more compatible shell syntax for testing symlinks, and use printf
  instead of echo -e.

5 years agodmsquash-live: Support a flattened squashfs.img
Frederick Grose [Mon, 20 Aug 2018 13:47:50 +0000 (09:47 -0400)] 
dmsquash-live: Support a flattened squashfs.img

A simplified root filesystem structure may be provided for OverlayFS
overlays by squashing the root filesystem directly instead of squashing
an embedded image file at /LiveOS/rootfs.img.  Detect and configure
such a squashed root filesystem for live booting.

For OverlayFS boots, avoid the read-only Device-mapper linear device
  at /dev/mapper/live-base.
Create a consistent device link at /dev/live-base for the read-only
  base loop device for all overlayed live root filesystems.
Consistently provide a link at /dev/root for wait_for_dev.

Update documentation.

5 years agolivenet: Enable OverlayFS overlay in sysroot.mount generator.
Frederick Grose [Wed, 1 Aug 2018 22:40:20 +0000 (18:40 -0400)] 
livenet: Enable OverlayFS overlay in sysroot.mount generator.

Adjust sysroot.mount configuration for rd.live.overlay.overlayfs option.
Use link at /dev/root as a consistent flag for wait_for_dev.
Adjust documentation.

5 years agotravis: re-enable test 14
Harald Hoyer [Mon, 20 Aug 2018 08:04:52 +0000 (10:04 +0200)] 
travis: re-enable test 14

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

5 years agoifcfg/write-ifcfg.sh: aggregate resolv.conf
Harald Hoyer [Fri, 17 Aug 2018 10:50:29 +0000 (12:50 +0200)] 
ifcfg/write-ifcfg.sh: aggregate resolv.conf

The old code used /tmp/net.$netif.resolv.conf with $netif being randomly
chosen.

As it is not known which nameserver have which priority, just sort them
and deduplicate.

5 years agotest/test-functions: fixed V=1 logic
Harald Hoyer [Fri, 17 Aug 2018 13:38:03 +0000 (15:38 +0200)] 
test/test-functions: fixed V=1 logic

5 years agotravis: one last job reshuffle
Harald Hoyer [Thu, 16 Aug 2018 13:28:04 +0000 (15:28 +0200)] 
travis: one last job reshuffle

5 years agotravis: reshuffle tests
Harald Hoyer [Thu, 16 Aug 2018 12:48:21 +0000 (14:48 +0200)] 
travis: reshuffle tests

long running tests first

5 years agotravis: modprobe amd nested=1
Harald Hoyer [Thu, 16 Aug 2018 12:28:54 +0000 (14:28 +0200)] 
travis: modprobe amd nested=1

GREAT!

$ modinfo kvm-intel kvm-amd| fgrep nested
parm:           nested:bool
parm:           nested:int

5 years agotravis: rebalance tests
Harald Hoyer [Thu, 16 Aug 2018 12:25:23 +0000 (14:25 +0200)] 
travis: rebalance tests

5 years agotravis: reshuffle tests
Harald Hoyer [Thu, 16 Aug 2018 11:56:19 +0000 (13:56 +0200)] 
travis: reshuffle tests

5 years agoTEST-99-RPM: use releasever of the host system
Harald Hoyer [Thu, 16 Aug 2018 11:20:40 +0000 (13:20 +0200)] 
TEST-99-RPM: use releasever of the host system

5 years agoTEST-15-BTRFSRAID: use seperate disk image for boot result
Harald Hoyer [Thu, 16 Aug 2018 11:05:42 +0000 (13:05 +0200)] 
TEST-15-BTRFSRAID: use seperate disk image for boot result

5 years agoTEST-99-RPM: removed --releasever
Harald Hoyer [Thu, 16 Aug 2018 10:03:40 +0000 (12:03 +0200)] 
TEST-99-RPM: removed --releasever

5 years agoTEST-15-BTRFSRAID: sync in test-init
Harald Hoyer [Thu, 16 Aug 2018 09:59:09 +0000 (11:59 +0200)] 
TEST-15-BTRFSRAID: sync in test-init

strange failure

5 years agotravis: no rpm check for all matrix tests
Harald Hoyer [Thu, 16 Aug 2018 09:57:30 +0000 (11:57 +0200)] 
travis: no rpm check for all matrix tests

5 years agotest: for V=2 tail only the last MB of logs
Harald Hoyer [Thu, 16 Aug 2018 09:47:21 +0000 (11:47 +0200)] 
test: for V=2 tail only the last MB of logs

5 years agotravis: combine more tests
Harald Hoyer [Thu, 16 Aug 2018 09:15:16 +0000 (11:15 +0200)] 
travis: combine more tests

5 years agologtee: reduce output
Harald Hoyer [Thu, 16 Aug 2018 09:14:11 +0000 (11:14 +0200)] 
logtee: reduce output

5 years agotest: fixed test.log name
Harald Hoyer [Thu, 16 Aug 2018 09:13:55 +0000 (11:13 +0200)] 
test: fixed test.log name

5 years agotravis: git pull more depth
Harald Hoyer [Thu, 16 Aug 2018 08:46:57 +0000 (10:46 +0200)] 
travis: git pull more depth

5 years agotravis: git pull --tags
Harald Hoyer [Thu, 16 Aug 2018 08:39:49 +0000 (10:39 +0200)] 
travis: git pull --tags

5 years agotravis: fight with yaml
Harald Hoyer [Thu, 16 Aug 2018 08:36:17 +0000 (10:36 +0200)] 
travis: fight with yaml

5 years agotravis: fixup
Harald Hoyer [Thu, 16 Aug 2018 08:33:06 +0000 (10:33 +0200)] 
travis: fixup

5 years agotravis: git check
Harald Hoyer [Thu, 16 Aug 2018 08:29:16 +0000 (10:29 +0200)] 
travis: git check

5 years agotravis: use own logtee.c to reduce log output
Harald Hoyer [Thu, 16 Aug 2018 08:16:52 +0000 (10:16 +0200)] 
travis: use own logtee.c to reduce log output

5 years agoTEST-01: remove memdebug
Harald Hoyer [Thu, 16 Aug 2018 07:50:52 +0000 (09:50 +0200)] 
TEST-01: remove memdebug

5 years agotravis: fedora-test.sh send dnf output to dev/null
Harald Hoyer [Thu, 16 Aug 2018 07:48:02 +0000 (09:48 +0200)] 
travis: fedora-test.sh send dnf output to dev/null

5 years agotravis: don't run TEST-40-NBD
Harald Hoyer [Thu, 16 Aug 2018 07:35:33 +0000 (09:35 +0200)] 
travis: don't run TEST-40-NBD

5 years agotravis: combine more tests
Harald Hoyer [Thu, 16 Aug 2018 07:26:35 +0000 (09:26 +0200)] 
travis: combine more tests

5 years agodracut.sh: remove bogus dir removal for --rebuild
Harald Hoyer [Thu, 16 Aug 2018 07:19:52 +0000 (09:19 +0200)] 
dracut.sh: remove bogus dir removal for --rebuild

5 years agotravis: combine jobs
Harald Hoyer [Thu, 16 Aug 2018 07:10:29 +0000 (09:10 +0200)] 
travis: combine jobs

5 years agotravis: extend matrix
Harald Hoyer [Thu, 16 Aug 2018 06:50:11 +0000 (08:50 +0200)] 
travis: extend matrix

5 years ago.travis.yml: add gitter notifications
Harald Hoyer [Tue, 14 Aug 2018 15:06:58 +0000 (17:06 +0200)] 
.travis.yml: add gitter notifications

5 years agofedora-test.sh: don't parallelize travis tests
Harald Hoyer [Tue, 14 Aug 2018 15:02:14 +0000 (17:02 +0200)] 
fedora-test.sh: don't parallelize travis tests

5 years agoUpdate README.md
Harald Hoyer [Tue, 14 Aug 2018 14:58:52 +0000 (16:58 +0200)] 
Update README.md

5 years agotest/test-functions: be verbose for any $V not empty
Harald Hoyer [Tue, 14 Aug 2018 14:54:27 +0000 (16:54 +0200)] 
test/test-functions: be verbose for any $V not empty

5 years agoTEST-50-MULTINIC: removed bogus qemu compat server call
Harald Hoyer [Tue, 14 Aug 2018 14:37:01 +0000 (16:37 +0200)] 
TEST-50-MULTINIC: removed bogus qemu compat server call

5 years agotest/run-qemu: move -cpu host to kvm args
Harald Hoyer [Tue, 14 Aug 2018 14:31:00 +0000 (16:31 +0200)] 
test/run-qemu: move -cpu host to kvm args

5 years agoTEST-50-MULTINIC: fixed server.log
Harald Hoyer [Tue, 14 Aug 2018 14:30:42 +0000 (16:30 +0200)] 
TEST-50-MULTINIC: fixed server.log

5 years agomight even run without kvm
Harald Hoyer [Tue, 14 Aug 2018 14:18:53 +0000 (16:18 +0200)] 
might even run without kvm

5 years agoadd travis build job
Harald Hoyer [Tue, 14 Aug 2018 14:01:39 +0000 (16:01 +0200)] 
add travis build job

5 years agoTEST-31-ISCSI-MULTI: increase verbose level
Harald Hoyer [Tue, 14 Aug 2018 13:54:42 +0000 (15:54 +0200)] 
TEST-31-ISCSI-MULTI: increase verbose level

5 years agotest: add TEST_RUN_ID
Harald Hoyer [Tue, 14 Aug 2018 13:42:21 +0000 (15:42 +0200)] 
test: add TEST_RUN_ID

5 years agoTEST-31-ISCSI-MULTI/test.sh: fixed test description
Harald Hoyer [Tue, 14 Aug 2018 13:28:56 +0000 (15:28 +0200)] 
TEST-31-ISCSI-MULTI/test.sh: fixed test description

5 years agoTEST-50-MULTINIC/test.sh: fixed server startup
Harald Hoyer [Tue, 14 Aug 2018 12:12:54 +0000 (14:12 +0200)] 
TEST-50-MULTINIC/test.sh: fixed server startup

5 years agokernel-network-modules: add vlan kernel modules
Harald Hoyer [Tue, 14 Aug 2018 12:07:12 +0000 (14:07 +0200)] 
kernel-network-modules: add vlan kernel modules

5 years agotest: fixed KVERSION and qemu backwards compatiblity
Harald Hoyer [Tue, 14 Aug 2018 11:58:21 +0000 (13:58 +0200)] 
test: fixed KVERSION and qemu backwards compatiblity

5 years agoTEST-70-BONDBRIDGETEAMVLAN: load vlan kernel modules
Harald Hoyer [Tue, 14 Aug 2018 11:57:15 +0000 (13:57 +0200)] 
TEST-70-BONDBRIDGETEAMVLAN: load vlan kernel modules

5 years agotest: also output server.log on failure
Harald Hoyer [Tue, 14 Aug 2018 09:37:57 +0000 (11:37 +0200)] 
test: also output server.log on failure

5 years agoTEST-50-MULTINIC: s/--device/-device
Harald Hoyer [Tue, 14 Aug 2018 09:35:26 +0000 (11:35 +0200)] 
TEST-50-MULTINIC: s/--device/-device

5 years agoenable parallel test suite
Harald Hoyer [Tue, 14 Aug 2018 09:04:17 +0000 (11:04 +0200)] 
enable parallel test suite

$ time sudo make -j SKIP=14 V=2 check
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-13-ENC-RAID-LVM'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-40-NBD'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-04-FULL-SYSTEMD'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-12-RAID-DEG'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-15-BTRFSRAID'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-16-DMSQUASH'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-17-LVM-THIN'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-11-LVM'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-31-ISCSI-MULTI'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-20-NFS'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-99-RPM'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-02-SYSTEMD'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-30-ISCSI'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-01-BASIC'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-03-USR-MOUNT'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-70-BONDBRIDGETEAMVLAN'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-50-MULTINIC'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-10-RAID'
make[1]: Entering directory '/home/harald/git/dracut/test/TEST-18-LVM-ENC-LV'
TEST: root filesystem on an encrypted LVM PV on a degraded RAID-5 [STARTED]
TEST: root filesystem on NBD [STARTED]
TEST: root filesystem on NBD [SKIPPED]
TEST: Full systemd serialization/deserialization test with /usr mount [STARTED]
TEST: root filesystem on multiple device btrfs [STARTED]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-40-NBD'
TEST: root filesystem on a LiveCD dmsquash filesystem [STARTED]
TEST: root filesystem on a LiveCD dmsquash filesystem [SKIPPED]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-16-DMSQUASH'
TEST: root filesystem on LVM on encrypted partitions of a RAID-5 [STARTED]
TEST: root filesystem on LVM PV [STARTED]
TEST: rpm integrity after dracut and kernel install [STARTED]
TEST: root filesystem on NFS [STARTED]
TEST: root filesystem over iSCSI [STARTED]
TEST: root filesystem on LVM PV with thin pool [STARTED]
TEST: root filesystem over iSCSI [STARTED]
TEST: root filesystem on a ext3 filesystem [STARTED]
TEST: root filesystem on a ext3 filesystem [STARTED]
TEST: root filesystem on a btrfs filesystem with /usr subvolume [STARTED]
TEST: root filesystem on NFS with bridging/bonding/vlan [STARTED]
TEST: root filesystem on NFS with multiple nics [STARTED]
TEST: root filesystem on an encrypted LVM PV on a RAID-5 [STARTED]
TEST: root filesystem on LVM on encrypted partitions of a RAID-5 [STARTED]
TEST: root filesystem on LVM PV [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-11-LVM'
TEST: root filesystem on multiple device btrfs [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-15-BTRFSRAID'
TEST: root filesystem on LVM PV with thin pool [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-17-LVM-THIN'
TEST: root filesystem on a ext3 filesystem [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-02-SYSTEMD'
TEST: root filesystem on a btrfs filesystem with /usr subvolume [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-03-USR-MOUNT'
TEST: root filesystem on LVM on encrypted partitions of a RAID-5 [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-18-LVM-ENC-LV'
TEST: Full systemd serialization/deserialization test with /usr mount [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-04-FULL-SYSTEMD'
TEST: root filesystem on an encrypted LVM PV on a RAID-5 [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-10-RAID'
TEST: root filesystem on LVM on encrypted partitions of a RAID-5 [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-13-ENC-RAID-LVM'
TEST: root filesystem over iSCSI [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-30-ISCSI'
TEST: root filesystem on a ext3 filesystem [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-01-BASIC'
TEST: root filesystem over iSCSI [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-31-ISCSI-MULTI'
TEST: rpm integrity after dracut and kernel install [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-99-RPM'
TEST: root filesystem on NFS [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-20-NFS'
TEST: root filesystem on NFS with bridging/bonding/vlan [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-70-BONDBRIDGETEAMVLAN'
TEST: root filesystem on an encrypted LVM PV on a degraded RAID-5 [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-12-RAID-DEG'
TEST: root filesystem on NFS with multiple nics [OK]
make[1]: Leaving directory '/home/harald/git/dracut/test/TEST-50-MULTINIC'

real 9m3,969s
user 22m50,323s
sys 5m24,411s

5 years agoTEST-31-ISCSI-MULTI: use different port than TEST-30
Harald Hoyer [Tue, 14 Aug 2018 09:03:48 +0000 (11:03 +0200)] 
TEST-31-ISCSI-MULTI: use different port than TEST-30

5 years agoload modules earlier for iscsi via dhcp root-path
Harald Hoyer [Tue, 14 Aug 2018 09:03:11 +0000 (11:03 +0200)] 
load modules earlier for iscsi via dhcp root-path

5 years agotest/{TEST-50-MULTINIC,TEST-70-BONDBRIDGETEAMVLAN}: use qemu-3.0 syntax
Harald Hoyer [Mon, 13 Aug 2018 14:27:59 +0000 (16:27 +0200)] 
test/{TEST-50-MULTINIC,TEST-70-BONDBRIDGETEAMVLAN}: use qemu-3.0 syntax

use qemu-3.0 syntax for network devices

5 years agomultipath-shutdown: fix shell syntax
Harald Hoyer [Mon, 13 Aug 2018 09:37:44 +0000 (11:37 +0200)] 
multipath-shutdown: fix shell syntax

seems like a misplaced $()

5 years agodracut.spec: remove warpclock from z-series, not the other way round
Harald Hoyer [Mon, 13 Aug 2018 09:30:03 +0000 (11:30 +0200)] 
dracut.spec: remove warpclock from z-series, not the other way round

5 years agoiscsi: remove $() where it does not fit
Harald Hoyer [Mon, 13 Aug 2018 08:56:53 +0000 (10:56 +0200)] 
iscsi: remove $() where it does not fit

also simplify iscsiadm command to one call

5 years agomdraid: better handling of various UUID formats
Harald Hoyer [Mon, 13 Aug 2018 08:01:36 +0000 (10:01 +0200)] 
mdraid: better handling of various UUID formats

5 years agodracut-functions: fix the word splitting
Lukas Nykryn [Thu, 9 Aug 2018 10:14:20 +0000 (12:14 +0200)] 
dracut-functions: fix the word splitting

5 years agoAdd gpio and pinctrl drivers for arm*/aarch64
Nicolas Chauvet [Fri, 3 Aug 2018 21:39:51 +0000 (23:39 +0200)] 
Add gpio and pinctrl drivers for arm*/aarch64

This is needed since few gpio/pinctrl can be built as modules and are
useful on early boot.

One example is jetson-tx1 where sata and external mmc can work only
after loading pinctrl-max77620 and gpio-max77620 modules.

Having theses kind of drivers bundled into the initramfs will also
avoid some deferred probes.

V2: add pinctrl for all arches

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
5 years agomdraid/parse-md.sh: also accept rd.md.uuid with ":"
Harald Hoyer [Thu, 2 Aug 2018 14:32:41 +0000 (16:32 +0200)] 
mdraid/parse-md.sh: also accept rd.md.uuid with ":"

convert rd.md.uuid=32ef2172:f056:6fa7:66a8:2f7fc8b1798
to udev rules in the correct UUID format 32ef2172-f056-6fa7-66a8-2f7fcf8b1798

5 years agospec: sort modules
Yu Watanabe [Sun, 29 Jul 2018 17:26:48 +0000 (02:26 +0900)] 
spec: sort modules

Also drops remaining %defattr.

5 years agospec: warpclock is not available on s390 or s390x
Yu Watanabe [Sun, 29 Jul 2018 17:26:01 +0000 (02:26 +0900)] 
spec: warpclock is not available on s390 or s390x

5 years agodracut.spec: Remove needless use of %defattr
Harald Hoyer [Thu, 26 Jul 2018 11:04:20 +0000 (13:04 +0200)] 
dracut.spec: Remove needless use of %defattr

5 years agodracut.spec: add 00warpclock dracut module
Harald Hoyer [Thu, 26 Jul 2018 11:00:24 +0000 (13:00 +0200)] 
dracut.spec: add 00warpclock dracut module

5 years agoBring back 51-dracut-rescue-postinst.sh
Harald Hoyer [Thu, 26 Jul 2018 10:49:45 +0000 (12:49 +0200)] 
Bring back 51-dracut-rescue-postinst.sh

can only be obsoleted after F30

5 years agolsinitrd: update help message and man page
Kairui Song [Wed, 25 Jul 2018 15:50:47 +0000 (23:50 +0800)] 
lsinitrd: update help message and man page

Signed-off-by: Kairui Song <kasong@redhat.com>
5 years agolsinitrd: optimize performance when handling multiple files
Kairui Song [Wed, 25 Jul 2018 08:47:37 +0000 (16:47 +0800)] 
lsinitrd: optimize performance when handling multiple files

Currently, when trying to unpack or print the content of multiple
files, lsinitrd will decompress the image and pipe the decompressed
content to cpio to retrive each file if the image is compressed.
Which mean if we want to extract 10 files the image will be decompressed
10 times, which is a waste of time.

This patch will let lsinitrd decompress the image file to a temp file
first if multiple file names are given, then cpio will read from the
decompressed temp file, which will speed up a lot.

Time consumption test for command:
`lsinitrd initramfs-4.16.15-300.fc28.x86_64.img \
    usr/lib/dracut/build-parameter.txt \
    usr/lib/dracut/modules.txt \
    etc/machine-id \
    etc/hostname \
    usr/lib/udev/rules.d/99-systemd.rules`

Before the patch:
2.37user 0.33system 0:02.12elapsed

After the patch:
0.50user 0.42system 0:00.72elapsed

There would be a more significant time difference if we try to
extract more files.

5 years agolsinitrd: allow to only unpack certain files
Kairui Song [Wed, 25 Jul 2018 08:34:08 +0000 (16:34 +0800)] 
lsinitrd: allow to only unpack certain files

Before this patch, "--unpack" will always unpack the whole image.
Make "--unpack" be able to unpack only certain files, it will be
easier to retrieve files from initramfs image.

Signed-off-by: Kairui Song <kasong@redhat.com>
5 years agoNEWS: forgot to update the latest version
Harald Hoyer [Thu, 26 Jul 2018 07:54:13 +0000 (09:54 +0200)] 
NEWS: forgot to update the latest version

5 years ago00warpclock: Set correct timezone
Hannes Reinecke [Thu, 5 Dec 2013 08:29:28 +0000 (09:29 +0100)] 
00warpclock: Set correct timezone

Add module for setting correct timezone.

References: bnc#830060

For now, this module will not be included automatically due to different
expectations (see e.g.  https://bugzilla.redhat.com/show_bug.cgi?id=981617)

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Daniel Molkentin <daniel.molkentin@suse.com>
5 years agodracut-install: skip modules with empty path
Harald Hoyer [Wed, 18 Jul 2018 10:41:01 +0000 (12:41 +0200)] 
dracut-install: skip modules with empty path

if kmod_module_get_path(module) returns NULL, skip the module

5 years agoRecord loaded kernel modules when hostonly mode is enabled
Kairui Song [Tue, 17 Jul 2018 09:16:07 +0000 (17:16 +0800)] 
Record loaded kernel modules when hostonly mode is enabled

A hostonly image will not include every possibly required kernel module,
so if any hardware or configuration changed, the image may fail to boot.

One way to know if there are any hardware change or configuration change
that will require an image rebuild or not is to check the loaded kernel
module list. If the loaded kernel module list differs from last build
time, then the image may require to be rebuilt.

This commit will let dracut record the loaded kernel module list when
the image is being built, so other tools or services can compare this
list with currently loaded kernel modules to decide if dracut should be
called to rebuild the image.

To retrieve the loaded kernel modules list when an image is built, use
lsinitrd command:

lsinitrd $image -f */lib/dracut/loaded-kernel-modules.txt

5 years agomodules.d/95fcoe/cleanup-fcoe.sh: chmod +x
Harald Hoyer [Thu, 12 Jul 2018 13:19:17 +0000 (15:19 +0200)] 
modules.d/95fcoe/cleanup-fcoe.sh: chmod +x

5 years agoTEST-40-NBD: disable for now
Harald Hoyer [Thu, 12 Jul 2018 13:18:48 +0000 (15:18 +0200)] 
TEST-40-NBD: disable for now

nbd is always broken

5 years agoTEST-30-ISCSI: readd multiple target test
Harald Hoyer [Fri, 6 Jul 2018 09:56:23 +0000 (11:56 +0200)] 
TEST-30-ISCSI: readd multiple target test

5 years agoNEWS and AUTHORS update 048
Harald Hoyer [Fri, 6 Jul 2018 08:37:51 +0000 (10:37 +0200)] 
NEWS and AUTHORS update

5 years agomdraid: fix case if rd.md.uuid is in ID_FS_UUID format
Harald Hoyer [Fri, 6 Jul 2018 07:23:00 +0000 (09:23 +0200)] 
mdraid: fix case if rd.md.uuid is in ID_FS_UUID format

if rd.md.uuid is in ID_FS_UUID format with dashes
e40a0234-7e52-5f10-f267-658d8ec463fa
convert it for the /dev/disk/by-id/md-uuid-${uuid} format
e40a0234:7e525f10:f267658d:8ec463fa