]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
6 years agoarm: add soc/extcon/mfd as they're often needed for USB and core memory/soc drivers 265/head
Peter Robinson [Fri, 4 Aug 2017 18:51:25 +0000 (19:51 +0100)] 
arm: add soc/extcon/mfd as they're often needed for USB and core memory/soc drivers

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
6 years agoadd options to pickup dw_mmc submodules to blockfuncs
Peter Robinson [Fri, 4 Aug 2017 17:43:26 +0000 (18:43 +0100)] 
add options to pickup dw_mmc submodules to blockfuncs

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
6 years agoMerge pull request #261 from jonathan-teh/amd-family-16h
Harald Hoyer [Wed, 2 Aug 2017 09:31:19 +0000 (11:31 +0200)] 
Merge pull request #261 from jonathan-teh/amd-family-16h

Add early microcode support for AMD family 16h

6 years agoMerge pull request #260 from haraldh/crypto-cleanup
Harald Hoyer [Wed, 2 Aug 2017 09:28:47 +0000 (11:28 +0200)] 
Merge pull request #260 from haraldh/crypto-cleanup

crypt-loop: cleanup cleanup procedures

6 years agoAdd early microcode support for AMD family 16h 261/head
jonathan-teh [Fri, 28 Jul 2017 23:19:19 +0000 (00:19 +0100)] 
Add early microcode support for AMD family 16h

6 years agonbd: use systemd-run to start nbd-client
Harald Hoyer [Fri, 28 Jul 2017 13:14:17 +0000 (15:14 +0200)] 
nbd: use systemd-run to start nbd-client

6 years agotestsuite: increase disk image size
Harald Hoyer [Fri, 28 Jul 2017 09:57:51 +0000 (11:57 +0200)] 
testsuite: increase disk image size

6 years agodracut-systemd: add back missing dependencies
Harald Hoyer [Fri, 28 Jul 2017 09:57:07 +0000 (11:57 +0200)] 
dracut-systemd: add back missing dependencies

otherwise TEST-20-NFS fails

6 years agonetwork: redirect stderr for arping test
Harald Hoyer [Fri, 28 Jul 2017 09:54:27 +0000 (11:54 +0200)] 
network: redirect stderr for arping test

6 years agocrypt-loop: cleanup cleanup procedures 260/head
Harald Hoyer [Fri, 28 Jul 2017 08:43:39 +0000 (10:43 +0200)] 
crypt-loop: cleanup cleanup procedures

Using initqueue --finished to cleanup stuff is not what the
initqueue/finished hook was meant for.

Move stuff to the real cleanup hook.

6 years agoTEST-02-systemd: add systemd-analyze verify
Harald Hoyer [Fri, 28 Jul 2017 08:15:03 +0000 (10:15 +0200)] 
TEST-02-systemd: add systemd-analyze verify

6 years agodracut-systemd: fixed dependencies
Harald Hoyer [Fri, 28 Jul 2017 07:05:34 +0000 (09:05 +0200)] 
dracut-systemd: fixed dependencies

try to break an ordering cycle.

https://github.com/dracutdevs/dracut/issues/259

