]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
6 years agofix zstd magic header
tpgxyz [Wed, 18 Apr 2018 18:57:33 +0000 (20:57 +0200)] 
fix zstd magic header

6 years agofs-lib: install crc32 in no-hostonly
Marcos Mello [Mon, 16 Apr 2018 10:59:09 +0000 (07:59 -0300)] 
fs-lib: install crc32 in no-hostonly

It is needed by f2fs.

6 years agofs-lib: install crc32c for ext4
Marcos Mello [Fri, 6 Apr 2018 11:19:27 +0000 (08:19 -0300)] 
fs-lib: install crc32c for ext4

EXT4 filesystems created with metadata_csum (enabled by default in mke2fs 1.44+) or ea_inode need crc32c.

https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/?id=d0b9e0a6aa7d6805338a43b4e372623352d8df09
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/fs/ext4/super.c?h=v4.15.15#n3491

6 years agofs-lib: remove redundancy
Marcos Mello [Fri, 6 Apr 2018 11:17:30 +0000 (08:17 -0300)] 
fs-lib: remove redundancy

6 years agomake failing installation of drm modules nonfatal
Enno Boland [Fri, 30 Mar 2018 13:46:04 +0000 (15:46 +0200)] 
make failing installation of drm modules nonfatal

6 years agoplymouth: fix detection of plymouth directory
Alexander Tsoy [Fri, 23 Mar 2018 08:52:27 +0000 (11:52 +0300)] 
plymouth: fix detection of plymouth directory

Some distros have both /usr/lib/plymouth and /usr/libexec/plymouth
directorirs, so we should check the existance of plymouth-populate-initrd
script.

Fixes: 421b46f8ae89cfe2b62e880a8a5079ee8c1b3aae
6 years agospec: add missing obsoletes and provides for removed fips subpackages
Lukas Nykryn [Thu, 22 Mar 2018 15:25:46 +0000 (16:25 +0100)] 
spec: add missing obsoletes and provides for removed fips subpackages

6 years agospec: merge fips subpackages to main package
Lukas Nykryn [Mon, 19 Mar 2018 12:02:24 +0000 (13:02 +0100)] 
spec: merge fips subpackages to main package

6 years agospec: drop support for legacy distributions
Lukas Nykryn [Thu, 15 Mar 2018 15:57:47 +0000 (16:57 +0100)] 
spec: drop support for legacy distributions

rhel <= 7 has its own branch and there is no point in supporting the old
fedora

6 years ago90kernel-modules: Include Intel Volume Management Device support
Daniel Molkentin [Fri, 16 Mar 2018 14:17:41 +0000 (15:17 +0100)] 
90kernel-modules: Include Intel Volume Management Device support

Reference: bsc#1079924

6 years agolsinitrd.sh: fixed zstd file signature
Harald Hoyer [Thu, 15 Mar 2018 08:56:18 +0000 (09:56 +0100)] 
lsinitrd.sh: fixed zstd file signature

6 years ago51-dracut-rescue.install: fix initramfs not generated in /boot case
Javier Martinez Canillas [Fri, 9 Mar 2018 17:54:49 +0000 (18:54 +0100)] 
51-dracut-rescue.install: fix initramfs not generated in /boot case

