]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
5 years agoRemove obsolete prelinking functionality
Daniel Molkentin [Thu, 18 Jan 2018 14:07:25 +0000 (15:07 +0100)] 
Remove obsolete prelinking functionality

5 years agofips: Drop the 02fips-aesni module
Ondrej Mosnacek [Thu, 14 Jun 2018 08:30:03 +0000 (10:30 +0200)] 
fips: Drop the 02fips-aesni module

The main 01fips module should always load all optimized/driver modules
of all relevant crypto algorithms (based on their aliases), so we can
drop this useless module.

5 years agocrypt: Implement cmdline rd.luks.partuuid
B. Wilson [Tue, 29 May 2018 09:53:48 +0000 (18:53 +0900)] 
crypt: Implement cmdline rd.luks.partuuid

Commit bf5c53a implements support for mounting LUKS devices with
detached headers; however, it assumes that the LUKS device sits on an
unpartitioned disk.

Mirroring the `rd.luks.serial` option, this commit implements the
`rd.luks.partuuid` cmdline option, supporting headless LUKS devices on
drive partitions.

5 years agoHarden dracut against BASH_ENV environment variable
Renaud Métrich [Thu, 7 Jun 2018 13:42:12 +0000 (15:42 +0200)] 
Harden dracut against BASH_ENV environment variable

When dracut silently produces a broken initramfs, then the system will
likely not boot and this can be very problematic. Typical use case is
after the kernel has been updated.

It appears that dracut is not protected against the BASH_ENV variable,
causing various scripts called by dracut to possibly fail or provide
wrong output (e.g. "ldd" is one of these).
Having a broken output for "ldd" makes the generated initramfs be not
usable, typically because vital binaries will be missing (e.g.
"awk", "udevadm", ...).

Note: because the shebang line cannot contain more than one argument,
the '--norc' option had to be removed. IMHO, it was useless anyway.

Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
5 years agofips: add sha3_generic and sm3_generic modules
Ondrej Mosnacek [Thu, 7 Jun 2018 14:03:54 +0000 (16:03 +0200)] 
fips: add sha3_generic and sm3_generic modules

SHA-3 and SM3 have been added to the tcrypt module recently, so without
them the 'modprobe tcrypt' step causes a kernel panic.

5 years ago40network: introduce ip=either6 option
Pingfan Liu [Tue, 24 Apr 2018 08:41:21 +0000 (16:41 +0800)] 
40network: introduce ip=either6 option

In kdump, if dump-target is ssh on ipv6, we need to sync until ipv6 addr
is ready. Currently ip=auto6/dhcp6 provides such function. But in 1st kernel,
it is hard to know whether the ipv6 addr is got by dhcpv6 or SLAAC.
E.g ifcfg-eth* contains DHCPV6C=yes direction, but there is no dhcpv6
server in the network, and then after the system is up, the user
echo 1 > /proc/sys/net/ipv6/conf/eth0/autoconf && accept_ra by manual
to obtain a ipv6 addr. Or vice.
So this patch suggests to make dhcpv6 as auto6 fallback

Signed-off-by: Pingfan Liu <piliu@redhat.com>
5 years agocleanup empty ldconfig_paths directories
Harald Hoyer [Tue, 22 May 2018 07:48:23 +0000 (09:48 +0200)] 
cleanup empty ldconfig_paths directories

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

6 years agoshutdown: sleep a little, if a process was killed
Harald Hoyer [Tue, 15 May 2018 11:37:53 +0000 (13:37 +0200)] 
shutdown: sleep a little, if a process was killed

If a process (maybe plymouth) was still pinning /oldroot, then shutdown
would
- kill -9 $pid
- umount_a
- umount_a
in a very short timeframe. A small sleep hopefully lets the scheduler free
up /oldroot in the mean time.

6 years agodracut.spec: do not recommend grubby
Harald Hoyer [Mon, 7 May 2018 13:27:22 +0000 (15:27 +0200)] 
dracut.spec: do not recommend grubby

6 years agodracut-install.c: untabify
Harald Hoyer [Mon, 7 May 2018 13:23:04 +0000 (15:23 +0200)] 
dracut-install.c: untabify

6 years agodon't error out, if no modules were installed
Harald Hoyer [Mon, 7 May 2018 13:21:35 +0000 (15:21 +0200)] 
don't error out, if no modules were installed

dracut-install … -m -s drm_crtc_init =drivers/staging
should not return an error, if no module was found in =drivers/staging

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

6 years ago80lvmmerge/README.md: remove executable bits
Harald Hoyer [Mon, 7 May 2018 08:40:32 +0000 (10:40 +0200)] 
80lvmmerge/README.md: remove executable bits

6 years agos/find_btrfs_devs/btrfs_devs
Harald Hoyer [Mon, 7 May 2018 08:26:05 +0000 (10:26 +0200)] 
s/find_btrfs_devs/btrfs_devs

6 years ago10i18n: Fix possible infinite recursion
Daniel Molkentin [Fri, 27 Apr 2018 14:59:47 +0000 (16:59 +0200)] 
10i18n: Fix possible infinite recursion

6 years agoSuppress sync/fsfreeze if not running on a live system
Colin Walters [Wed, 2 May 2018 15:11:59 +0000 (11:11 -0400)] 
Suppress sync/fsfreeze if not running on a live system

It's possible for e.g. `kernel` to be installed as an RPM BuildRequires or equivalent,
and there's no reason to sync, and *definitely* no reason to fsfreeze.

Another case where this happens is rpm-ostree, which performs its own sync/fsfreeze
globally.  See e.g. https://github.com/ostreedev/ostree/commit/8642ef5ab3fec3ac8eb8f193054852f83a8bc4d0

6 years agoUpdate dracut.modules.7.asc
Michael McCracken [Fri, 27 Apr 2018 06:27:17 +0000 (23:27 -0700)] 
Update dracut.modules.7.asc

Update manpage to reflect code behavior for `inst` with >2 args.

Signed-off-by: Michael McCracken <michael.mccracken@gmail.com>
6 years agospec: add stratis module
Yu Watanabe [Fri, 27 Apr 2018 03:00:53 +0000 (12:00 +0900)] 
spec: add stratis module

Follow-up for c4f8329cc2b158c8d91ad9d9b7776b3970d3735a.

6 years agocrypt: correct s390 arch to include arch-specific crypto modules
Hendrik Brueckner [Wed, 25 Apr 2018 15:29:26 +0000 (17:29 +0200)] 
crypt: correct s390 arch to include arch-specific crypto modules

Convert the s390x into s390 to also include s390-specific crypto
modules, for example, aes_s390 into the initramfs.

Signed-off-by: Hendrik Brueckner <brueckner@linux.ibm.com>
6 years agoInitial Stratis support
Tony Asleson [Mon, 2 Apr 2018 14:32:12 +0000 (09:32 -0500)] 
Initial Stratis support

Ref. https://github.com/stratis-storage

Signed-off-by: Tony Asleson <tasleson@redhat.com>
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