]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
6 years agoMerge pull request #334 from FloGa/master
Harald Hoyer [Mon, 18 Dec 2017 10:29:17 +0000 (11:29 +0100)] 
Merge pull request #334 from FloGa/master

Use pattern matching function

6 years agoUse pattern matching function 334/head
Florian Gamböck [Mon, 18 Dec 2017 10:04:05 +0000 (11:04 +0100)] 
Use pattern matching function

The needle argument in this specific case is a pattern, which cannot be
matched by the "literal" string matcher strstr.

This can result in fsck calls like:

    e2fsck -a -y /dev/sda1

Which will then exit with an error like:

    e2fsck: Only one of the options -p/-a, -n or -y may be specified.

Hence, it is necessary to use the strglobin function to correctly match
the pattern.

6 years agoMerge pull request #325 from danimo/dasd_cio_free
Harald Hoyer [Mon, 18 Dec 2017 09:01:33 +0000 (10:01 +0100)] 
Merge pull request #325 from danimo/dasd_cio_free

95dasd_mod: do not set module parameters if dasd_cio_free is not present

6 years agoMerge pull request #328 from danimo/nfs_bonddevices
Harald Hoyer [Mon, 18 Dec 2017 08:44:24 +0000 (09:44 +0100)] 
Merge pull request #328 from danimo/nfs_bonddevices

