Correct paths for openSUSE

openSUSE has things stored in different places, so fixup the
paths here.

Signed-off-by: Christian Rodrigues <crrodriguez@opensuse.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Check for plymouth lib directories

SUSE installs plymount files in /usr/lib, not /usr/libexec.
So check for both when including plymouth support.

Signed-off-by: Hannes Reinecke <hare@suse.de>
mkinitrd-suse: do not update bootloader if no kernel was found

When no kernel is found mkinitrd-suse should exit without updating the
bootloader.

References: bnc#858268

Signed-off-by: Hannes Reinecke <hare@suse.de>
Update dracut manpage for GRUB Legacy and GRUB2

Signed-off-by: sfalken@opensuse.org
40network: replace dhclient with wickedd-dhcp-supplicant

SLES12 is using wickedd, so we need to replace dhclient with
wickedd-dhcp-supplicant.

References: bnc#866771

Signed-off-by: Hannes Reinecke <hare@suse.de>
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>
45ifcfg: use distro-specific scripts

Detect the system flavor and write the ifcfg files accordingly.

  - Do not move ifcfg to -suse and -redhat files to avoid re-diffing after
    each upgrade. Handle this in the spec file and a separate
    write-ifcfg-suse.sh source file

Signed-off-by: Hannes Reinecke <hare@suse.de>
Modified-by: Thomas Rennigner <trenn@suse.de>
mkinitrd-suse: Fix whitespaces when adding drivers

Signed-off-by: Hannes Reinecke <hare@suse.de>
40network: Fix race condition when wait for networks

If no network related params are specific, but rd.neednet=1 is set,
the default initqueue action is to wait until one of the network
interfaces is marked as setup properly.

This also help with initqueue's race condition when the network interface
shows upd late

References: bnc#866771

Signed-off-by: Hannes Reinecke <hare@suse.de>
00warpclock: Set correct timezone

Add module for setting correct timezone.

References: bnc#830060

Signed-off-by: Hannes Reinecke <hare@suse.de>
95dcssblk: Add new module for DCSS block devices

Add s390 dcssblk driver and introduce rd.dcssblk= to pass mounts
that should get activated at initrd stage.

References: FATE#308263

Signed-off-by: Hannes Reinecke <hare@suse.de>
95udev-rules: add persistent network rule

Add support for 70-persistent-net.rules in dracut.

References: bnc#868375

Signed-off-by: Hannes Reinecke <hare@suse.de>
systemd always tries to load autofs4

During boot systemd tries to load autofs4, but dracut will only
add it if it's loaded by the time dracut is run.
Modify dracut to always load autofs4.

References: bnc#869411

Signed-off-by: Thomas Renninger <trenn@suse.de>
Fixup mdraid setup

This sed script to edit 64-md-raid-assemble.rules needs to
be adjusted for latest mdadm

References: bnc#866660

Signed-off-by: NeilBrown <neilb@suse.de>
95udev-rules: Add 59-scsi-sg_utils.rules

Add udev rules from sg3_utils to provide persistent device links.

References: bnc#872478

Signed-off-by: Hannes Reinecke <hare@suse.de>
90multipath: add 67-kpartx-compat.rules

Dracut needs to install the kpartx compability rules, otherwise
random failures might occur during boot.

References: bnc#872662

Signed-off-by: Hannes Reinecke <hare@suse.de>
90multipath: install dracut-specific service file

The multipathd package might install a service and a socket
file. Using the original service file from the installed
system without the socket file triggers a bug in systemd,
causing systemd to crash.

As we don't actually need to socket file in the initrd we
should be installing our own service file which does not
reference the socket file at all.

References: bnc#871610

Signed-off-by: Hannes Reinecke <hare@suse.de>
95udev-rules: Include correct sg3_utils rules

sg3_utils now provides two rules 55-scsi-sg3_id.rules and
58-scsi-sg3_symlink.rules, which need to be included instead
of the older 59-scsi-sg3_utils.rules.

References: bnc#873151

Signed-off-by: Hannes Reinecke <hare@suse.de>
90multipath: install correct multipath rules

The multipath rule got renamed to 56-multipath.rules, and
the 6*-multipath.rules were never provided by SLES.

References: bnc#873151

Signed-off-by: Hannes Reinecke <hare@suse.de>
95iscsi: Autodetect iSCSI firmware

Some iSCSI initiator present firmware information in
/sys/firmware/ibft or /sys/firmware/iscsi_bootX

Whenever we detect one of those directories we should assume
that the iSCSI devices should be activated.

Signed-off-by: Pavel Wieczorkiewicz <pwieczorkiewicz@suse.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>