6 years agodracut-systemd/*.service: fix copyright message and comment
Harald Hoyer [Fri, 28 Jul 2017 07:11:42 +0000 (09:11 +0200)] 
dracut-systemd/*.service: fix copyright message and comment

6 years agoadd systemd-analyze to debug and TEST-02-SYSTEMD
Harald Hoyer [Fri, 28 Jul 2017 07:49:17 +0000 (09:49 +0200)] 
add systemd-analyze to debug and TEST-02-SYSTEMD

6 years agogit2spec.pl: handle github merges
Harald Hoyer [Thu, 27 Jul 2017 14:34:25 +0000 (16:34 +0200)] 
git2spec.pl: handle github merges

found a nice strategy to produce patchset from merges

6 years agoMerge pull request #253 from yuwata/spec
Harald Hoyer [Wed, 26 Jul 2017 07:28:49 +0000 (09:28 +0200)] 
Merge pull request #253 from yuwata/spec

spec: add missing modules

6 years agospec: add missing modules 253/head
Yu Watanabe [Tue, 25 Jul 2017 01:31:55 +0000 (10:31 +0900)] 
spec: add missing modules

6 years agodracut.spec: add 80lvmmerge
Harald Hoyer [Mon, 24 Jul 2017 14:11:20 +0000 (16:11 +0200)] 
dracut.spec: add 80lvmmerge

6 years agoUpdate README.md
Harald Hoyer [Mon, 24 Jul 2017 13:59:12 +0000 (15:59 +0200)] 
Update README.md

6 years ago80lvmmerge: remove unused file
Harald Hoyer [Mon, 24 Jul 2017 13:54:16 +0000 (15:54 +0200)] 
80lvmmerge: remove unused file

6 years ago80lvmmerge: README.md update
Harald Hoyer [Mon, 24 Jul 2017 13:53:22 +0000 (15:53 +0200)] 
80lvmmerge: README.md update

6 years agoUpdate README.md
Harald Hoyer [Mon, 24 Jul 2017 13:51:54 +0000 (15:51 +0200)] 
Update README.md

6 years agoadd lvmmerge dracut module
Harald Hoyer [Mon, 24 Jul 2017 13:45:23 +0000 (15:45 +0200)] 
add lvmmerge dracut module

6 years agoinstall arping V2 as arping2
Harald Hoyer [Mon, 24 Jul 2017 08:03:42 +0000 (10:03 +0200)] 
install arping V2 as arping2

6 years agosimplify TEST-30-ISCSI for CI
Harald Hoyer [Fri, 21 Jul 2017 14:00:44 +0000 (16:00 +0200)] 
simplify TEST-30-ISCSI for CI

6 years agoUpdate README.md
Harald Hoyer [Fri, 21 Jul 2017 13:47:37 +0000 (15:47 +0200)] 
Update README.md

6 years agoTEST-12: increase retry and loglevel
Harald Hoyer [Fri, 21 Jul 2017 13:04:57 +0000 (15:04 +0200)] 
TEST-12: increase retry and loglevel

6 years agoTEST-12: sleep to get log messages
Harald Hoyer [Fri, 21 Jul 2017 12:44:20 +0000 (14:44 +0200)] 
TEST-12: sleep to get log messages

6 years agoTEST-12: settle before doing sfdisk
Harald Hoyer [Fri, 21 Jul 2017 12:07:30 +0000 (14:07 +0200)] 
TEST-12: settle before doing sfdisk

6 years agoincreased qemu memory
Harald Hoyer [Fri, 21 Jul 2017 08:54:17 +0000 (10:54 +0200)] 
increased qemu memory

6 years agoMerge pull request #252 from landgraf/dhcp_option_21
Harald Hoyer [Wed, 19 Jul 2017 12:32:41 +0000 (14:32 +0200)] 
Merge pull request #252 from landgraf/dhcp_option_21

dhclient: send client-identifier matching hardware address

6 years agoMerge pull request #233 from yuwata/kernel-install
Harald Hoyer [Wed, 19 Jul 2017 07:53:40 +0000 (09:53 +0200)] 
Merge pull request #233 from yuwata/kernel-install

kernel-install: Skip to create initrd if /etc/machine-id is missing or empty

6 years agodhclient: send client-identifier matching hardware address 252/head
Pavel Zhukov [Mon, 17 Jul 2017 15:58:28 +0000 (17:58 +0200)] 
dhclient: send client-identifier matching hardware address

Forcing dhclient to use hardware address instead of DUID to make it
predictable and allows system installation in whitelist based networks.

6 years agoMerge pull request #251 from danimo/fix_hostonly_cmdline
Harald Hoyer [Mon, 17 Jul 2017 15:08:29 +0000 (17:08 +0200)] 
Merge pull request #251 from danimo/fix_hostonly_cmdline

Do generate error when hostonly_cmdline is set to "no"

6 years agoDo generate error when hostonly_cmdline is set to "no" 251/head
Daniel Molkentin [Mon, 17 Jul 2017 14:51:39 +0000 (16:51 +0200)] 
Do generate error when hostonly_cmdline is set to "no"

Reference: bsc#1048748

6 years agoMerge pull request #250 from lnykryn/classless-static-routes
Harald Hoyer [Fri, 14 Jul 2017 06:36:16 +0000 (08:36 +0200)] 
Merge pull request #250 from lnykryn/classless-static-routes

40network/dhclient.conf: rename classless-routes to classless-static-…

6 years ago40network/dhclient.conf: rename classless-routes to classless-static-routes 250/head
Lukas Nykryn [Thu, 13 Jul 2017 14:46:19 +0000 (16:46 +0200)] 
40network/dhclient.conf: rename classless-routes to classless-static-routes

We tell dhclient to name 121 option "classless-routes",
but in dhclient-script we parse classless_static_routes.
So either have to change the configuration or the script.

And since dhclient uses by default classless_static_routes,
let's change the configuration

6 years agoadd 90multipath-hostonly module
Harald Hoyer [Mon, 10 Jul 2017 11:28:40 +0000 (13:28 +0200)] 
add 90multipath-hostonly module

hardcoding the wwid of the drives in the initramfs causes problems
when the drives are cloned to a system with the same hardware, but
different disk wwid's

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

6 years agodracut-init.sh: check for file $DRACUT_KERNEL_MODALIASES
Harald Hoyer [Fri, 7 Jul 2017 13:59:31 +0000 (15:59 +0200)] 
dracut-init.sh: check for file $DRACUT_KERNEL_MODALIASES

and not for the directory

6 years agodracut-init.sh: add the kernel directory to the --modalias generation
Harald Hoyer [Fri, 7 Jul 2017 13:58:02 +0000 (15:58 +0200)] 
dracut-init.sh: add the kernel directory to the --modalias generation

6 years agoCheck all modalias files in /sys/devices for modules
Harald Hoyer [Fri, 7 Jul 2017 13:54:32 +0000 (15:54 +0200)] 
Check all modalias files in /sys/devices for modules

and add the corresponding kernel modules to the host module list

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

6 years agoMerge pull request #191 from robert-scheck/master
Harald Hoyer [Thu, 6 Jul 2017 07:26:51 +0000 (09:26 +0200)] 
Merge pull request #191 from robert-scheck/master

Add NTFS support to 90dmsquash-live module

7 years agoAdd NTFS support to 90dmsquash-live module (#191) 191/head
Robert Scheck [Thu, 29 Jun 2017 22:15:57 +0000 (00:15 +0200)] 
Add NTFS support to 90dmsquash-live module (#191)

Support booting from USB media with NTFS filesystem (optionally),
which removes the FAT32 related 4 GB file size limit for LiveOS/
squashfs.img (and any other file on the same USB media).

7 years agobail out if module directory does not exist
Harald Hoyer [Thu, 29 Jun 2017 15:09:29 +0000 (17:09 +0200)] 
bail out if module directory does not exist

this basically reverts commit 05214a0bedc084a41c35a128609745ad04a0c6cf

if people want to build the initramfs without kernel modules,
then --no-kernel should be specified

7 years agokernel-modules: add serial line drivers
Harald Hoyer [Thu, 29 Jun 2017 10:17:10 +0000 (12:17 +0200)] 
kernel-modules: add serial line drivers

7 years agomark these as needing bash
Harald Hoyer [Thu, 29 Jun 2017 10:16:45 +0000 (12:16 +0200)] 
mark these as needing bash

7 years agoTry BOOT_IMAGE and fallback to vmlinuz-${KERNEL}
Harald Hoyer [Thu, 29 Jun 2017 08:38:09 +0000 (10:38 +0200)] 
Try BOOT_IMAGE and fallback to vmlinuz-${KERNEL}

On s390 BOOT_IMAGE only denotes the number of the boot record that
was selected in the bootloader and not the path to the kernel image.

Also only bail out, if the kernel hmac checking relies on that path.

7 years agodracut.spec: use Recommends for rhel > 7
Harald Hoyer [Wed, 28 Jun 2017 09:00:32 +0000 (11:00 +0200)] 
dracut.spec: use Recommends for rhel > 7

7 years agoMerge pull request #246 from lnykryn/authenc
Harald Hoyer [Wed, 28 Jun 2017 16:09:54 +0000 (18:09 +0200)] 
Merge pull request #246 from lnykryn/authenc

01fips: add authenec module

7 years ago01fips: add authenec module 246/head
Lukas Nykryn [Wed, 28 Jun 2017 14:10:48 +0000 (16:10 +0200)] 
01fips: add authenec module

Resolves: #1465946

7 years agoMerge pull request #241 from danimo/zfcp_rules_dasd_rules_updates
Harald Hoyer [Wed, 28 Jun 2017 09:57:33 +0000 (11:57 +0200)] 
Merge pull request #241 from danimo/zfcp_rules_dasd_rules_updates

s390 changes that never went upstream

7 years agoMerge pull request #244 from danimo/crypt_with_uuid
Harald Hoyer [Wed, 28 Jun 2017 07:26:03 +0000 (09:26 +0200)] 
Merge pull request #244 from danimo/crypt_with_uuid

90crypt: Fixed crypttab_contains() to also work with device path in /etc/crypttab

7 years ago90crypt: Fixed crypttab_contains() to also work with device path in /etc/crypttab 244/head
Julian Wolf [Tue, 19 Aug 2014 14:23:59 +0000 (16:23 +0200)] 
90crypt: Fixed crypttab_contains() to also work with device path in /etc/crypttab

blkid is not available when this function is called, so block_uuid.map is put into
the initrd, mapping block devices from /etc/crypttab to UUIDs.

This fixes a bug where udev rules were created by mistake as crypttab_contains()
returned false for devices specified by path in /etc/crypttab which resulted in
error messages during boot.

Signed-off-by: Julian Wolf <juwolf@suse.de>
7 years agoMerge pull request #242 from lnykryn/classless
Harald Hoyer [Tue, 27 Jun 2017 11:27:41 +0000 (13:27 +0200)] 
Merge pull request #242 from lnykryn/classless

network/dhclient-script: also parse dot separated $new_classless_static_routes

7 years agocheck for CONFIG_ACPI_TABLE_UPGRADE
Harald Hoyer [Tue, 27 Jun 2017 10:27:56 +0000 (12:27 +0200)] 
check for CONFIG_ACPI_TABLE_UPGRADE

additionally as for CONFIG_ACPI_INITRD_TABLE_OVERRIDE
config parameter got renamed

7 years agonetwork/dhclient-script: also parse dot separated $new_classless_static_routes 242/head
Lukas Nykryn [Mon, 26 Jun 2017 08:12:46 +0000 (10:12 +0200)] 
network/dhclient-script: also parse dot separated $new_classless_static_routes

Previously our dhclient-script expected that $new_classless_static_routes
will have all values separated by a whitespace. But at least on F25
dhclient will put there the destination descriptor in the same format
as it is used by ISC dhcp-server.
For example:
new_classless_static_routes=32.10.198.122.47 192.168.78.4
while our current code expects
new_classless_static_routes=32 10 198 122 47 192 168 78 4

So let's just accept both of these formats by adding "." to IFS.

For details plesse see https://tools.ietf.org/html/rfc3442
"Classless Route Option Format"

7 years ago95zfcp_rules: simplified rd.zfcp commandline for NPIV 241/head
Hannes Reinecke [Thu, 10 Mar 2016 14:45:43 +0000 (15:45 +0100)] 
95zfcp_rules: simplified rd.zfcp commandline for NPIV

When NPIV is enabled and the allow_lun_scan parameter is set to 'Y'
the HBA will initiate a LUN scan automatically, so there is no need
to specify the WWPN and LUN number manually.

References: bsc#964456

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago95zfcp_rules: fix typo in module_setup
Hannes Reinecke [Thu, 17 Jul 2014 12:29:24 +0000 (14:29 +0200)] 
95zfcp_rules: fix typo in module_setup

module_setup.sh has a typo preventing it from saving the correct
dracut commandline.

References: bnc#887582

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago95zfcp_rules: Enable the device before checking device type
Hannes Reinecke [Mon, 14 Jul 2014 08:17:07 +0000 (10:17 +0200)] 
95zfcp_rules: Enable the device before checking device type

For creating dynamic udev rules parse-dasd.sh look for the device
type in sysfs, which of course does not exist if cio_ignore is
active. So first enable the device before checking.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago95zfcp_rules: Store all devices in commandline
Hannes Reinecke [Thu, 10 Jul 2014 12:56:54 +0000 (14:56 +0200)] 
95zfcp_rules: Store all devices in commandline

'for_each_host_dev_and_slaves' would stop at the first found
device, so the cmdline() call would never list all required
devices. Use 'for_each_host_dev_and_slaves_all' instead and
filter out duplicates.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years agoFix DASD with SSID greater than 0
Hannes Reinecke [Tue, 23 Aug 2016 10:56:53 +0000 (12:56 +0200)] 
Fix DASD with SSID greater than 0

bsc#989313

Signed-off-by: Thomas Renninger <trenn@suse.com>
7 years agoReset IFS variable
Hannes Reinecke [Mon, 14 Jul 2014 08:22:31 +0000 (10:22 +0200)] 
Reset IFS variable

Setting and unsetting the IFS variable is tricky. To be on the
safe side we should always reset the IFS variable to its original
value after parsing.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago95dasd_rules: Install 'collect' udev helper binary
Thomas Renninger [Mon, 3 Aug 2015 12:07:59 +0000 (14:07 +0200)] 
95dasd_rules: Install 'collect' udev helper binary

Install the 'collect' udev helper binary for s390-specific rules.

References: bsc#938867

Signed-off-by: Thomas Renninger <trenn@suse.com>
7 years ago95dasd_rules: Enable the device before checking device type
Hannes Reinecke [Mon, 14 Jul 2014 08:13:53 +0000 (10:13 +0200)] 
95dasd_rules: Enable the device before checking device type

For creating dynamic udev rules parse-dasd.sh look for the device
type in sysfs, which of course does not exist if cio_ignore is
active. So first enable the device before checking.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago95dasd_rules: Store all devices in commandline
Hannes Reinecke [Thu, 10 Jul 2014 12:56:54 +0000 (14:56 +0200)] 
95dasd_rules: Store all devices in commandline

'for_each_host_dev_and_slaves' would stop at the first found
device, so the cmdline() call would never list all required
devices. Use 'for_each_host_dev_and_slaves_all' instead and
filter out duplicates.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years agoFixup typo 'firmare' instead of 'firmware'
Hannes Reinecke [Wed, 9 Jul 2014 07:34:35 +0000 (09:34 +0200)] 
Fixup typo 'firmare' instead of 'firmware'

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago95dasd_rules: Auto-generate udev rule for ipl device
Hannes Reinecke [Thu, 26 Jun 2014 12:04:19 +0000 (14:04 +0200)] 
95dasd_rules: Auto-generate udev rule for ipl device

We should be generating a udev rule for the ipl device; it'll
be enabled anyway.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago95dasd_rules: print out 'rd.dasd' commandline
Hannes Reinecke [Thu, 26 Jun 2014 08:50:43 +0000 (10:50 +0200)] 
95dasd_rules: print out 'rd.dasd' commandline

When a DASD is found to be required for the rootfs we should
be printing out a 'rd.dasd' commandline parameter. This not
only enables us to correctly enable the device with cio_ignore,
we can also inspect the resulting initrd to figure out which
devices are required to mount the rootfs.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago95dasd_rules: fixup rd.dasd parsing
Hannes Reinecke [Thu, 26 Jun 2014 08:49:03 +0000 (10:49 +0200)] 
95dasd_rules: fixup rd.dasd parsing

There were some errors when rd.dasd parsing, resulting in the
device never to be activated. And we should check for
cio_ignore even if a udev rules has been found.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years agoCorrectly set cio_ignore for dynamic s390 rules
Hannes Reinecke [Wed, 18 Jun 2014 13:17:21 +0000 (15:17 +0200)] 
Correctly set cio_ignore for dynamic s390 rules

When converting 'rd.zfcp' and 'rd.dasd' into udev rules we
need to make sure the enable those device ids via cio_ignore,
otherwise the rules might never be called.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago95dasd_rules: enable parsing of rd.dasd= commandline parameter
Hannes Reinecke [Wed, 18 Jun 2014 13:10:46 +0000 (15:10 +0200)] 
95dasd_rules: enable parsing of rd.dasd= commandline parameter

Dracut documents the 'rd.dasd=' parameter, so we should be
enabling the usage of this parameter, too.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years agoAdd new s390x-specific rule files
Hannes Reinecke [Tue, 21 Jan 2014 13:32:09 +0000 (14:32 +0100)] 
Add new s390x-specific rule files

With the new s390x configuration tool the naming of the udev
rules files have changed. So add these to the existing ones
to be compatible with existing and new installations.

References: bnc#856585

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago95zfcp_rules: Auto-generate udev rule for ipl device
Hannes Reinecke [Thu, 26 Jun 2014 12:01:33 +0000 (14:01 +0200)] 
95zfcp_rules: Auto-generate udev rule for ipl device

We should auto-generate an udev rule for the ipl device; it'll be
enabled anyway.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago95zfcp_rules: print out rd.zfcp commandline parameter
Hannes Reinecke [Thu, 26 Jun 2014 11:44:05 +0000 (13:44 +0200)] 
95zfcp_rules: print out rd.zfcp commandline parameter

When called with '--hostonly-cmdline' the module should print
out the configuration.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago95zfcp_rules: Fixup rd.zfcp parsing
Hannes Reinecke [Thu, 26 Jun 2014 09:52:29 +0000 (11:52 +0200)] 
95zfcp_rules: Fixup rd.zfcp parsing

There were some errors when parsing rd.zfcp, causing the device
never to be activated.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years agoCorrectly set cio_ignore for dynamic s390 rules
Hannes Reinecke [Wed, 18 Jun 2014 13:17:21 +0000 (15:17 +0200)] 
Correctly set cio_ignore for dynamic s390 rules

When converting 'rd.zfcp' and 'rd.dasd' into udev rules we
need to make sure the enable those device ids via cio_ignore,
otherwise the rules might never be called.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years agoMerge pull request #239 from lnykryn/cmdline
Harald Hoyer [Wed, 21 Jun 2017 14:34:09 +0000 (16:34 +0200)] 
Merge pull request #239 from lnykryn/cmdline

dracut-lib: put together CMDLINE even if /proc/cmdline does not exist

7 years agodracut-lib: put together CMDLINE even if /proc/cmdline does not exist 239/head
Lukas Nykryn [Wed, 21 Jun 2017 12:14:06 +0000 (14:14 +0200)] 
dracut-lib: put together CMDLINE even if /proc/cmdline does not exist

7 years agoMerge pull request #238 from danimo/systemd_fix_force_drivers
Harald Hoyer [Mon, 19 Jun 2017 11:43:42 +0000 (13:43 +0200)] 
Merge pull request #238 from danimo/systemd_fix_force_drivers

98dracut-systemd: Fix module force loading with systemd

7 years agoMerge pull request #180 from danimo/tests_find_kvm_on_suse
Harald Hoyer [Mon, 19 Jun 2017 11:42:30 +0000 (13:42 +0200)] 
Merge pull request #180 from danimo/tests_find_kvm_on_suse

Tests: find qemu on (open)SUSE systems

7 years ago98dracut-systemd: Fix module force loading with systemd 238/head
Daniel Molkentin [Fri, 16 Jun 2017 14:32:56 +0000 (16:32 +0200)] 
98dracut-systemd: Fix module force loading with systemd

This used to work only when specified via the command line
or if systemd was not being used. However, the exisistence of
20_force_driver.conf also requires dracut-pre-udev.service
to be run.

Reference: bsc#986216

7 years agonetwork: fix dhcp classless_static_routes
Harald Hoyer [Wed, 7 Sep 2016 07:33:31 +0000 (09:33 +0200)] 
network: fix dhcp classless_static_routes

removed copy&paste artifact "modify_routes add"

there is no modify_routes() function, and we simply want the output
of the parse function.

(cherry picked from commit 33710dfbfcf43f4438ed58e45e2599d3fe47e2f3)

7 years agoMerge pull request #237 from lnykryn/fips-cmac
Harald Hoyer [Wed, 14 Jun 2017 12:40:08 +0000 (14:40 +0200)] 
Merge pull request #237 from lnykryn/fips-cmac

fips: add cmac kernel module

7 years agofips: add cmac kernel module 237/head
Lukas Nykryn [Tue, 13 Jun 2017 08:28:48 +0000 (10:28 +0200)] 
fips: add cmac kernel module

cmac is now marked as fips_allowed

Resolves: rhbz#1460865

7 years agoMerge pull request #235 from lnykryn/tmpfiles
Harald Hoyer [Fri, 9 Jun 2017 12:08:48 +0000 (14:08 +0200)] 
Merge pull request #235 from lnykryn/tmpfiles

systemd: include systemd-tmpfiles-setup.service

7 years agosystemd: include systemd-tmpfiles-setup.service 235/head
Lukas Nykryn [Thu, 8 Jun 2017 13:06:30 +0000 (15:06 +0200)] 
systemd: include systemd-tmpfiles-setup.service

... because otherwise nothing will actually
apply configuration from tmpfiles snippets

7 years agomodule-setup.sh: Add ARM specific driver to initramfs image
Prarit Bhargava [Mon, 5 Jun 2017 11:51:36 +0000 (07:51 -0400)] 
module-setup.sh: Add ARM specific driver to initramfs image

If a hisi_sas storage device is used as / during system install, the
resulting installation will not boot because the hisi_sas driver is not
included in the initramfs.

The Hisilicon storage driver needs to be added to the initramfs image for
aarch64 kernels.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Cc: dzickus@redhat.com
Cc: dmarlin@redhat.com
Cc: wefu@redhat.com
Cc: harald@redhat.com
7 years agohandle rpcbind /run/rpcbind directory
Harald Hoyer [Tue, 6 Jun 2017 11:38:29 +0000 (13:38 +0200)] 
handle rpcbind /run/rpcbind directory

7 years agokernel-install: Skip to create initrd if /etc/machine-id is missing or empty 233/head
Yu Watanabe [Fri, 2 Jun 2017 09:07:25 +0000 (18:07 +0900)] 
kernel-install: Skip to create initrd if /etc/machine-id is missing or empty

From systemd-234, kernel-install plugins are called even if /etc/machine-id
is missing or empty, and in that case BOOT_DIR_ABS is a fake directory.
So, let's skip to create initrd in that case.

7 years agomdraid: wait for rd.md.uuid specified devices to be assembled
Harald Hoyer [Tue, 16 May 2017 09:31:26 +0000 (11:31 +0200)] 
mdraid: wait for rd.md.uuid specified devices to be assembled

This patch uses wait_for_dev "/dev/disk/by-id/md-uuid-${uuid}" for the
specified uuids.

On timeout only md devices are force started which are specified by
uuid, or all, if rd.auto was specified.

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

7 years agoMerge pull request #213 from danimo/elfutils
Harald Hoyer [Mon, 15 May 2017 12:53:35 +0000 (14:53 +0200)] 
Merge pull request #213 from danimo/elfutils

Make binutils optional when elfutils are available

7 years agoMerge pull request #229 from jwrdegoede/master
Harald Hoyer [Mon, 15 May 2017 09:37:45 +0000 (11:37 +0200)] 
Merge pull request #229 from jwrdegoede/master

drm: Install pwm modules on all architectures

7 years agoMerge pull request #226 from AdamWill/curl-nssckbi
Harald Hoyer [Mon, 15 May 2017 09:28:10 +0000 (11:28 +0200)] 
Merge pull request #226 from AdamWill/curl-nssckbi

Handle curl using libnssckbi for TLS (RHBZ #1447777)

7 years agodrm: Install pwm modules on all architectures 229/head
Hans de Goede [Sat, 13 May 2017 15:23:36 +0000 (17:23 +0200)] 
drm: Install pwm modules on all architectures

At least on x86 on Bay and Cherry Trail devices the pmw-lpss modules must
be in the initrd too, otherwise the i915 driver will still load, but
it will report the following error:

[drm:pwm_setup_backlight [i915]] *ERROR* Failed to own the pwm chip

And not register /sys/class/backlight/intel_backlight and users will
not be able to control their backlight.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7 years agoHandle curl using libnssckbi for TLS (RHBZ #1447777) 226/head
Adam Williamson [Wed, 3 May 2017 19:32:43 +0000 (12:32 -0700)] 
Handle curl using libnssckbi for TLS (RHBZ #1447777)

curl in Fedora recently changed its default CA trust store. The
Fedora package no longer specifies an OpenSSL-format bundle file
during build, and curl itself has been patched to use an NSS
plugin called libnssckbi.so when no bundle file or directory is
specified. There are (at present) two possible providers of the
libnssckbi.so module: the original NSS implementation, which
uses a trust bundle built in at build time, and a compatible
implementation from the p11-kit project, which reads a trust
bundle at run time. So if we find a string in libcurl.so that
suggests libnssckbi might be in use, we must both install it and
make an effort to install any trust bundle files it may use.

The p11-kit libnssckbi implementation does include a string that
lists the top-level trust directories it will use, so we try to
find that string, though the best effort I can come up with will
also find many false positives too. To weed out the false
positives, we check whether the matches actually exist as dirs,
and if so, whether they contain some specific subdirectories we
know p11-kit trust dirs must have (thanks, @kaie). For the NSS
libnssckbi implementation, we will likely wind up not finding any
dirs that match the requirements, so we will simply install the
libnssckbi.so file itself, which is the correct action.

This fixes TLS transactions in the initramfs environment when
using a curl that's built this new way; it's significant for
use of kickstarts and update images with the Fedora / RHEL
installer, as these are retrieved in the initramfs environment,
and are frequently retrieved via HTTPS.

7 years agoMerge pull request #224 from jasondana/integrity-fix
Harald Hoyer [Thu, 27 Apr 2017 12:08:47 +0000 (14:08 +0200)] 
Merge pull request #224 from jasondana/integrity-fix

Check the proper variable for a custom IMA keys directory

7 years agoCheck the proper variable for a custom IMA keys directory 224/head
Jason Dana [Thu, 27 Apr 2017 11:55:58 +0000 (07:55 -0400)] 
Check the proper variable for a custom IMA keys directory

7 years agoTEST-50-MULTINIC: fix bridge test
Harald Hoyer [Wed, 26 Apr 2017 07:39:20 +0000 (09:39 +0200)] 
TEST-50-MULTINIC: fix bridge test

Bridge with nics on a different vlan, otherwise we will see:

[  117.750825] bridge0: received packet on ens5 with own address as source address

7 years agoMerge pull request #222 from danimo/fix_subnet_calc
Harald Hoyer [Wed, 26 Apr 2017 07:22:19 +0000 (09:22 +0200)] 
Merge pull request #222 from danimo/fix_subnet_calc

mkinitrd-suse.sh: Fix prefix calculation

7 years agomkinitrd-suse.sh: Fix prefix calculation 222/head
Daniel Molkentin [Tue, 25 Apr 2017 13:25:20 +0000 (15:25 +0200)] 
mkinitrd-suse.sh: Fix prefix calculation

The previous algorithm was incorrect and would return
incorrect results e.g. for a /20 mask. Also gets rid
of an undocumented depencency on bc(1).

Reference: bsc#1035743