]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
6 years agoadd support for Zstandard
tpgxyz [Mon, 4 Sep 2017 23:23:38 +0000 (01:23 +0200)] 
add support for Zstandard

6 years agoMerge pull request #276 from danimo/copy_multipath_confd
Harald Hoyer [Wed, 30 Aug 2017 09:51:12 +0000 (11:51 +0200)] 
Merge pull request #276 from danimo/copy_multipath_confd

95multipath: Pickup files in /etc/multipath/conf.d

6 years agoMerge pull request #274 from danimo/system_allow_coredump
Harald Hoyer [Wed, 30 Aug 2017 09:39:06 +0000 (11:39 +0200)] 
Merge pull request #274 from danimo/system_allow_coredump

Enable core dumps with systemd from initrd

6 years ago95multipath: Pickup files in /etc/multipath/conf.d 276/head
Daniel Molkentin [Fri, 14 Jul 2017 12:21:43 +0000 (14:21 +0200)] 
95multipath: Pickup files in /etc/multipath/conf.d

Reference: boo#1048551

6 years agoEnable core dumps with systemd from initrd 274/head
Daniel Molkentin [Tue, 29 Aug 2017 06:46:07 +0000 (08:46 +0200)] 
Enable core dumps with systemd from initrd

systemd sets /proc/sys/kernel/core_pattern to use systemd-coredump.
However, systemd-coredump is missing from initrd, making dumping
the core in initrd impossible by default.

Reference: bsc#1054809

6 years agoMerge pull request #272 from yzygitzh/no-lsinitrd-if-quiet
Harald Hoyer [Wed, 23 Aug 2017 07:31:53 +0000 (09:31 +0200)] 
Merge pull request #272 from yzygitzh/no-lsinitrd-if-quiet

dracut.sh: disable lsinitrd logging when quiet

6 years agodracut.sh: disable lsinitrd logging when quiet 272/head
Ziyue Yang [Wed, 23 Aug 2017 03:23:34 +0000 (11:23 +0800)] 
dracut.sh: disable lsinitrd logging when quiet

Currently in Fedora/RedHat dracut installs its fedora.conf.example
as the default config file, in which sysloglvl is set 5. This leads
to maxloglvl=5 in dracut calls, making unnecessary lsinitrd calls
during initramfs builds by kdump.

This patch disables lsinitrd logging when --quiet option is given,
which is controlled by maxloglvl only before. This will speed up
dracut image building as the following if --quiet is used in kdump:

1) Before this patch
$ kdumpctl stop; touch /etc/kdump.conf; time kdumpctl start
kexec: unloaded kdump kernel
Stopping kdump: [OK]
Detected change(s) in the following file(s):
  /etc/kdump.conf
Rebuilding /boot/initramfs-4.13.0-0.rc1.git4.1.fc27.x86_64kdump.img
kexec: loaded kdump kernel
Starting kdump: [OK]
real    0m26.824s
user    0m9.958s
sys     0m15.106s

2) After this patch
$ kdumpctl stop; touch /etc/kdump.conf; time kdumpctl start
kexec: unloaded kdump kernel
Stopping kdump: [OK]
Detected change(s) in the following file(s):
  /etc/kdump.conf
Rebuilding /boot/initramfs-4.13.0-0.rc1.git4.1.fc27.x86_64kdump.img
kexec: loaded kdump kernel
Starting kdump: [OK]
real    0m20.420s
user    0m8.385s
sys     0m10.468s

Signed-off-by: Ziyue Yang <ziyang@redhat.com>
6 years agoMerge pull request #269 from xlpang/master
Harald Hoyer [Fri, 18 Aug 2017 07:33:10 +0000 (09:33 +0200)] 
Merge pull request #269 from xlpang/master

introduce new "--no-hostonly-default-device"  argument

6 years agorootfs-block/module-setup.sh: check root_devs in cmdline_rootfs() 269/head
Xunlei Pang [Fri, 18 Aug 2017 02:40:27 +0000 (10:40 +0800)] 
rootfs-block/module-setup.sh: check root_devs in cmdline_rootfs()

In case of "--no-hostonly-default-device", we do not need
the root device, thus add this check.

Also fixed the stale "root_dev" export.