Commit 5e574046e76e ("5?-dracut*.install: Allow scripts to install
the initramfs in /boot dir") added support to generate initramfs
images in the /boot directory and copy the respective BLS files.

Unfortunately, it broke the rescue initramfs generation when it's
not installed on /boot due not checking for the correct condition.

It checks for the 0-rescue sub-dir to exist, but this is created so
instead if the parent sub-dir exists has to be checked. Also, check
if the destination directory is /boot or not, instead if it exists.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
6 years agokernel-modules: add mmc/core for arm
Harald Hoyer [Mon, 5 Mar 2018 08:55:39 +0000 (09:55 +0100)] 
kernel-modules: add mmc/core for arm

6 years agoall: fix issues found by shellcheck
Lukas Nykryn [Fri, 2 Mar 2018 11:29:46 +0000 (12:29 +0100)] 
all: fix issues found by shellcheck

Error: SHELLCHECK_WARNING:
/usr/lib/dracut/dracut-init.sh:939:20: error: Argument to implicit -n is always true due to literal strings. [SC2157]
  937|   dracut_kernel_post() {
  938|       for _f in modules.builtin.bin modules.builtin modules.order; do
  939|->         [[ $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f"
  940|       done
  941|

Error: SHELLCHECK_WARNING:
/usr/lib/dracut/modules.d/98syslog/parse-syslog-opts.sh:18:12: error: This expression is constant. Did you forget a $ somewhere? [SC2078]
   16|       elif [ -e /sbin/syslogd ]; then
   17|           syslogtype="syslogd"
   18|->     elif [ /sbin/syslog-ng ]; then
   19|           syslogtype="syslog-ng"
   20|       else

Error: SHELLCHECK_WARNING:
/usr/lib/dracut/modules.d/90crypt/crypt-lib.sh:15:29: error: Since you double quoted this, it will not word split, and the loop will only run once. [SC2066]
   13|               strstr "$d" "${luks##luks-}" && return 0
   14|               if [ -n "$dev" ]; then
   15|->                 for _dev in "$(devnames $d)"; do
   16|                       [ "$dev" -ef "$_dev" ] && return 0
   17|                   done

6 years ago5?-dracut*.install: Allow scripts to install the initramfs in /boot dir
Javier Martinez Canillas [Wed, 28 Feb 2018 08:39:12 +0000 (09:39 +0100)] 
5?-dracut*.install: Allow scripts to install the initramfs in /boot dir

The GRUB 2 bootloaders expect the initrd to be installed in /boot instead
of /boot/$MACHINE_ID/$KERNEL_VERSION/{linux,initrd}, so if that directory
doesn't exists, install the initramfs images on the /boot directory.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
6 years ago90kernel-modules: Ensure PCI host modules are included
Daniel Molkentin [Thu, 1 Mar 2018 09:24:29 +0000 (10:24 +0100)] 
90kernel-modules: Ensure PCI host modules are included

The includes modules like the Intel Volume Management Device driver,
which is required to boot from disk on some systems.

Reference: boo#1079924

6 years agoUpdate %description a bit
Harald Hoyer [Mon, 26 Feb 2018 10:22:55 +0000 (11:22 +0100)] 
Update %description a bit

6 years agodracut.spec: remove BuildRoot
Harald Hoyer [Mon, 19 Feb 2018 09:17:36 +0000 (10:17 +0100)] 
dracut.spec: remove BuildRoot

6 years agodracut.spec: remove clean section
Harald Hoyer [Mon, 19 Feb 2018 09:16:30 +0000 (10:16 +0100)] 
dracut.spec: remove clean section

6 years agoversion 047 047
Harald Hoyer [Mon, 19 Feb 2018 08:50:01 +0000 (09:50 +0100)] 
version 047

6 years agodracut.spec: add BuildRequires gcc
Harald Hoyer [Mon, 19 Feb 2018 08:10:12 +0000 (09:10 +0100)] 
dracut.spec: add BuildRequires gcc

6 years agodracut-function.sh:check_block_and_slaves() check for block devices
Harald Hoyer [Mon, 19 Feb 2018 08:03:02 +0000 (09:03 +0100)] 
dracut-function.sh:check_block_and_slaves() check for block devices

Some nvme have char parents, so check if the "slave" is a block dev.

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

6 years agodm:dm-shutdown.sh: silence all disassembly until the last try
Harald Hoyer [Mon, 12 Feb 2018 08:15:55 +0000 (09:15 +0100)] 
dm:dm-shutdown.sh: silence all disassembly until the last try

6 years agoAvoid executing emergency hooks twice
Ignaz Forster [Tue, 6 Feb 2018 16:32:47 +0000 (17:32 +0100)] 
Avoid executing emergency hooks twice

6 years agocrypt: actually put block_uuid.map into initramfs
Alexander Tsoy [Thu, 1 Feb 2018 19:36:24 +0000 (22:36 +0300)] 
crypt: actually put block_uuid.map into initramfs

Also change path to /etc/block_uuid.map.

Fixes: c3b6970394ad677f05a42bef420bf34b1d0652e0
6 years ago40network: Fix race condition when wait for networks
Pawel Wieczorkiewicz [Tue, 8 Apr 2014 06:50:55 +0000 (08:50 +0200)] 
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 up late

References: bnc#866771

Signed-off-by: Hannes Reinecke <hare@suse.de>
6 years ago90plymouth: logo file is optional and may not exist
Daniel Molkentin [Fri, 19 Jan 2018 20:01:41 +0000 (21:01 +0100)] 
90plymouth: logo file is optional and may not exist

6 years ago50plymouth: improve distro compatibility
Daniel Molkentin [Thu, 18 Jan 2018 16:45:01 +0000 (17:45 +0100)] 
50plymouth: improve distro compatibility

The existence of dpkg-achitecture is not indicative of a debian
installation. It may well be installed on systems of people who
package for both distros. The previous code path did not take
that into account.

We now traverse all known plymouth directories, locking on the first
valid one, and try to work with it.

At the same time, we do not include the module if the plymouth directory
could not be found.

6 years agosupport kernels with built-in modules
Matthew Thode [Sat, 27 Jan 2018 06:42:55 +0000 (00:42 -0600)] 
support kernels with built-in modules

Don't fail if modprobe fails to load a module, the kernel could have it
statically compiled in.

Signed-off-by: Matthew Thode <mthode@mthode.org>
6 years ago98integrity: support X.509-only EVM configuration
Matthias Gerstner [Wed, 24 Jan 2018 16:19:03 +0000 (17:19 +0100)] 
98integrity: support X.509-only EVM configuration

Previously if no symmetric key was configured for EVM, then the
initialization process was aborted. It can be a valid use case, however,
to only use EVM digital signatures. In this case only X.509 certificates
need to be loaded.

With this change EVM initialization will continue if any of the
symmetric or X.509 keys could be loaded.

6 years ago98integrity: support loading x509 into the trusted/builtin .evm keyring
Matthias Gerstner [Wed, 24 Jan 2018 15:58:15 +0000 (16:58 +0100)] 
98integrity: support loading x509 into the trusted/builtin .evm keyring

This implements logic analogous to the one already implemented in
ima-keys-load.sh, only for the .evm/_evm keyrings.

If the kernel was built with CONFIG_IMA_TRUSTED_KEYRING then the kernel
initially creates and configures .ima and .evm keyrings. These keyrings
only accept x509 certificates that have been signed by a local CA which
belongs to the kernel builtin trusted keyring.

Thus if such a keyring is already present then additional evm keys
should be loaded into them. If this is not the case then the _evm
keyring needs to be created in userspace and keys will be loaded into
it instead.

Before this change dracut always created the _evm keyring and loaded
keys into it without considering an existing .evm keyring. In case of
CONFIG_IMA_TRUSTED_KEYRING being enabled, the _evm keyring will not be
used by the kernel, however, and EVM digital signatures will not work as
expected.

6 years ago98integrity: fix inconsistent whitespace
Matthias Gerstner [Wed, 24 Jan 2018 16:41:05 +0000 (17:41 +0100)] 
98integrity: fix inconsistent whitespace

6 years agodracut-install: strdup() kmod_module_get_name() string
Harald Hoyer [Tue, 23 Jan 2018 13:06:31 +0000 (14:06 +0100)] 
dracut-install: strdup() kmod_module_get_name() string

otherwise it can't be used later on after freeing the context.

Should resolve https://bugzilla.redhat.com/show_bug.cgi?id=1536609

6 years agoMerge pull request #365 from Conan-Kudo/early-microcode-by-default
Harald Hoyer [Thu, 18 Jan 2018 14:20:51 +0000 (15:20 +0100)] 
Merge pull request #365 from Conan-Kudo/early-microcode-by-default

Enable 'early_microcode' by default

6 years agoEnable 'early_microcode' by default 365/head
Thomas Backlund [Tue, 9 Jan 2018 19:07:36 +0000 (19:07 +0000)] 
Enable 'early_microcode' by default

We initially enabled it for Haswell TSX bug (mga#16657)

Now there is also Meltdown and Spectre security issues,
and more microcode issues will most likely show up...

So the sane default for 'early_microcode' to have it enabled,
as theese changes must be done early in boot process to take
effect as intended.

Update documentation accordingly.

Reference: https://bugs.mageia.org/show_bug.cgi?id=16657

Signed-off-by: Thomas Backlund <tmb@mageia.org>
Signed-off-by: Neal Gompa <ngompa13@gmail.com>
6 years agoMerge pull request #362 from danimo/persistance_policy
Harald Hoyer [Thu, 18 Jan 2018 09:35:02 +0000 (10:35 +0100)] 
Merge pull request #362 from danimo/persistance_policy

Give --persistent_policy precedence over /dev/mapper names

6 years agoMerge pull request #317 from dracut-mailing-devs/20171212142718.11451-1-carlo@caione.org
Harald Hoyer [Thu, 18 Jan 2018 09:24:41 +0000 (10:24 +0100)] 
Merge pull request #317 from dracut-mailing-devs/20171212142718.11451-1-carlo@caione.org

drm: Look for DRM drivers in the staging directory

6 years agolsinitrd.sh: quote filename in extract_files()
Harald Hoyer [Thu, 18 Jan 2018 09:17:42 +0000 (10:17 +0100)] 
lsinitrd.sh: quote filename in extract_files()

6 years agodracut.cmdline.7.asc: document rd.ccw and rd.znet
Harald Hoyer [Thu, 18 Jan 2018 07:55:34 +0000 (08:55 +0100)] 
dracut.cmdline.7.asc: document rd.ccw and rd.znet

rd.znet should be used instead of rd.ccw.

Add more info about rd.znet.

Fixes github issue 364

6 years agoMerge pull request #363 from danimo/dracut_dmraid_use_udev
Harald Hoyer [Wed, 17 Jan 2018 17:32:52 +0000 (18:32 +0100)] 
Merge pull request #363 from danimo/dracut_dmraid_use_udev

0202-dracut_dmraid_use_udev

6 years agoUse udev rules to create dmraid /dev/mapper/ devices 363/head
Hannes Reinecke [Fri, 3 Feb 2017 15:02:33 +0000 (16:02 +0100)] 
Use udev rules to create dmraid /dev/mapper/ devices

https://bugzilla.opensuse.org/show_bug.cgi?id=905746

6 years agoGive --persistent_policy precedence over /dev/mapper names 362/head
Martin Wilck [Wed, 5 Oct 2016 11:54:26 +0000 (13:54 +0200)] 
Give --persistent_policy precedence over /dev/mapper names

There is currently no way to override dracut's preference for
/dev/mapper device names. But using these is problematic in
different scenarios: For example, if a user has a multipath-
enabled system but wants to disable multipath, or if the
names of multipath maps change because of configuration changes
(e.g. toggling user_friendly_names in /etc/multipath.conf).

This patch makes dracut prefer the user-specified
--persistent_policy names over /dev/mapper names.

It might be worthwhile to discuss why dracut prefers /dev/mapper
of /dev/disk/by-uuid at all. This preference was introduced
in 9037b63e with the argument "dm devices maintain /dev/mapper/* as
persistent names", but that's wrong for the scenarios mentioned
above, and is not a compelling reason for preferring /dev/mapper
over /dev/disk/by-uuid.

References: bsc#908143

Signed-off-by: Martin Wilck <mwilck@suse.de>
6 years agoMerge pull request #359 from yuwata/kmod-version
Harald Hoyer [Wed, 17 Jan 2018 08:51:54 +0000 (09:51 +0100)] 
Merge pull request #359 from yuwata/kmod-version

configure, kmod: bump kmod version to >= 23

6 years agoMerge pull request #361 from danimo/dm_multipath
Harald Hoyer [Wed, 17 Jan 2018 08:50:54 +0000 (09:50 +0100)] 
Merge pull request #361 from danimo/dm_multipath

90multipath: load dm_multipath module during startup

6 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>
6 years agoconfigure, kmod: bump kmod version to >= 23 359/head
Yu Watanabe [Tue, 16 Jan 2018 14:10:13 +0000 (23:10 +0900)] 
configure, kmod: bump kmod version to >= 23

Follow-up for 2a0da60ed18b33e39fe8e36864800bbaaa0448b4.

6 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

6 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

6 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

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

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

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

6 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

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

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

6 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

6 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

6 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

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

6 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

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

6 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

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

6 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

6 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

6 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

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

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

6 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

6 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

6 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

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

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

6 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

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

6 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

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

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

6 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

6 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

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

6 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

6 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 :-/

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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