]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
7 years ago90multipath: load dm_multipath module during startup 361/head
Hannes Reinecke [Wed, 24 Aug 2016 10:44:31 +0000 (12:44 +0200)] 
90multipath: load dm_multipath module during startup

As the 'multipath' program will be triggered directly from
udev events it will be called before the multipath service
unit has started up. Which means we cannot rely on the
service unit to load the module for us, but we rather
have to do it early before udev is started.

References: bsc#986734

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years agoconfigure: bump kmod version to >= 23
Harald Hoyer [Tue, 16 Jan 2018 13:16:37 +0000 (14:16 +0100)] 
configure: bump kmod version to >= 23

for issue #357

7 years agolsinitrd: no more cat: write error: Broken pipe
Harald Hoyer [Tue, 16 Jan 2018 11:14:15 +0000 (12:14 +0100)] 
lsinitrd: no more cat: write error: Broken pipe

silence the cat

7 years agoMerge pull request #356 from yuwata/spec-s390-2
Harald Hoyer [Tue, 16 Jan 2018 09:15:38 +0000 (10:15 +0100)] 
Merge pull request #356 from yuwata/spec-s390-2

spec: remove 81cio_ignore module from non-s390 arch

7 years agoupdate AUTHORS 356/head
Yu Watanabe [Mon, 15 Jan 2018 16:05:14 +0000 (01:05 +0900)] 
update AUTHORS

7 years agospec: remove 81cio_ignore module from non-s390 arch
Yu Watanabe [Mon, 15 Jan 2018 16:03:28 +0000 (01:03 +0900)] 
spec: remove 81cio_ignore module from non-s390 arch

Follow-up for b925f7f5d97259dd81e9d562fd1c6433e4b04f30.

7 years agodracut-functions.sh:check_vol_slaves() speedup LV -> VG name
Harald Hoyer [Mon, 15 Jan 2018 14:44:46 +0000 (15:44 +0100)] 
dracut-functions.sh:check_vol_slaves() speedup LV -> VG name