Signed-off-by: Xunlei Pang <xlpang@redhat.com>
6 years agodracut.sh: introduce "--no-hostonly-default-device" argument
Xunlei Pang [Wed, 16 Aug 2017 05:55:17 +0000 (13:55 +0800)] 
dracut.sh: introduce "--no-hostonly-default-device" argument

Kdump doesn't need default host devices like root, swap, fstab, etc,
we only care about the dump target which can be added via "--mount"
or "--add-device". We met several issues that kdump kernel failed
due to one of those host devices added by dracut, additionally, the
needless devices(e.g. LVM) consume some appreciable amount of memory
which is more likely to cause OOM under memory-limited kdump.

So this patch introduced "--no-hostonly-default-device" to avoid
adding those default devices as host_devs.

Signed-off-by: Xunlei Pang <xlpang@redhat.com>
6 years agoMerge pull request #268 from danimo/ssh_include_nss
Harald Hoyer [Wed, 16 Aug 2017 08:16:55 +0000 (10:16 +0200)] 
Merge pull request #268 from danimo/ssh_include_nss

ssh-client: Include nss_ libraries

6 years agossh-client: Include nss_ libraries 268/head
Michal Koutný [Tue, 15 Aug 2017 13:25:18 +0000 (15:25 +0200)] 
ssh-client: Include nss_ libraries

SSH uses passwd database and thus need various NSS plugin libraries,
depending upon setting in nsswitch.conf.

SSH binary fails within the dracut environment without the libraries:

    #:/ ssh
    No user exist for uid 0

6 years agokernel-modules: don't call instmods with empty arguments
Harald Hoyer [Mon, 14 Aug 2017 12:58:47 +0000 (14:58 +0200)] 
kernel-modules: don't call instmods with empty arguments

otherwise it will try to read from stdin and stall

6 years agolvmmerge: depend on systemd
Harald Hoyer [Mon, 14 Aug 2017 07:45:31 +0000 (09:45 +0200)] 
lvmmerge: depend on systemd

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

6 years agodracut.spec: add support for builds without dist-tag
Harald Hoyer [Fri, 11 Aug 2017 12:11:32 +0000 (14:11 +0200)] 
dracut.spec: add support for builds without dist-tag