Do not pass ifname for bonding devices (bsc#995812)

6 years agoMerge pull request #324 from danimo/mdraid-no-delete-part
Harald Hoyer [Mon, 18 Dec 2017 08:43:57 +0000 (09:43 +0100)] 
Merge pull request #324 from danimo/mdraid-no-delete-part

90dmraid: do not delete partitions

6 years agoMerge pull request #330 from danimo/task_max_emergency
Harald Hoyer [Mon, 18 Dec 2017 08:14:21 +0000 (09:14 +0100)] 
Merge pull request #330 from danimo/task_max_emergency

Set TaskMax=inifinite for the emergency shell

6 years agoMerge pull request #327 from danimo/nfs_host_robustness
Harald Hoyer [Mon, 18 Dec 2017 08:13:29 +0000 (09:13 +0100)] 
Merge pull request #327 from danimo/nfs_host_robustness

Rebustness fixes for NFS hostnames

6 years agoMerge pull request #326 from danimo/no_efi_fcoe_default
Harald Hoyer [Mon, 18 Dec 2017 08:11:54 +0000 (09:11 +0100)] 
Merge pull request #326 from danimo/no_efi_fcoe_default

fcoe-uefi: Add check for usage

6 years agoMerge pull request #323 from danimo/dm-fixes
Harald Hoyer [Mon, 18 Dec 2017 08:06:54 +0000 (09:06 +0100)] 
Merge pull request #323 from danimo/dm-fixes

Two SUSE fixes for 90dm

6 years agoMerge pull request #322 from danimo/font_maps
Harald Hoyer [Mon, 18 Dec 2017 08:05:49 +0000 (09:05 +0100)] 
Merge pull request #322 from danimo/font_maps

10i18n: Add correct fontmaps

6 years agoMerge pull request #320 from danimo/ifname-bond
Harald Hoyer [Mon, 18 Dec 2017 08:02:39 +0000 (09:02 +0100)] 
Merge pull request #320 from danimo/ifname-bond

Do not pass ifname for bonding devices (bsc#995812)

6 years agoMerge pull request #319 from danimo/modules-load.d-hostonly
Harald Hoyer [Mon, 18 Dec 2017 08:01:21 +0000 (09:01 +0100)] 
Merge pull request #319 from danimo/modules-load.d-hostonly

Fix loading of modules in modules-load.d

6 years agoSet TaskMax=inifinite for the emergency shell 330/head
Daniel Molkentin [Fri, 20 Jan 2017 09:57:40 +0000 (10:57 +0100)] 
Set TaskMax=inifinite for the emergency shell

Certain rescue/recovery operations, e.g. xfs_repair need
that liberty (bsc#1019938).

6 years agoDo not pass ifname for bonding devices (bsc#995812) 328/head
Daniel Molkentin [Thu, 2 Mar 2017 15:52:45 +0000 (16:52 +0100)] 
Do not pass ifname for bonding devices (bsc#995812)

Patch-By: Thomas Renninger <trenn@suse.de>
6 years agoNFS: Support host being a DNS ALIAS 327/head
Fabian Vogt [Fri, 3 Feb 2017 15:02:33 +0000 (16:02 +0100)] 
NFS: Support host being a DNS ALIAS

The "host" command may also print something else than
"asdf.local.lan has address 1.2.3.4", like:
"rootserver.local.net is an alias for rainbow.local.net.".
So "head -n1" is not enough.

Fixes boo#955592

6 years ago95nfs: Fix mount if IPv4 address is used in /etc/fstab
Thomas Renninger [Wed, 4 May 2016 11:33:43 +0000 (13:33 +0200)] 
95nfs: Fix mount if IPv4 address is used in /etc/fstab

Signed-off-by: Thomas Renninger <trenn@suse.com>
6 years agofcoe-uefi: Add check for usage 326/head
Fabian Vogt [Tue, 27 Sep 2016 10:41:17 +0000 (12:41 +0200)] 
fcoe-uefi: Add check for usage

References: boo#965477

fcoe-uefi gets included by default on EFI systems,
as it does not do the same check that fcoe does,
therefore needlessly pulling in network modules.
This patch copies the check from fcoe to fcoe-uefi.

6 years ago95dasd_mod: do not set module parameters if dasd_cio_free is not present 325/head
Hannes Reinecke [Thu, 26 Jun 2014 08:53:01 +0000 (10:53 +0200)] 
95dasd_mod: do not set module parameters if dasd_cio_free is not present

We're now parsing the 'rd.dasd' parameter from 95dasd_rules, so
setting the 'dasd_mod' module parameter should be dropped here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
6 years ago90dmraid: do not delete partitions 324/head
Hannes Reinecke [Tue, 27 Sep 2016 14:38:36 +0000 (16:38 +0200)] 
90dmraid: do not delete partitions

There is no point trying to delete partitions; dmraid works
happily even with them. On the contrary trying to delete partitions
can even be harmful when eg dmraid should _not_ be started.

References: bsc#998860

Signed-off-by: Hannes Reinecke <hare@suse.com>
6 years ago90dm: fixup dependency cycle between MD and DM shutdown 323/head
Hannes Reinecke [Thu, 25 Aug 2016 07:49:14 +0000 (09:49 +0200)] 
90dm: fixup dependency cycle between MD and DM shutdown

DM devices might be located on top of MD devices, so we need to
call the DM shutdown script before MD shutdown. The exception
here are multipath devices, which are below MD devices.
So skip removing multipath devices here to avoid spurious errors.

References: bsc#994860

Signed-off-by: Hannes Reinecke <hare@suse.com>
6 years ago90dm: Fixup shutdown script
Hannes Reinecke [Thu, 25 Aug 2016 07:28:30 +0000 (09:28 +0200)] 
90dm: Fixup shutdown script

When calling the shutdown script we need to take care of traversing
the device-mapper tables, otherwise we might end up trying to remove
a device-mapper device which still has another one stacked on top
and the removal will fail.

References: bsc#994860

Signed-off-by: Hannes Reinecke <hare@suse.com>
6 years ago10i18n: Add correct fontmaps 322/head
Fabian Vogt [Wed, 4 May 2016 11:08:19 +0000 (13:08 +0200)] 
10i18n: Add correct fontmaps

References: bsc#943312, bsc#932981

Signed-off-by: Fabian Vogt <fvogt@suse.com>
6 years agoDo not pass ifname for bonding devices (bsc#995812) 320/head
Daniel Molkentin [Thu, 2 Mar 2017 15:52:45 +0000 (16:52 +0100)] 
Do not pass ifname for bonding devices (bsc#995812)

Patch-By: Thomas Renninger <trenn@suse.de>
6 years agoFix loading of modules in modules-load.d 319/head
Fabian Vogt [Fri, 3 Feb 2017 15:02:34 +0000 (16:02 +0100)] 
Fix loading of modules in modules-load.d

With hostonly enabled, only modules that are currently
loaded are included in the initrd. Modules which are
explicitly listed in modules-load.d do not need to
be filtered that way. Fix for boo#962224.

6 years agoMerge pull request #316 from danimo/btrfs-crc32-accel
Harald Hoyer [Thu, 14 Dec 2017 14:38:12 +0000 (15:38 +0100)] 
Merge pull request #316 from danimo/btrfs-crc32-accel

Include crc32c-intel module when using btrfs

6 years agoMerge pull request #315 from danimo/emergency-task-limit
Harald Hoyer [Thu, 14 Dec 2017 14:37:40 +0000 (15:37 +0100)] 
Merge pull request #315 from danimo/emergency-task-limit

Fix task limit in emergency.service (the same change as in dracut-emergency.service) (bsc#1019938)

6 years agoMerge pull request #314 from danimo/simplify-amd-ucode
Harald Hoyer [Thu, 14 Dec 2017 14:36:54 +0000 (15:36 +0100)] 
Merge pull request #314 from danimo/simplify-amd-ucode

Simplify microcode lookup for for AMD CPUs

6 years agoInclude crc32c-intel module when using btrfs 316/head
Daniel Molkentin [Mon, 23 Oct 2017 11:36:18 +0000 (13:36 +0200)] 
Include crc32c-intel module when using btrfs

Reference: bsc#1011554

6 years agoFix task limit in emergency.service (the same change as in dracut-emergency.service... 315/head
Lidong Zhong [Tue, 5 Sep 2017 14:40:14 +0000 (16:40 +0200)] 
Fix task limit in emergency.service (the same change as in dracut-emergency.service) (bsc#1019938)

6 years agoSimplify microcode lookup for for AMD CPUs 314/head
Daniel Molkentin [Thu, 14 Dec 2017 11:24:53 +0000 (12:24 +0100)] 
Simplify microcode lookup for for AMD CPUs

Suggested by Tom Lendacky <thomas.lendacky@amd.com>

6 years agoMerge pull request #313 from danimo/amd-family0x17
Harald Hoyer [Wed, 13 Dec 2017 07:51:12 +0000 (08:51 +0100)] 
Merge pull request #313 from danimo/amd-family0x17

Support Microcode Updates for AMD CPU Family 0x17

6 years agoSupport Microcode Updates for AMD CPU Family 0x17 313/head
Daniel Molkentin [Tue, 12 Dec 2017 16:48:36 +0000 (17:48 +0100)] 
Support Microcode Updates for AMD CPU Family 0x17

Original-Patch-By: Tom Lendacky <thomas.lendacky@amd.com>
6 years agoMerge pull request #312 from jnbr/network
Harald Hoyer [Tue, 12 Dec 2017 09:22:41 +0000 (10:22 +0100)] 
Merge pull request #312 from jnbr/network

40network: install grep

6 years ago40network: install grep 312/head
johannes [Mon, 11 Dec 2017 16:52:03 +0000 (17:52 +0100)] 
40network: install grep

since version 046 40network/net-lib.sh uses grep but the module does not install grep

6 years agoMerge pull request #310 from danimo/remove-systemd-bootchart
Harald Hoyer [Wed, 6 Dec 2017 13:58:36 +0000 (14:58 +0100)] 
Merge pull request #310 from danimo/remove-systemd-bootchart

Remove 00systemd-bootchart

6 years agoMerge pull request #311 from dracut-mailing-devs/1512379451-17727-1-git-send-email...
Harald Hoyer [Wed, 6 Dec 2017 13:49:42 +0000 (14:49 +0100)] 
Merge pull request #311 from dracut-mailing-devs/1512379451-17727-1-git-send-email-piliu@redhat.com

dracut.sh: for_each_host_xx() function should indicate the empty case

6 years agoRemove 00systemd-bootchart 310/head
Daniel Molkentin [Mon, 4 Dec 2017 14:55:12 +0000 (15:55 +0100)] 
Remove 00systemd-bootchart

This was removed from systemd almost two years ago in
c550f7a9b89d017215af084288bc44f736f774fe, so dracut should drop support
as well.

Reference: bsc#1067279

6 years agodracut.sh: for_each_host_xx() function should indicate the empty case 311/head
Pingfan Liu [Mon, 4 Dec 2017 09:24:11 +0000 (17:24 +0800)] 
dracut.sh: for_each_host_xx() function should indicate the empty case

The caller of "for_each_host_xx func" needs to tell three cases:
func success/ fail / not be called.
E.g, in kdump case, host_devs can be empty, and we want to know it.

Signed-off-by: Pingfan Liu <piliu@redhat.com>
6 years agoAdd fuse/ntfs-3g run-time dependencies for -live subpackage
Robert Scheck [Fri, 1 Dec 2017 13:18:18 +0000 (14:18 +0100)] 
Add fuse/ntfs-3g run-time dependencies for -live subpackage

6 years agoMerge pull request #309 from danimo/multipath_bin_error
Harald Hoyer [Fri, 1 Dec 2017 08:13:53 +0000 (09:13 +0100)] 
Merge pull request #309 from danimo/multipath_bin_error

Fix warning about multipath if not needed

6 years agoFix warning about multipath if not needed 309/head
Fabian Vogt [Tue, 23 Aug 2016 10:56:21 +0000 (12:56 +0200)] 
Fix warning about multipath if not needed

Although no device uses multipath, the module checks
for presence of the multipath binary first, printing a
warning if not present. This patch fixes the wrong ordering.

6 years agodracut-install: remove double "//" in path names
Harald Hoyer [Thu, 30 Nov 2017 14:07:48 +0000 (15:07 +0100)] 
dracut-install: remove double "//" in path names

makes relative symlinks shorter

6 years agoMerge pull request #300 from danimo/pick_all_matching_keymaps
Harald Hoyer [Mon, 6 Nov 2017 08:56:13 +0000 (09:56 +0100)] 
Merge pull request #300 from danimo/pick_all_matching_keymaps

10i18n: Load all keymaps for a given locale

6 years agoMerge pull request #303 from FGrose/bootmsg
Harald Hoyer [Mon, 6 Nov 2017 08:55:54 +0000 (09:55 +0100)] 
Merge pull request #303 from FGrose/bootmsg

dmsquash-live-root: Replace incompatible shell syntax.

6 years agodmsquash-live-root: Replace incompatible shell syntax. 303/head
Frederick Grose [Sun, 5 Nov 2017 06:18:44 +0000 (01:18 -0500)] 
dmsquash-live-root: Replace incompatible shell syntax.

Fix issue #279  supercede PR #299
Fix bug https://issues.openmandriva.org/show_bug.cgi?id=2219
Replace Bashisms in the boot message for a missing overlay.
Verify presence of plymouth before calling it.
(Rework of commit f1b65e92af5e3f9df79f99e55d5aa936c9bca940.)

6 years agoRevert "lsinitrd.sh: dismiss "cat" error messages"
Harald Hoyer [Fri, 3 Nov 2017 08:16:45 +0000 (09:16 +0100)] 
Revert "lsinitrd.sh: dismiss "cat" error messages"

This reverts commit e190224345f3a8b2f9e85d84bc879dd96bf265da.

6 years agoMerge pull request #302 from keszybz/yet-another-timeout-fix
Harald Hoyer [Fri, 3 Nov 2017 08:15:02 +0000 (09:15 +0100)] 
Merge pull request #302 from keszybz/yet-another-timeout-fix

dmsquash-generator.sh: properly escape backslash in path

6 years agodmsquash-generator.sh: properly escape backslash in path 302/head
Zbigniew Jędrzejewski-Szmek [Thu, 2 Nov 2017 16:04:49 +0000 (17:04 +0100)] 
dmsquash-generator.sh: properly escape backslash in path

We need an actual bashslash in the filename on disk.

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

6 years ago10i18n: Load all keymaps for a given locale 300/head
Daniel Molkentin [Thu, 26 Oct 2017 12:59:34 +0000 (14:59 +0200)] 
10i18n: Load all keymaps for a given locale

Previously, dracut would only copy the first one found. However,
with legacy maps for some locales around, there is a chance we
pick the wrong one. Pick all matching keymaps instead

Reference: boo#1065058

6 years agoMerge pull request #298 from derekhiggins/master
Harald Hoyer [Fri, 27 Oct 2017 07:10:22 +0000 (09:10 +0200)] 
Merge pull request #298 from derekhiggins/master

Skip iscsi attachment if no info

6 years agoSkip iscsi attachment if no info 298/head
Derek Higgins [Thu, 26 Oct 2017 14:29:42 +0000 (15:29 +0100)] 
Skip iscsi attachment if no info

If no iscsi session information can be retrieved from the firmware
then skip the iscsi attachment and allow the boot process to continue.
Ensure the timeout scripts don't hit their timeout waiting for
/tmp/iscsistarted-firmware to be created.
This will allow a common image to be used for servers with both a
local and iscsi root with rd.iscsi.firmware set.

6 years agodracut.sh: after doing the lazy resolve always install dependencies
Harald Hoyer [Thu, 26 Oct 2017 07:31:27 +0000 (09:31 +0200)] 
dracut.sh: after doing the lazy resolve always install dependencies

Exit the lazy resolving mode after doing the lazy resolve, because there
won't be any lazy resolving anymore after this step.

Fixes https://github.com/dracutdevs/dracut/issues/152
Obsoletes https://github.com/dracutdevs/dracut/pull/225

6 years agolsinitrd.sh: dismiss "cat" error messages
Harald Hoyer [Thu, 26 Oct 2017 07:08:28 +0000 (09:08 +0200)] 
lsinitrd.sh: dismiss "cat" error messages

nobody wants to see "cat: broken pipe"

6 years agomake qemu and qemu-net a default module in non-hostonly mode
Harald Hoyer [Wed, 25 Oct 2017 10:53:47 +0000 (12:53 +0200)] 
make qemu and qemu-net a default module in non-hostonly mode

6 years agoMerge pull request #296 from dracut-mailing-devs/20170303132146.4968-1-crrodriguez...
Harald Hoyer [Mon, 23 Oct 2017 08:23:42 +0000 (10:23 +0200)] 
Merge pull request #296 from dracut-mailing-devs/20170303132146.4968-1-crrodriguez@opensuse.org

systemd 233 requires sha256, hmac and algif_hash modules

6 years agoMerge pull request #294 from nullr0ute/arm-fixes
Harald Hoyer [Thu, 12 Oct 2017 11:32:00 +0000 (13:32 +0200)] 
Merge pull request #294 from nullr0ute/arm-fixes

Add rpmsg, hwspinlock and usb/misc for ARM

6 years agoAdd rpmsg, hwspinlock and usb/misc for ARM 294/head
Peter Robinson [Thu, 12 Oct 2017 11:17:41 +0000 (12:17 +0100)] 
Add rpmsg, hwspinlock and usb/misc for ARM

Some of the more complex devices now need rpmsg and hwspinlock in the early boot
process to start, and these to the initrd, and pull in usb/misc because
apparently non standard usb hubs are a thing.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
6 years agoMerge pull request #223 from bmr-cymru/bmr-ignore-activation-skip
Harald Hoyer [Thu, 12 Oct 2017 09:23:38 +0000 (11:23 +0200)] 
Merge pull request #223 from bmr-cymru/bmr-ignore-activation-skip

lvm_scan.sh: use -K when calling lvchange

6 years agodracut.sh: quote sync file argument
Harald Hoyer [Wed, 11 Oct 2017 13:28:20 +0000 (15:28 +0200)] 
dracut.sh: quote sync file argument

6 years agoMerge pull request #293 from dracut-mailing-devs/1502088233-10139-1-git-send-email...
Harald Hoyer [Wed, 11 Oct 2017 13:10:26 +0000 (15:10 +0200)] 
Merge pull request #293 from dracut-mailing-devs/1502088233-10139-1-git-send-email-ankit@linux.vnet.ibm.com

Sync initramfs after creation

6 years agodracut-install: char* -> const char*
Harald Hoyer [Tue, 10 Oct 2017 11:39:17 +0000 (13:39 +0200)] 
dracut-install: char* -> const char*

6 years agoMerge pull request #284 from sm00th/kmoddir
Harald Hoyer [Tue, 10 Oct 2017 11:29:41 +0000 (13:29 +0200)] 
Merge pull request #284 from sm00th/kmoddir

dracut-install: fix relative paths in --kerneldir

6 years agodracut.sh: if /boot/vmlinuz-$version exists use /boot/ as output dir
Harald Hoyer [Tue, 10 Oct 2017 08:30:44 +0000 (10:30 +0200)] 
dracut.sh: if /boot/vmlinuz-$version exists use /boot/ as output dir

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

6 years agogit2spec.pl: handle empty merge commits
Harald Hoyer [Mon, 9 Oct 2017 15:40:04 +0000 (17:40 +0200)] 
git2spec.pl: handle empty merge commits

6 years agoemergency.service: use Type=idle
Martin Wilck [Mon, 9 Oct 2017 12:39:12 +0000 (14:39 +0200)] 
emergency.service: use Type=idle

Type=oneshot, as currently set in dracut's emergency service file,
causes an awkward situation if emergency mode is entered e.g. because
of a root device timeout, and the root device appears later because it
just has taken longer than the timeout. In that situation, my
expectation (backed by past positive experience) is that the user should
be able to simply exit the emergency shell and resume normal boot.

:/# systemctl status sysroot.mount
● sysroot.mount - /sysroot
   Loaded: loaded (/proc/cmdline; bad; vendor preset: enabled)
   Active: active (mounted) since Mon 2017-10-09 14:32:15 CEST; 16s ago
    Where: /sysroot
     What: /dev/mapper/3600601600a30200024fbbaf3f500e411-part5
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
  Process: 1873 ExecMount=/usr/bin/mount /dev/disk/by-uuid/63751805-6abc-46a3-a66f-427920dece4d /sysroot -o ro (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 512)

:/# systemctl list-jobs
JOB UNIT              TYPE  STATE
 56 emergency.target  start waiting
 57 emergency.service start running

2 jobs listed.
:/# exit
logout
Failed to start default.target: Transaction is destructive.

(system keeps idling from this point on, user has no chance to
do anything).

This results from the combination of two effects:
1) initrd-root-fs.target sets "OnFailureJobMode=replace-irreversibly",
2) emergency.service's Type=oneshot causes the start jobs for both
emergency.service and emergency.target to persist while the user is in
the emergency shell.

When the shell is exited, systemd tries to isolate "initrd.target"
again, but this fails with "the transaction is destructive" error
because of the still pending jobs.

This patch fixes this by changing the Type of "emergency.service" from
"oneshot" to "idle".

6 years agoMerge pull request #286 from rldleblanc/bonding_mtu_fix
Harald Hoyer [Mon, 9 Oct 2017 10:59:59 +0000 (12:59 +0200)] 
Merge pull request #286 from rldleblanc/bonding_mtu_fix

Fix MTU on bond interface.

6 years agoMerge pull request #285 from rldleblanc/fix-typos
Harald Hoyer [Mon, 9 Oct 2017 10:59:29 +0000 (12:59 +0200)] 
Merge pull request #285 from rldleblanc/fix-typos

Fix a couple of typos.

6 years agoTEST-70: sort interfaces for validation
Harald Hoyer [Mon, 9 Oct 2017 10:50:25 +0000 (12:50 +0200)] 
TEST-70: sort interfaces for validation

6 years agoMerge pull request #290 from privb0x23/luks-detached
Harald Hoyer [Mon, 9 Oct 2017 10:51:29 +0000 (12:51 +0200)] 
Merge pull request #290 from privb0x23/luks-detached

Add basic LUKS detached header support

6 years agoMerge pull request #287 from xlpang/master
Harald Hoyer [Mon, 9 Oct 2017 09:47:08 +0000 (11:47 +0200)] 
Merge pull request #287 from xlpang/master

fcoe: handle CNAs with DCB firmware support

6 years agoMerge pull request #280 from tpgxyz/zstd
Harald Hoyer [Mon, 9 Oct 2017 09:39:10 +0000 (11:39 +0200)] 
Merge pull request #280 from tpgxyz/zstd

add support for Zstandard

6 years agoMerge pull request #277 from imran1008/bond-master-mtu
Harald Hoyer [Mon, 9 Oct 2017 07:38:37 +0000 (09:38 +0200)] 
Merge pull request #277 from imran1008/bond-master-mtu

Set MTU on bond master as opposed to a bond slave

6 years agosystemd: fix setting of timeouts for device units
Michal Sekletar [Wed, 27 Sep 2017 11:27:42 +0000 (13:27 +0200)] 
systemd: fix setting of timeouts for device units

JobRunningTimeoutSec now affects how long can start jobs for device
units stay in the "running" state. Disabling default job timeout via
JobTimeoutSec=0 doesn't disable running state timeout. We need to set
running state timeout as well.

Note that doing this the other way around has effect on generic timeout,
i.e. disabling running state timeout disables generic timeout. But doing
it this way we would create implicit dependency on fairly new
systemd-234. However, by setting both options we don't create dependency
on specific systemd version.

6 years agoAdd basic LUKS detached header support 290/head
privb0x23 [Tue, 3 Oct 2017 22:37:55 +0000 (23:37 +0100)] 
Add basic LUKS detached header support

A LUKS root volume with a detached header on a device without partitioning will not have a UUID and will not have an attribute ENV{ID_FS_TYPE}=="crypto_LUKS".
Therefore, several areas need to be addressed: identification of the LUKS device, inclusion of entries within crypttab, and provision of the detached header file.
- Added support for an option (4th column: "force") in /etc/crypttab to force the inclusion of the entry in the initramfs version (avoiding the fs type test).
- Added support for an option (4th column: "header=/path/to/file") in /etc/crypttab to provide a path to a detached header file embedded within the initramfs.
- Added ID and PARTUUID support to the device (2nd column) in /etc/crypttab (complementing the existing UUID functionality).
- Added cmdline support to indicate LUKS device ("rd.luks.serial=") that refers to the attribute ENV{ID_SERIAL_SHORT}.
Tested successfully on Void Linux (x86_64 musl) (no systemd) with a LUKS root volume accessed with a keyfile and using a detached header.
Not tested on systemd, or on a LUKS root volume with a passphrase rather than a keyfile.

6 years agofcoe: handle CNAs with DCB firmware support 287/head
Xunlei Pang [Mon, 25 Sep 2017 03:18:06 +0000 (11:18 +0800)] 
fcoe: handle CNAs with DCB firmware support

Some Combined Network Adapters(CNAs) implement DCB protocol
in firmware, it is recommended that do not run software-based
DCB or LLDP on CNAs that implement DCB, but we have to start
the lldpad service anyway(there might be other software DCB).

If the network interface provides hardware DCB/DCBX capabilities,
the field DCB_REQUIRED in "/etc/fcoe/cfg-xxx" is expected to
be set to "no".

We met an issue on "QLogic BCM57810" with DCB firmware support,
and found dracut still generated "fcoe=<mac>:dcb" which caused
kdump boot failure when using that fcoe dump target.

This patch parses /etc/fcoe/cfg-xxx to detect DCB_REQUIRED="no",
and force "nodcb" if it is the case.

Also improved some coding style in passing.

Signed-off-by: Xunlei Pang <xlpang@redhat.com>
6 years agoFix MTU on bond interface. 286/head
Robert LeBlanc [Thu, 21 Sep 2017 20:33:59 +0000 (14:33 -0600)] 
Fix MTU on bond interface.

The MTU is only being set on the slave devices and the MTU of the
bonding master is not being updated. This updates the bonding master and
also changes the MTU on the slaves as expected.

Signed-Off-By: Robert LeBlanc <robert@leblancnet.us>
6 years agoFix a couple of typos. 285/head
Robert LeBlanc [Thu, 21 Sep 2017 19:39:52 +0000 (13:39 -0600)] 
Fix a couple of typos.

Signed-Off-By: Robert LeBlanc <robert@leblancnet.us>
6 years agodracut-install: fix relative paths in --kerneldir 284/head
Artem Savkov [Thu, 21 Sep 2017 08:36:58 +0000 (10:36 +0200)] 
dracut-install: fix relative paths in --kerneldir

kerneldirlen is used to modify absolute path returned by
kmod_module_get_path() while it is calculated on user-supplied
--kerneldir argument which can be a relative path.

Use kmod_get_dirname() to convert user-supplied path to the same format
as used by kmod_module_get_path().

This also allows to get rid of now useless strcmp checks that seem to
imply that /lib and /usr/lib are linked which is not always true.

6 years agofix typo 280/head
tpgxyz [Mon, 4 Sep 2017 23:26:31 +0000 (01:26 +0200)] 
fix typo

6 years agoadd support for Zstandard
tpgxyz [Mon, 4 Sep 2017 23:23:38 +0000 (01:23 +0200)] 
add support for Zstandard

6 years agoSet MTU on bond master as opposed to a bond slave 277/head
Imran Haider [Sun, 3 Sep 2017 03:25:21 +0000 (23:25 -0400)] 
Set MTU on bond master as opposed to a bond slave

Prior to this commit, the MTU setting was applied to a bond slave
interface.  In older versions of the Linux kernel, this setting
propagated to the bond master and the other bond slaves associated with
the master.  In recent versions of the kernel (observed in Linux 4.12),
increasing the MTU of a slave does not automatically increase the MTU of
the master.  This allows for more flexibility but requires the MTU of
the master to be changed manually.

Ideally, the MTU setting should be applied to the bond master and the
setting will propagate to the bond slaves, since the slaves are required
to have a MTU that is greater than or equal to the bond master.

6 years agoMerge pull request #276 from danimo/copy_multipath_confd
Harald Hoyer [Wed, 30 Aug 2017 09:51:12 +0000 (11:51 +0200)] 
Merge pull request #276 from danimo/copy_multipath_confd

95multipath: Pickup files in /etc/multipath/conf.d

6 years agoMerge pull request #274 from danimo/system_allow_coredump
Harald Hoyer [Wed, 30 Aug 2017 09:39:06 +0000 (11:39 +0200)] 
Merge pull request #274 from danimo/system_allow_coredump

Enable core dumps with systemd from initrd

6 years ago95multipath: Pickup files in /etc/multipath/conf.d 276/head
Daniel Molkentin [Fri, 14 Jul 2017 12:21:43 +0000 (14:21 +0200)] 
95multipath: Pickup files in /etc/multipath/conf.d

Reference: boo#1048551

6 years agoEnable core dumps with systemd from initrd 274/head
Daniel Molkentin [Tue, 29 Aug 2017 06:46:07 +0000 (08:46 +0200)] 
Enable core dumps with systemd from initrd

systemd sets /proc/sys/kernel/core_pattern to use systemd-coredump.
However, systemd-coredump is missing from initrd, making dumping
the core in initrd impossible by default.

Reference: bsc#1054809

6 years agoMerge pull request #272 from yzygitzh/no-lsinitrd-if-quiet
Harald Hoyer [Wed, 23 Aug 2017 07:31:53 +0000 (09:31 +0200)] 
Merge pull request #272 from yzygitzh/no-lsinitrd-if-quiet

dracut.sh: disable lsinitrd logging when quiet

6 years agodracut.sh: disable lsinitrd logging when quiet 272/head
Ziyue Yang [Wed, 23 Aug 2017 03:23:34 +0000 (11:23 +0800)] 
dracut.sh: disable lsinitrd logging when quiet

Currently in Fedora/RedHat dracut installs its fedora.conf.example
as the default config file, in which sysloglvl is set 5. This leads
to maxloglvl=5 in dracut calls, making unnecessary lsinitrd calls
during initramfs builds by kdump.

This patch disables lsinitrd logging when --quiet option is given,
which is controlled by maxloglvl only before. This will speed up
dracut image building as the following if --quiet is used in kdump:

1) Before this patch
$ kdumpctl stop; touch /etc/kdump.conf; time kdumpctl start
kexec: unloaded kdump kernel
Stopping kdump: [OK]
Detected change(s) in the following file(s):
  /etc/kdump.conf
Rebuilding /boot/initramfs-4.13.0-0.rc1.git4.1.fc27.x86_64kdump.img
kexec: loaded kdump kernel
Starting kdump: [OK]
real    0m26.824s
user    0m9.958s
sys     0m15.106s

2) After this patch
$ kdumpctl stop; touch /etc/kdump.conf; time kdumpctl start
kexec: unloaded kdump kernel
Stopping kdump: [OK]
Detected change(s) in the following file(s):
  /etc/kdump.conf
Rebuilding /boot/initramfs-4.13.0-0.rc1.git4.1.fc27.x86_64kdump.img
kexec: loaded kdump kernel
Starting kdump: [OK]
real    0m20.420s
user    0m8.385s
sys     0m10.468s

Signed-off-by: Ziyue Yang <ziyang@redhat.com>
6 years agoMerge pull request #269 from xlpang/master
Harald Hoyer [Fri, 18 Aug 2017 07:33:10 +0000 (09:33 +0200)] 
Merge pull request #269 from xlpang/master

introduce new "--no-hostonly-default-device"  argument

6 years agorootfs-block/module-setup.sh: check root_devs in cmdline_rootfs() 269/head
Xunlei Pang [Fri, 18 Aug 2017 02:40:27 +0000 (10:40 +0800)] 
rootfs-block/module-setup.sh: check root_devs in cmdline_rootfs()

In case of "--no-hostonly-default-device", we do not need
the root device, thus add this check.

Also fixed the stale "root_dev" export.

Signed-off-by: Xunlei Pang <xlpang@redhat.com>
6 years agodracut.sh: introduce "--no-hostonly-default-device" argument
Xunlei Pang [Wed, 16 Aug 2017 05:55:17 +0000 (13:55 +0800)] 
dracut.sh: introduce "--no-hostonly-default-device" argument

Kdump doesn't need default host devices like root, swap, fstab, etc,
we only care about the dump target which can be added via "--mount"
or "--add-device". We met several issues that kdump kernel failed
due to one of those host devices added by dracut, additionally, the
needless devices(e.g. LVM) consume some appreciable amount of memory
which is more likely to cause OOM under memory-limited kdump.

So this patch introduced "--no-hostonly-default-device" to avoid
adding those default devices as host_devs.

Signed-off-by: Xunlei Pang <xlpang@redhat.com>
6 years agoMerge pull request #268 from danimo/ssh_include_nss
Harald Hoyer [Wed, 16 Aug 2017 08:16:55 +0000 (10:16 +0200)] 
Merge pull request #268 from danimo/ssh_include_nss

ssh-client: Include nss_ libraries

6 years agossh-client: Include nss_ libraries 268/head
Michal Koutný [Tue, 15 Aug 2017 13:25:18 +0000 (15:25 +0200)] 
ssh-client: Include nss_ libraries

SSH uses passwd database and thus need various NSS plugin libraries,
depending upon setting in nsswitch.conf.

SSH binary fails within the dracut environment without the libraries:

    #:/ ssh
    No user exist for uid 0

6 years agokernel-modules: don't call instmods with empty arguments
Harald Hoyer [Mon, 14 Aug 2017 12:58:47 +0000 (14:58 +0200)] 
kernel-modules: don't call instmods with empty arguments

otherwise it will try to read from stdin and stall

6 years agolvmmerge: depend on systemd
Harald Hoyer [Mon, 14 Aug 2017 07:45:31 +0000 (09:45 +0200)] 
lvmmerge: depend on systemd

Fixes https://github.com/dracutdevs/dracut/issues/267

6 years agodracut.spec: add support for builds without dist-tag
Harald Hoyer [Fri, 11 Aug 2017 12:11:32 +0000 (14:11 +0200)] 
dracut.spec: add support for builds without dist-tag

In the module-build-service, we have pieces of dracut provided by different
modules ("base-runtime" provides most functionality, but we need
dracut-network in "installer". Since these two modules build with separate
dist-tags, we need to reduce this strict requirement to ignore the dist-tag.

6 years agoNEWS: update 046
Harald Hoyer [Fri, 11 Aug 2017 11:44:06 +0000 (13:44 +0200)] 
NEWS: update

6 years agocrypt: handle rd.luks.name
Harald Hoyer [Fri, 11 Aug 2017 09:30:11 +0000 (11:30 +0200)] 
crypt: handle rd.luks.name

systemd supports renaming of dm devices with rd.luks.name.

Honor the kernel command line parameter.

6 years agodracut-install: fixed hostonly modules hashmap_put 232/head
Harald Hoyer [Thu, 10 Aug 2017 07:19:51 +0000 (09:19 +0200)] 
dracut-install: fixed hostonly modules hashmap_put

6 years agodracut-install: fixed typo
Harald Hoyer [Thu, 10 Aug 2017 07:19:34 +0000 (09:19 +0200)] 
dracut-install: fixed typo

6 years agoMerge pull request #266 from martinezjavier/master
Harald Hoyer [Thu, 10 Aug 2017 06:49:14 +0000 (08:49 +0200)] 
Merge pull request #266 from martinezjavier/master

network: Only bring up wired network interfaces