Instead of trying all /dev/mapper/* devices to match the maj:min, and
get the VG name with "lvm lvs", use the dm/name from /sys and dmsetup
splitname.

This should speedup execution with lots of LVs.

7 years agoMerge pull request #347 from danimo/81cio_ignore
Harald Hoyer [Mon, 15 Jan 2018 08:04:12 +0000 (09:04 +0100)] 
Merge pull request #347 from danimo/81cio_ignore

81cio_ignore: handle cio_ignore commandline

7 years ago0056-81cio_ignore-handle-cio_ignore-commandline 347/head
Hannes Reinecke [Fri, 3 Feb 2017 15:02:29 +0000 (16:02 +0100)] 
0056-81cio_ignore-handle-cio_ignore-commandline

81cio_ignore: handle cio_ignore commandline

References: bnc#874902

Incorporates following on-top patches/fixes:
----------------------------
Subject: 81cio_ignore: skip module if cio_ignore is not active

When cio_ignore is not active we should skip the entire module
during boot; otherwise it'll lead to adverse effects.

References: bnc#882685
----------------------------
Subject: 81cio_ignore: rewrite module

Rewrite cio_ignore module to rely on the dracut commandline
parameter 'rd.cio_accept', which takes a comma-separated list
of CCW IDs. Each of those IDs are being removed from the
list of devices from cio_ignore.

The default values for rd.cio_accept are taken from
/boot/zipl/active_devices.txt.

References: bnc#882685
-----------------------------
Subject: More empty cmdline fixes

This fixes up some more modules which might print out empty
commandline files.
-----------------------------
Subject: Mark scripts as executable

All scripts need to be marked as executable, otherwise dracut
won't be running them.

References: bnc#887010

Signed-off-by: Thomas Renninger <trenn@suse.de>
7 years agoiscsi: remove last iscsid code snippet
Harald Hoyer [Fri, 12 Jan 2018 12:45:20 +0000 (13:45 +0100)] 
iscsi: remove last iscsid code snippet

7 years agoREADME.md: add test 31
Harald Hoyer [Fri, 12 Jan 2018 12:34:57 +0000 (13:34 +0100)] 
README.md: add test 31

7 years agotest/ci-matrix.txt: add file specifying which tests to run
Harald Hoyer [Fri, 12 Jan 2018 12:04:34 +0000 (13:04 +0100)] 
test/ci-matrix.txt: add file specifying which tests to run

7 years agoTEST-14-IMSM: fail early, if setup failed
Harald Hoyer [Fri, 12 Jan 2018 10:34:45 +0000 (11:34 +0100)] 
TEST-14-IMSM: fail early, if setup failed

7 years agodracut.spec: fixed typo
Harald Hoyer [Fri, 12 Jan 2018 10:33:26 +0000 (11:33 +0100)] 
dracut.spec: fixed typo

introduced with commit 52d19cb161fcdf260f956db32480d1593bd20b52

7 years agoiSCSI: no more iscsid
Harald Hoyer [Fri, 12 Jan 2018 09:24:20 +0000 (10:24 +0100)] 
iSCSI: no more iscsid

According to Cathy Zhou <Cathy.Zhou@Oracle.COM>:

"iscsistart is not designed to be working together with iscsid. When an
interface gets the dhcp offer successfully, the iscsiroot script is run
which starts the iscsistart service to establish the iSCSI session. With
the existence of iscsid, the iscsistart service's attempt to setup its
own mgmt ipc fails. Instead, the request to login to the iscsi target
is handled by the mgmt ipc of iscsid. After iscsistart finishes its
login attempt, it eventually sends a stop_event_loop request to stop
the mgmt process. As the result, it terminates iscsid."

So, iscsid is kicked out again.

Additionally iscsistart-flocked is used to make sure iscsistart is not
run in parallel.

7 years agoMerge pull request #354 from yuwata/spec-s390x
Harald Hoyer [Fri, 12 Jan 2018 09:36:56 +0000 (10:36 +0100)] 
Merge pull request #354 from yuwata/spec-s390x

spec: do not package s390 specific modules

7 years agospec: sort modules 354/head
Yu Watanabe [Fri, 12 Jan 2018 09:24:52 +0000 (18:24 +0900)] 
spec: sort modules

7 years agospec: do not package s390 specific modules
Yu Watanabe [Fri, 12 Jan 2018 09:24:31 +0000 (18:24 +0900)] 
spec: do not package s390 specific modules

7 years agoMerge pull request #351 from danimo/91zipl
Harald Hoyer [Fri, 12 Jan 2018 08:34:08 +0000 (09:34 +0100)] 
Merge pull request #351 from danimo/91zipl

Add 91zipl, which adds support for indirect booting on s390.

7 years agodracut-systemd/dracut-pre-udev.service: also run for /etc/cmdline
Harald Hoyer [Fri, 12 Jan 2018 08:31:18 +0000 (09:31 +0100)] 
dracut-systemd/dracut-pre-udev.service: also run for /etc/cmdline

Fixes #117

7 years agoMerge pull request #353 from lnykryn/ntfs_3
Harald Hoyer [Thu, 11 Jan 2018 14:33:45 +0000 (15:33 +0100)] 
Merge pull request #353 from lnykryn/ntfs_3

90dmsquash-live: we don't have find_binary inside initramdisk

7 years ago90dmsquash-live: we don't have find_binary inside initramdisk 353/head
Lukas Nykryn [Thu, 11 Jan 2018 12:31:43 +0000 (13:31 +0100)] 
90dmsquash-live: we don't have find_binary inside initramdisk

7 years agoMerge pull request #352 from lnykryn/ntfs
Harald Hoyer [Thu, 11 Jan 2018 12:18:14 +0000 (13:18 +0100)] 
Merge pull request #352 from lnykryn/ntfs

90dmsquash-live-ntfs: fix depends()

7 years ago90dmsquash-live-ntfs: fix depends() 352/head
Lukas Nykryn [Thu, 11 Jan 2018 12:16:17 +0000 (13:16 +0100)] 
90dmsquash-live-ntfs: fix depends()

Dependencies should not include module number.

7 years agoMerge pull request #346 from danimo/95dcssblk
Harald Hoyer [Thu, 11 Jan 2018 11:34:40 +0000 (12:34 +0100)] 
Merge pull request #346 from danimo/95dcssblk

95dcssblk: Add new module for DCSS block devices

7 years agoMerge pull request #350 from yuwata/fsfreeze
Harald Hoyer [Thu, 11 Jan 2018 11:30:01 +0000 (12:30 +0100)] 
Merge pull request #350 from yuwata/fsfreeze

dracut.sh: do not invoke fsfreeze on EFI System Partition

7 years agocrypt: escape backslashes for systemd unit names b/c udev/initqueue/bash
Harald Hoyer [Thu, 11 Jan 2018 10:39:44 +0000 (11:39 +0100)] 
crypt: escape backslashes for systemd unit names b/c udev/initqueue/bash

otherwise
luks\x2d25e41d19\x2d1580\x2d4e7c\x2d8875\x2d134045008f33
turns to
luksx2d25e41d19x2d1580x2d4e7cx2d8875x2d134045008f33

7 years agoAdd /boot/zipl to host devs if it is a mount point 351/head
Thomas Renninger [Thu, 11 Sep 2014 13:17:10 +0000 (15:17 +0200)] 
Add /boot/zipl to host devs if it is a mount point

bnc#892187

Signed-off-by: Thomas Renninger <trenn@suse.de>
7 years ago91zipl: Update active_devices.txt from /boot/zipl device
Thomas Blume [Fri, 3 Feb 2017 15:02:32 +0000 (16:02 +0100)] 
91zipl: Update active_devices.txt from /boot/zipl device

References: bsc#939101

Signed-off-by: Thomas Blume <thomas.blume@suse.com>
7 years ago91zipl: Install script as executable
Hannes Reinecke [Thu, 10 Jul 2014 13:58:24 +0000 (15:58 +0200)] 
91zipl: Install script as executable

initqueue will only work with executable scripts, so we need to
mark it as such.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago91zipl: Translate 'ext2/3' into ext4
Hannes Reinecke [Fri, 11 Jul 2014 10:55:55 +0000 (12:55 +0200)] 
91zipl: Translate 'ext2/3' into ext4

91zipl tries to read the filesystem for the /boot/zipl device.
On SLE12, however, the ext2 and ext3 filesystems are handled
by the ext4 module.
And due to bug#886839 no error is registered and booting fails.
So implement a band-aid to translate it into ext4.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago91zipl: Store commandline correctly
Hannes Reinecke [Thu, 10 Jul 2014 12:55:50 +0000 (14:55 +0200)] 
91zipl: Store commandline correctly

The 'rd.zipl' command was only printed and never stored in the
initramfs itself.

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years ago91zipl: Add new module to update s390x configuration
Hannes Reinecke [Fri, 27 Jun 2014 09:43:28 +0000 (11:43 +0200)] 
91zipl: Add new module to update s390x configuration

Add new module to update the dracut commandline values
during booting with the values found in the file
dracut-cmdline.conf on the device specified by
rd.zipl.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Contrary to the original patch, this one has been modified
to check for /boot/zipl, the location of the first stage kernel
in indirect boot, in order not to install on systems
booting directly via zipl.

Signed-off-by: Daniel Molkentin <daniel.molkentin@suse.com>
7 years agodracut.sh: do not invoke fsfreeze on EFI System Partition 350/head
Yu Watanabe [Thu, 11 Jan 2018 04:53:27 +0000 (13:53 +0900)] 
dracut.sh: do not invoke fsfreeze on EFI System Partition

When the system boots with EFI, then initrd image is stored
on EFI System Partition. Thus dracut always warn about the
failure to invoke fsfreeze on the partition.
This prevents to run fsfreeze on ESP and suppress the warning.

7 years ago95dcssblk: Add new module for DCSS block devices 346/head
Thomas Renninger [Tue, 8 Apr 2014 06:53:59 +0000 (08:53 +0200)] 
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>
7 years agoTEST-3[01]-ISCSI*: increase disk size
Harald Hoyer [Wed, 10 Jan 2018 08:10:19 +0000 (09:10 +0100)] 
TEST-3[01]-ISCSI*: increase disk size

7 years agoMerge pull request #344 from yuwata/spec-cleanup
Harald Hoyer [Tue, 9 Jan 2018 12:24:46 +0000 (13:24 +0100)] 
Merge pull request #344 from yuwata/spec-cleanup

spec: use if-undefined instead of empty if-defined block

7 years agospec: use if-undefined instead of empty if-defined block 344/head
Yu Watanabe [Tue, 9 Jan 2018 08:46:16 +0000 (17:46 +0900)] 
spec: use if-undefined instead of empty if-defined block

Follow-up for 68cbbae33adc65452ee234940f668151f65cc043.

7 years agoMerge pull request #338 from danimo/fshelp
Harald Hoyer [Mon, 8 Jan 2018 14:05:28 +0000 (15:05 +0100)] 
Merge pull request #338 from danimo/fshelp

dracut-emergency: optionally print fs help

7 years agodracut-emergency: optionally print fs help 338/head
Mark Fasheh [Fri, 24 Jun 2016 22:11:17 +0000 (15:11 -0700)] 
dracut-emergency: optionally print fs help

Allow filesystem modules to install a fs-specific text file with
instructions on what to do when mount fails. This is printed when we go into
an emergency shell.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
7 years agoMerge pull request #339 from danimo/fix_include_parsing
Harald Hoyer [Mon, 8 Jan 2018 12:31:55 +0000 (13:31 +0100)] 
Merge pull request #339 from danimo/fix_include_parsing

Fix parsing of "-i" and "--include"

7 years agoFix parsing of "-i" and "--include" 339/head
Fabian Vogt [Mon, 21 Sep 2015 13:15:07 +0000 (15:15 +0200)] 
Fix parsing of "-i" and "--include"

- dracut replaced every instance of "-i" in the cmdline,
  even if it was part of a kernel image name, e.g. "vmlinuz-i"
- Fixes boo#908452

Signed-off-by: Fabian Vogt <fvogt@suse.com>
Adjusted to not support "dracut -ifoo bar", as this breaks expected
upstream behavior.

7 years agoRevert "mdraid: call mdadm with "--wait-clean" instead of "-W""
Harald Hoyer [Fri, 5 Jan 2018 10:02:12 +0000 (11:02 +0100)] 
Revert "mdraid: call mdadm with "--wait-clean" instead of "-W""

This reverts commit bc4ce61efce3e2d8b2be4f4e3e5fdef6ca08409f.

Read wrong man page section. Got confused by
https://github.com/dracutdevs/dracut/issues/342

7 years agodracut.spec: add lunmask dracut module
Harald Hoyer [Fri, 5 Jan 2018 09:42:22 +0000 (10:42 +0100)] 
dracut.spec: add lunmask dracut module

7 years agodracut.spec: remove systemd-bootchart
Harald Hoyer [Fri, 5 Jan 2018 09:39:44 +0000 (10:39 +0100)] 
dracut.spec: remove systemd-bootchart

7 years agoMerge pull request #343 from lnykryn/boot_image_once_more
Harald Hoyer [Tue, 2 Jan 2018 14:01:15 +0000 (15:01 +0100)] 
Merge pull request #343 from lnykryn/boot_image_once_more

01fips: Properly creating path to .hmac of kernel based on BOOT_IMAGE

7 years agomdraid: call mdadm with "--wait-clean" instead of "-W"
Harald Hoyer [Tue, 2 Jan 2018 13:58:14 +0000 (14:58 +0100)] 
mdraid: call mdadm with "--wait-clean" instead of "-W"

seems like -W changed meanings over the years :-/

7 years ago01fips: Properly fix creating path to .hmac of kernel based on BOOT_IMAGE 343/head
Lukas Nykryn [Tue, 26 Dec 2017 11:18:47 +0000 (12:18 +0100)] 
01fips: Properly fix creating path to .hmac of kernel based on BOOT_IMAGE

8f5c5 broke the case where BOOT_IMAGE is not set at all.
This code should handle following:
1) BOOT_IMAGE not set
2) BOOT_IMAGE set to something unrelated (s390)
3) BOOT_IMAGE=vmlinuz-4.14.7-300.fc27.x86_64
4) BOOT_IMAGE=/vmlinuz-4.14.7-300.fc27.x86_64
5) BOOT_IMAGE=/boot/vmlinuz-4.14.7-300.fc27.x86_64
6) BOOT_IMAGE=subdir/vmlinuz-4.14.7-300.fc27.x86_64
7) BOOT_IMAGE=/subdir/vmlinuz-4.14.7-300.fc27.x86_64
8) BOOT_IMAGE=/boot/subdir/vmlinuz-4.14.7-300.fc27.x86_64

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

7 years agoMerge pull request #321 from danimo/multipath-fixes
Harald Hoyer [Tue, 19 Dec 2017 14:43:58 +0000 (15:43 +0100)] 
Merge pull request #321 from danimo/multipath-fixes

SUSE fixes for 90multipath

7 years agoMerge pull request #318 from danimo/fcoe-fixes
Harald Hoyer [Tue, 19 Dec 2017 14:43:13 +0000 (15:43 +0100)] 
Merge pull request #318 from danimo/fcoe-fixes

All FCOE-related SUSE patches, rebased on top of master

7 years agoMerge pull request #340 from danimo/mkinitrd_suse_A
Harald Hoyer [Tue, 19 Dec 2017 14:41:33 +0000 (15:41 +0100)] 
Merge pull request #340 from danimo/mkinitrd_suse_A

mkinitrd-suse.sh: Implement functionality of -A option

7 years agoMerge pull request #331 from fcami/master-fsfreeze
Harald Hoyer [Tue, 19 Dec 2017 14:35:18 +0000 (15:35 +0100)] 
Merge pull request #331 from fcami/master-fsfreeze

call fsfreeze(8) on /boot to flush initramfs data & metadata to media

7 years agocall fsfreeze(8) on /boot to flush initramfs data & metadata to media 331/head
François Cami [Sat, 16 Dec 2017 22:21:07 +0000 (23:21 +0100)] 
call fsfreeze(8) on /boot to flush initramfs data & metadata to media

7 years agoMerge pull request #337 from danimo/lunmask
Harald Hoyer [Tue, 19 Dec 2017 13:39:07 +0000 (14:39 +0100)] 
Merge pull request #337 from danimo/lunmask

95lunmask: Add module to handle LUN masking

7 years agoMerge pull request #336 from danimo/add_drivers
Harald Hoyer [Tue, 19 Dec 2017 13:36:45 +0000 (14:36 +0100)] 
Merge pull request #336 from danimo/add_drivers

Fix possible hang in dracut

7 years agomkinitrd-suse.sh: Implement functionality of -A option 340/head
Fabian Vogt [Fri, 3 Feb 2017 15:02:33 +0000 (16:02 +0100)] 
mkinitrd-suse.sh: Implement functionality of -A option

- Without this patch, -A sets host_only=0,
    but host_only wasn't used
- Translates into --no-host-only now

7 years ago95lunmask: Add module to handle LUN masking 337/head
Hannes Reinecke [Wed, 11 Nov 2015 11:20:33 +0000 (12:20 +0100)] 
95lunmask: Add module to handle LUN masking

Using the module option 'scsi_mod.scan=manual'
this implements LUN masking by selectively enable only those
devices required for booting.

References: bsc#954600,FATE#319786

Signed-off-by: Hannes Reinecke <hare@suse.de>
7 years agoFix possible hang in dracut 336/head
Fabian Vogt [Wed, 23 Sep 2015 10:12:08 +0000 (12:12 +0200)] 
Fix possible hang in dracut

- Caused by add_drivers+=" " in dracut.conf (bsc#923116)

Signed-off-by: Fabian Vogt <fvogt@suse.com>
7 years ago95fcoe: use interface names instead of MAC addresses 318/head
Hannes Reinecke [Wed, 24 Aug 2016 13:14:31 +0000 (15:14 +0200)] 
95fcoe: use interface names instead of MAC addresses

Now that we are using persistent network names we can switch
to using the interface names when specifying the fcoe configuration.
With that we can print the fcoe configuration only once.

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago95fcoe: add timeout initqueue entries
Hannes Reinecke [Wed, 13 Sep 2017 07:42:01 +0000 (09:42 +0200)] 
95fcoe: add timeout initqueue entries

Occasionally the FCoE connection might be reset after fipvlan was
called, causing the FCoE connection to be dropped and boot to fail.
For these cases we should be adding a timeout entry for the
initqueue to have a failsave mechanism to re-run fipvlan in
these cases.

References: bsc#1052840

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago95fcoe: Switch back to using fipvlan for bnx2fc
Hannes Reinecke [Thu, 17 Aug 2017 08:54:22 +0000 (10:54 +0200)] 
95fcoe: Switch back to using fipvlan for bnx2fc

bnx2fc doesn't _actually_ need fcoemon, so fipvlan is sufficient
to start the FCoE connection.
And, in fact, fcoemon is started for every interface, causing
subsequent invocations to fail with

fcoemon[1157]: error 98 address already in use

and fcoemon tearing down the connection.

References: bsc#1052840

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago95fcoe: fixup fcoe-genrules.sh for VN2VN mode
Hannes Reinecke [Wed, 26 Apr 2017 14:38:11 +0000 (16:38 +0200)] 
95fcoe: fixup fcoe-genrules.sh for VN2VN mode

The 'mode' argument was never referenced in the printf format, causing
invalid rules to be written.

References: bsc#1036323

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago95fcoe: Add shutdown script
Hannes Reinecke [Thu, 25 Aug 2016 07:36:06 +0000 (09:36 +0200)] 
95fcoe: Add shutdown script

We should be disabling the FCoE connection (which triggers sending
a LOGO internally) to logout from the target; this resets the target
and will avoid hitting a busy condition during reboots.

References: bsc#994860

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago95fcoe: always set AUTO_VLAN for fcoemon
Hannes Reinecke [Wed, 24 Aug 2016 10:26:04 +0000 (12:26 +0200)] 
95fcoe: always set AUTO_VLAN for fcoemon

fcoemon is well capable of figuring out whether a vlan should
be used, so there's no need to disable the AUTO_VLAN feature.

References: bsc#995019

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years agoMerge pull request #335 from lnykryn/BOOT_IMAGE-to-HMAC
Harald Hoyer [Mon, 18 Dec 2017 14:26:31 +0000 (15:26 +0100)] 
Merge pull request #335 from lnykryn/BOOT_IMAGE-to-HMAC

01fips: Fix creating path to .hmac of kernel based on BOOT_IMAGE

7 years ago01fips: Fix creating path to .hmac of kernel based on BOOT_IMAGE 335/head
Lukas Nykryn [Mon, 18 Dec 2017 13:48:59 +0000 (14:48 +0100)] 
01fips: Fix creating path to .hmac of kernel based on BOOT_IMAGE

Old code did not work for two most common use-cases.
On most machines BOOT_IMAGE is set to something like
/vmlinuz-4.11.3-202.fc25.x86_64. So if we just add prefix "/boot/."
it won't work. Also on machines without /boot on separate partition
BOOT_IMAGE already has the /boot/ prefix (/boot/vmlinuz-3.10.0-799.el7.x86_64).
So let's strip it in such case.

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

7 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

7 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.

7 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

7 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)

7 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

7 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

7 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

7 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

7 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

7 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

7 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)

7 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

7 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).

7 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>
7 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

7 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>
7 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.

7 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>
7 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>
7 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>
7 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>
7 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>
7 years ago90multipath: start before local-fs-pre.target 321/head
Martin Wilck [Thu, 3 Nov 2016 19:37:01 +0000 (20:37 +0100)] 
90multipath: start before local-fs-pre.target

local-fs-pre.target serves as a separator between the code for
detecting block devices and systemd's fsck/mount logic. This
patch ensures that multipathd is started before local-fs-pre.target
in the initrd. By adding a "Wants=" line for local-fs-pre.target,
it makes sure that this target is started at all.

References: bsc#1006118
Signed-off-by: Martin Wilck <mwilck@suse.de>
===================================================================

7 years ago90multipath: parse kernel commandline option 'multipath=off'
Hannes Reinecke [Wed, 28 Sep 2016 13:29:52 +0000 (15:29 +0200)] 
90multipath: parse kernel commandline option 'multipath=off'

SLES11 provided a kernel commandline option 'multipath=off',
so dracut should be parsing the option, too.

References: bsc#1001691

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago90multipath: add shutdown script
Hannes Reinecke [Thu, 25 Aug 2016 07:33:26 +0000 (09:33 +0200)] 
90multipath: add shutdown script

As the device-mapper module is removing all device-mapper tables
during shutdown we need to make sure to disable queuing on the
multipath devices; otherwise there might still be I/O pending
and the removal will fail.

References: bsc#994860

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago90multipath: Start daemon after udev settle
Hannes Reinecke [Wed, 24 Aug 2016 07:05:01 +0000 (09:05 +0200)] 
90multipath: Start daemon after udev settle

We need to wait until udev has processed all events, otherwise we'll
risk of misdetecting devices. This might cause a temporary interruption
during which multipath removes a device-mapper device, which then
causes a booting failure.

References: bsc#986734

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago90multipath: do not fail startup on missing configuration
Hannes Reinecke [Tue, 27 Sep 2016 10:40:22 +0000 (12:40 +0200)] 
90multipath: do not fail startup on missing configuration

References: bsc#930019

If rootfs is on multipath, but platform does not have an /etc/multipath.conf
file which is not urgently needed, they system will not boot, due to:

multipathd is not started and rootfs and swap are not found:
systemctl status multipathd.service
* multipathd.service - Device-Mapper Multipath Device Controller
   Loaded: loaded (/usr/lib/systemd/system/multipathd.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at Thu 2015-05-07 11:49:11 CEST; 7min ago
           ConditionPathExists=/etc/multipath.conf was not met

and exit to dracut shell.

7 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>
7 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.

7 years ago95fcoe: Allow to specify the FCoE mode via the fcoe= parameter
Hannes Reinecke [Wed, 24 Aug 2016 06:32:04 +0000 (08:32 +0200)] 
95fcoe: Allow to specify the FCoE mode via the fcoe= parameter

FCoE can run in Fabric (ie FCF) or VN2VN mode, so we should allowing
to set this parameter from the commandline, too.

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago95fcoe: silence lldpad warnings
Daniel Molkentin [Fri, 15 Dec 2017 17:29:01 +0000 (18:29 +0100)] 
95fcoe: silence lldpad warnings

When lldpad is not running, any calls to 'dcbtool' will be printing
out a warning. As it perfectly legit to have FCoE running without
DCB we should not be printing out the error.

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago95fcoe: Do not overwrite FCoE configuration
Hannes Reinecke [Tue, 16 Aug 2016 11:26:07 +0000 (13:26 +0200)] 
95fcoe: Do not overwrite FCoE configuration

If the installation already has a FCoE configuration we should
not attempt to overwrite it but rather use the pre-defined
configuration.

References: bsc#993861

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years ago95fcoe: Reorder initialisation for bnx2x
Johannes Thumshirn [Tue, 27 Sep 2016 10:41:22 +0000 (12:41 +0200)] 
95fcoe: Reorder initialisation for bnx2x

Check first if we're running off an bnx2x device and start FCoE on it
via fipvlan, then go the normal/Intel way of starting DCB.

Also the SUSE version of fcoemon needs the yes parameter for the
--syslog option

References: bsc#982588

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.com>
7 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