In the module-build-service, we have pieces of dracut provided by different
modules ("base-runtime" provides most functionality, but we need
dracut-network in "installer". Since these two modules build with separate
dist-tags, we need to reduce this strict requirement to ignore the dist-tag.

6 years agoNEWS: update 046
Harald Hoyer [Fri, 11 Aug 2017 11:44:06 +0000 (13:44 +0200)] 
NEWS: update

6 years agocrypt: handle rd.luks.name
Harald Hoyer [Fri, 11 Aug 2017 09:30:11 +0000 (11:30 +0200)] 
crypt: handle rd.luks.name

systemd supports renaming of dm devices with rd.luks.name.

Honor the kernel command line parameter.

6 years agodracut-install: fixed hostonly modules hashmap_put 232/head
Harald Hoyer [Thu, 10 Aug 2017 07:19:51 +0000 (09:19 +0200)] 
dracut-install: fixed hostonly modules hashmap_put

6 years agodracut-install: fixed typo
Harald Hoyer [Thu, 10 Aug 2017 07:19:34 +0000 (09:19 +0200)] 
dracut-install: fixed typo

6 years agoMerge pull request #266 from martinezjavier/master
Harald Hoyer [Thu, 10 Aug 2017 06:49:14 +0000 (08:49 +0200)] 
Merge pull request #266 from martinezjavier/master

network: Only bring up wired network interfaces

6 years agonetwork: Only bring up wired network interfaces 266/head
Javier Martinez Canillas [Wed, 9 Aug 2017 16:50:44 +0000 (18:50 +0200)] 
network: Only bring up wired network interfaces

The dracut network module is only supposed to be used for wired interfaces
but if driver modules for wireless devices are wrongly copied, these will
be loaded and the available interfaces brought up.

If the rd.neednet=1 command line parameter is used, dhclient will attempt
to request an IP address for the interfaces and these requests will fail.

But other dracut modules that depend on the network to be settled, will
have to wait for the DHCP requests to timeout. Which can be a lot of time
since the dhclient default timeout value is 60 seconds.

Instead of trying to blacklist all possible kernel modules for wireless
devices, only bring up network interfaces if these are for wired devices.

Suggested-by: Harald Hoyer <harald@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
6 years agoSync initramfs after creation
Ankit Kumar [Mon, 7 Aug 2017 06:43:53 +0000 (12:13 +0530)] 
Sync initramfs after creation

If we trigger crash just after creating initramfs, sometimes it is
observed that initramfs is not written to disk causing the subsequent
boot to fail. A sync should resolve this.

Signed-off-by: Ankit Kumar <ankit@linux.vnet.ibm.com>
6 years agonetwork/ifup: don't arping for point-to-point connections
Harald Hoyer [Mon, 7 Aug 2017 13:09:13 +0000 (15:09 +0200)] 
network/ifup: don't arping for point-to-point connections

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

6 years agofcoe: install hba.conf and libhbalinux only if hba.conf exists
Harald Hoyer [Mon, 7 Aug 2017 12:45:55 +0000 (14:45 +0200)] 
fcoe: install hba.conf and libhbalinux only if hba.conf exists

6 years agoMerge pull request #265 from nullr0ute/arm-fixes
Harald Hoyer [Mon, 7 Aug 2017 11:10:55 +0000 (13:10 +0200)] 
Merge pull request #265 from nullr0ute/arm-fixes

A few ARM fixes for a number of newer devices which have some wider deps

6 years agoMerge pull request #257 from sbrudenell/loop-keys-in-initrd
Harald Hoyer [Mon, 7 Aug 2017 09:41:11 +0000 (11:41 +0200)] 
Merge pull request #257 from sbrudenell/loop-keys-in-initrd

Support crypto loop keys in initrd.

6 years agodracut.sh: --nofscks does not take parameters
Harald Hoyer [Mon, 7 Aug 2017 09:39:21 +0000 (11:39 +0200)] 
dracut.sh: --nofscks does not take parameters

fixes: https://github.com/dracutdevs/dracut/issues/264

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

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

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
6 years agoInclude both and in luks key name. 257/head
Steven Brudenell [Fri, 4 Aug 2017 01:39:55 +0000 (21:39 -0400)] 
Include both  and  in luks key name.

6 years agoChange mntp->keydev in loopback key luks name.
Steven Brudenell [Fri, 28 Jul 2017 16:19:47 +0000 (12:19 -0400)] 
Change mntp->keydev in loopback key luks name.

6 years agoSupport crypto loop keys in initrd.
Steven Brudenell [Thu, 27 Jul 2017 22:35:05 +0000 (18:35 -0400)] 
Support crypto loop keys in initrd.

6 years agoMerge pull request #261 from jonathan-teh/amd-family-16h
Harald Hoyer [Wed, 2 Aug 2017 09:31:19 +0000 (11:31 +0200)] 
Merge pull request #261 from jonathan-teh/amd-family-16h

Add early microcode support for AMD family 16h

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

crypt-loop: cleanup cleanup procedures

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

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

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

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

otherwise TEST-20-NFS fails

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

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

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

Move stuff to the real cleanup hook.

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

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

try to break an ordering cycle.

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

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

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

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

found a nice strategy to produce patchset from merges

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

spec: add missing modules

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

dhclient: send client-identifier matching hardware address

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

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

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

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

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

Do generate error when hostonly_cmdline is set to "no"

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

Reference: bsc#1048748

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

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

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

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

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

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

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

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

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

and not for the directory

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

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

and add the corresponding kernel modules to the host module list

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

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

Add NTFS support to 90dmsquash-live module

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

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

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

this basically reverts commit 05214a0bedc084a41c35a128609745ad04a0c6cf

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

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

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

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

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

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

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

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

01fips: add authenec module

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

Resolves: #1465946

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

s390 changes that never went upstream

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

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

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

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

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

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

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

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

additionally as for CONFIG_ACPI_INITRD_TABLE_OVERRIDE
config parameter got renamed

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

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

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

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

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

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

References: bsc#964456

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

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

References: bnc#887582

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

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

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

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

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

bsc#989313

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

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

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

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

References: bsc#938867

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

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

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

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

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

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

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

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

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

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

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

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

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

Signed-off-by: Hannes Reinecke <hare@suse.de>