]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
7 years agonetwork: use arping2, if available
Harald Hoyer [Thu, 14 Jul 2016 12:24:31 +0000 (14:24 +0200)] 
network: use arping2, if available

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

7 years agofcoe: check if needed for hostonly
Harald Hoyer [Wed, 29 Jun 2016 08:49:00 +0000 (10:49 +0200)] 
fcoe: check if needed for hostonly

(cherry picked from commit f45726652fd8c6fd6b5560e1142753bac62dc426)

7 years agodracut-install.c: really add a "/" inbetween destdir and target
Harald Hoyer [Thu, 14 Jul 2016 11:53:24 +0000 (13:53 +0200)] 
dracut-install.c: really add a "/" inbetween destdir and target

using dracut-install with

find . -print0 | xargs dracut-install -D /tmp/test -a

resulted in /tmp/test./.... files

7 years agofs-lib: f2fs needs crc32 not crc32c
Harald Hoyer [Fri, 8 Jul 2016 08:01:52 +0000 (10:01 +0200)] 
fs-lib: f2fs needs crc32 not crc32c

*sigh*

7 years agoMerge pull request #143 from scop/master
Harald Hoyer [Thu, 7 Jul 2016 12:58:28 +0000 (14:58 +0200)] 
Merge pull request #143 from scop/master

dracut.png: Optimize with zopflipng -m

7 years agodracut.png: Optimize with zopflipng -m 143/head
Ville Skyttä [Thu, 7 Jul 2016 10:53:39 +0000 (13:53 +0300)] 
dracut.png: Optimize with zopflipng -m

7 years agofs-lib: add crc32c kernel module for f2fs
Harald Hoyer [Thu, 7 Jul 2016 07:43:48 +0000 (09:43 +0200)] 
fs-lib: add crc32c kernel module for f2fs

7 years agoMerge pull request #142 from falbrechtskirchinger/master
Harald Hoyer [Wed, 6 Jul 2016 07:15:20 +0000 (09:15 +0200)] 
Merge pull request #142 from falbrechtskirchinger/master

systemd: install missing drop-in configs

7 years agosystemd: install missing drop-in configs 142/head
Florian Albrechtskirchinger [Wed, 6 Jul 2016 04:36:50 +0000 (06:36 +0200)] 
systemd: install missing drop-in configs

In host-only mode, install missing drop-in configuration files for
/etc/systemd/{journal.conf,system.conf}.

7 years agoMerge pull request #140 from tpgxyz/f2fs
Harald Hoyer [Mon, 4 Jul 2016 09:51:14 +0000 (11:51 +0200)] 
Merge pull request #140 from tpgxyz/f2fs

add support to F2FS filesystem (fsck)

7 years agoadd support to F2FS filesystem (fsck) 140/head
tpg [Thu, 30 Jun 2016 19:26:42 +0000 (21:26 +0200)] 
add support to F2FS filesystem (fsck)

7 years agodracut.sh: make tmp dirs after the trap function is installed
Harald Hoyer [Wed, 29 Jun 2016 15:32:31 +0000 (17:32 +0200)] 
dracut.sh: make tmp dirs after the trap function is installed

otherwise a good timed ctrl-c will leave the tmp dir around

7 years ago40network: Update iBFT scanning code to handle IPv6
Hannes Reinecke [Thu, 12 May 2016 18:03:28 +0000 (20:03 +0200)] 
40network: Update iBFT scanning code to handle IPv6

IPv6 addresses should be specified in brackets so that the
ip= scanning code doesn't get confused.

References: bnc#887542

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.com>
7 years agotest: correct cmdline reading functions
Harald Hoyer [Mon, 27 Jun 2016 10:05:37 +0000 (12:05 +0200)] 
test: correct cmdline reading functions

7 years agofcoe/cleanup-fcoe.sh: don't copy shm files to state
Harald Hoyer [Mon, 27 Jun 2016 10:03:55 +0000 (12:03 +0200)] 
fcoe/cleanup-fcoe.sh: don't copy shm files to state

with systemd version 230, this is not necessary anymore
systemd commit cacf980ed44a28e276a6cc7f8fc41f991e2ab354
because /dev/shm is selinux relabled.

7 years agoTEST-20-NFS: skip root=/dev/nfs tests with systemd v230
Harald Hoyer [Thu, 23 Jun 2016 14:36:43 +0000 (16:36 +0200)] 
TEST-20-NFS: skip root=/dev/nfs tests with systemd v230

7 years agonetwork/dhclient.conf: add missing commata
Harald Hoyer [Thu, 23 Jun 2016 12:24:40 +0000 (14:24 +0200)] 
network/dhclient.conf: add missing commata

options need to be seperated by ,

7 years agodracut-systemd/*.service: conflict with shutdown target
Harald Hoyer [Wed, 22 Jun 2016 16:12:19 +0000 (18:12 +0200)] 
dracut-systemd/*.service: conflict with shutdown target

make reboot/poweroff/halt work

also conflict with emergency.target

7 years agosystemd: add missing -.slice unit
Harald Hoyer [Wed, 22 Jun 2016 16:11:28 +0000 (18:11 +0200)] 
systemd: add missing -.slice unit

7 years agotest: handle kernel panic in testsuite
Harald Hoyer [Fri, 10 Jun 2016 06:53:01 +0000 (08:53 +0200)] 
test: handle kernel panic in testsuite

- reboot kernel on panic
- qemu don't reboot

8 years agotest/TEST-99-RPM: fixed test suite
Harald Hoyer [Thu, 9 Jun 2016 16:14:45 +0000 (18:14 +0200)] 
test/TEST-99-RPM: fixed test suite

- cope with dnf vs yum
- fixed find arguments
- make script fail, if command fails

8 years agocope with "rd.shell=0" in the testsuite
Harald Hoyer [Wed, 8 Jun 2016 07:33:48 +0000 (09:33 +0200)] 
cope with "rd.shell=0" in the testsuite

If emergency and shutdown-emergency hooks are called, the systemd should
poweroff the testsuite, therefore "rd.shell=0" is given on the test
suite kernel command lines.

"rd.shell=0" has to be parsed correctly by the test suite real root init
also.

8 years agosystemd: add udev.hwdb and udev.conf
Harald Hoyer [Wed, 8 Jun 2016 14:46:42 +0000 (16:46 +0200)] 
systemd: add udev.hwdb and udev.conf

8 years agodracut-systemd/dracut-emergency.sh: call shutdown-emergency hooks
Harald Hoyer [Tue, 7 Jun 2016 12:47:27 +0000 (14:47 +0200)] 
dracut-systemd/dracut-emergency.sh: call shutdown-emergency hooks

if no rd.shell is given

8 years agoRevert "network: remove awk call and replace it with a shell function"
Harald Hoyer [Tue, 7 Jun 2016 11:24:47 +0000 (13:24 +0200)] 
Revert "network: remove awk call and replace it with a shell function"

This reverts commit 71867b665cea6b4d9814ea0386baf0500db06806.

network needs posix shell

8 years agouse shutdown-emergency hook in testsuite to poweroff the machine
Harald Hoyer [Fri, 27 May 2016 08:52:28 +0000 (10:52 +0200)] 
use shutdown-emergency hook in testsuite to poweroff the machine

8 years agodracut-init.sh: set default firmware path, if not specified
Harald Hoyer [Wed, 25 May 2016 15:05:03 +0000 (17:05 +0200)] 
dracut-init.sh: set default firmware path, if not specified

8 years agonetwork: remove awk call and replace it with a shell function
Harald Hoyer [Tue, 7 Jun 2016 09:11:58 +0000 (11:11 +0200)] 
network: remove awk call and replace it with a shell function

changes commit 4fa5c235a76c085f5958002826436ed9c40e5034

8 years agoMerge pull request #137 from dracut-mailing-devs/1461665111-7385-2-git-send-email...
Harald Hoyer [Tue, 7 Jun 2016 09:08:12 +0000 (11:08 +0200)] 
Merge pull request #137 from dracut-mailing-devs/1461665111-7385-2-git-send-email-xlpang@redhat.com

1461665111 7385 2 git send email xlpang@redhat.com

8 years agodracut: Add drivers/clk by default on arm
Nicolas Chauvet [Thu, 12 May 2016 15:28:21 +0000 (17:28 +0200)] 
dracut: Add drivers/clk by default on arm

This will bundle clock drivers into the initramfs on arm

Tested on ti dm8148-t410 where adpll is needed on 4.6+ kernel
This will avoid to rely on (maybe broken) bootloader clocks.

Theses modules are also usually loaded early. Having them bundled into
the initramfs will avoid lot of deferred probes and others delay.

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
8 years agodracut.sh: fix $tmpfilesdir fallback when systemd-devel is not installed.
Colin Guthrie [Tue, 7 Jun 2016 08:16:05 +0000 (09:16 +0100)] 
dracut.sh: fix $tmpfilesdir fallback when systemd-devel is not installed.

Bug introduced in 3a04bddeed in Dec 2014.

8 years agosystemd-initrd: add initrd-root-device.target
Harald Hoyer [Wed, 25 May 2016 13:06:29 +0000 (15:06 +0200)] 
systemd-initrd: add initrd-root-device.target

8 years agomove ln_r() to dracut-init.sh
Harald Hoyer [Mon, 2 May 2016 10:48:12 +0000 (12:48 +0200)] 
move ln_r() to dracut-init.sh

8 years agoMerge pull request #128 from AlexanderKurtz/master
Harald Hoyer [Wed, 11 May 2016 07:23:05 +0000 (09:23 +0200)] 
Merge pull request #128 from AlexanderKurtz/master

dracut-systemd/dracut-cmdline.sh: Don't error out if there is no root…

8 years agodracut-systemd/dracut-cmdline.sh: Don't error out if there is no root= argument. 128/head
Alexander Kurtz [Fri, 6 May 2016 15:25:37 +0000 (17:25 +0200)] 
dracut-systemd/dracut-cmdline.sh: Don't error out if there is no root= argument.

Thanks to systemd's gpt-auto-generator [0] (which implements the Discoverable
Partitions Specification [1]), it is no longer necessary to always specify the
root= argument.

However, dracut would still refuse to boot if there was no root= argument (or
if it was set to the special value "gpt-auto" [2]). This commit stops dracut
from aborting the boot process in these cases and simply lets systemd do its
magic.

[0] https://github.com/systemd/systemd/blob/v229/src/gpt-auto-generator
[1] https://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/
[2] https://github.com/systemd/systemd/blob/v229/src/gpt-auto-generator/gpt-auto-generator.c#L928

8 years agoMerge pull request #127 from Keruspe/master
Harald Hoyer [Wed, 4 May 2016 09:13:54 +0000 (11:13 +0200)] 
Merge pull request #127 from Keruspe/master

configure: don't hardcode pkg-config

8 years agoconfigure: don't hardcode pkg-config 127/head
Marc-Antoine Perennou [Wed, 4 May 2016 08:18:54 +0000 (10:18 +0200)] 
configure: don't hardcode pkg-config

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
8 years agoMerge pull request #126 from AnchorCat/volatile-journal
Harald Hoyer [Wed, 4 May 2016 07:25:37 +0000 (09:25 +0200)] 
Merge pull request #126 from AnchorCat/volatile-journal

systemd: ensure journal is volatile

8 years agosystemd: ensure journal is volatile 126/head
Michael Chapman [Wed, 4 May 2016 00:49:56 +0000 (10:49 +1000)] 
systemd: ensure journal is volatile

If journald.conf already contains Storage=persistent, journald will
write to /var/log/journal/, which ends up at /run/initramfs/log/journal/
after switching root. We want to make sure early boot logs are written
to /run/log/journal/ so they can be flushed to /var/log/journal/ after
switching root.

8 years agoMerge pull request #125 from rubenk/patch-1
Harald Hoyer [Fri, 29 Apr 2016 13:52:17 +0000 (15:52 +0200)] 
Merge pull request #125 from rubenk/patch-1

Fix small typo in dracut.cmdline(7)

8 years agoFix small typo in dracut.cmdline(7) 125/head
Ruben Kerkhof [Fri, 29 Apr 2016 13:34:47 +0000 (15:34 +0200)] 
Fix small typo in dracut.cmdline(7)

8 years agoMerge pull request #124 from glensc/os-release-dir
Harald Hoyer [Wed, 27 Apr 2016 11:04:43 +0000 (13:04 +0200)] 
Merge pull request #124 from glensc/os-release-dir

ensure parent dir for /usr/lib/initrd-release exists

8 years agoensure parent dir for /usr/lib/initrd-release exists 124/head
Elan Ruusamäe [Wed, 27 Apr 2016 10:08:42 +0000 (13:08 +0300)] 
ensure parent dir for /usr/lib/initrd-release exists

8 years agonetwork/net-lib.sh: delete duplicated DNS items from "/etc/resolv.conf" 137/head
Xunlei Pang [Tue, 26 Apr 2016 10:05:11 +0000 (18:05 +0800)] 
network/net-lib.sh: delete duplicated DNS items from "/etc/resolv.conf"

Users can pass the DNS information throught "nameserver=" cmdline,
there maybe duplicated inputs.

"/etc/resolv.conf" have some restrictions on the number of DNS items
effective, so make sure that this file contains no duplicated items.

We achieve this by simply making the file have no duplicated lines.

Signed-off-by: Xunlei Pang <xlpang@redhat.com>
8 years agonetwork: dhcp before parsing specified dns through cmdline
Xunlei Pang [Tue, 26 Apr 2016 10:05:10 +0000 (18:05 +0800)] 
network: dhcp before parsing specified dns through cmdline

I met a problem when passing kdump dns to dracut via "nameserver=x.x.x.x",
the dns I provided didn't appear in the "/etc/resolv.conf".

After some debugging, found that when setup dhcp DNS, in setup_interface()
and setup_interface6(), it has:
    echo "search $search $domain" > /tmp/net.$netif.resolv.conf

So if "$search $domain" isn't NULL(this is ture in my kdump environment),
the dns contents(that is, dns1, dns2, nameserver) in "ifup" before dhcp
will be discarded.

This patch addresses it by handling dhcp first. In fact this is also the
way the NetworkManager in 1st kernel works.

Signed-off-by: Xunlei Pang <xlpang@redhat.com>
8 years agodracut: 10i18n: support default loadkeys/setfont data paths using symbolic links
Guido Trentalancia [Fri, 15 Apr 2016 11:06:45 +0000 (13:06 +0200)] 
dracut: 10i18n: support default loadkeys/setfont data paths using symbolic links

Avoid keymap/font not found error when loadkeys/setfont
are compiled with the default data directory path.

Signed-off-by: Guido Trentalancia <guido@trentalancia.net>
8 years agowatchdog: start traversing the device tree from the right directory
Harald Hoyer [Mon, 18 Apr 2016 13:50:42 +0000 (15:50 +0200)] 
watchdog: start traversing the device tree from the right directory

start with the device subtree, not with the parent of it

8 years agowatchdog: clean return of installkernel()
Harald Hoyer [Mon, 18 Apr 2016 13:49:06 +0000 (15:49 +0200)] 
watchdog: clean return of installkernel()

return 0, otherwise if _alldrivers is empty, the return code is fail

8 years agoremoved obsolete kernel module functions and host_modules variable
Harald Hoyer [Fri, 15 Apr 2016 14:25:59 +0000 (16:25 +0200)] 
removed obsolete kernel module functions and host_modules variable

module_is_host_only()
find_kernel_modules_by_path()
find_kernel_modules()

8 years agodracut-install: make use of _cleanup_ macros and improve hostonly check
Harald Hoyer [Fri, 15 Apr 2016 13:29:52 +0000 (15:29 +0200)] 
dracut-install: make use of _cleanup_ macros and improve hostonly check

If a module is renamed or another module takes care of the old one,
all of the alias strings have to be checked against the current set of
loaded modules.

This is still incomplete, because to be absolutely correct, all the
/sys/*...*/modalias files would have to be checked, if they match the
modules alias strings.

8 years agodracut_install: honor --silent flag
Harald Hoyer [Fri, 15 Apr 2016 13:25:27 +0000 (15:25 +0200)] 
dracut_install: honor --silent flag

8 years agoMerge pull request #123 from dracut-mailing-devs/40374262.eB5p3XdtTH@linux-lm3i.site
Harald Hoyer [Fri, 15 Apr 2016 10:05:44 +0000 (12:05 +0200)] 
Merge pull request #123 from dracut-mailing-devs/40374262.eB5p3XdtTH@linux-lm3i.site

Correctly handle module aliases

8 years agodrop to shell on die() if rd.shell=1 is set explicitly
Harald Hoyer [Fri, 15 Apr 2016 10:03:03 +0000 (12:03 +0200)] 
drop to shell on die() if rd.shell=1 is set explicitly

8 years agowatchdog/module-setup.sh: rewrite
Harald Hoyer [Fri, 15 Apr 2016 09:27:20 +0000 (11:27 +0200)] 
watchdog/module-setup.sh: rewrite

- use local variables with _
- use associative array for the kernel modules
- install emergency hook even in the systemd case
- follow device path until /sys is reached
- set kernel version for modprobe checking

8 years agoMerge pull request #121 from dracut-mailing-devs/2751555c29f26f69a63888745513edeceb39...
Harald Hoyer [Fri, 15 Apr 2016 08:56:31 +0000 (10:56 +0200)] 
Merge pull request #121 from dracut-mailing-devs/2751555c29f26f69a63888745513edeceb39d416.1458099200.git.panand@redhat.com

 Install kernel module for active watchdog

8 years ago95resume: avoid possible symbolic link creation error on bootup
Guido Trentalancia [Fri, 15 Apr 2016 08:38:04 +0000 (10:38 +0200)] 
95resume: avoid possible symbolic link creation error on bootup

Avoid symbolic link creation error.

8 years agokate config
Harald Hoyer [Fri, 15 Apr 2016 08:27:48 +0000 (10:27 +0200)] 
kate config

8 years agobase/init.sh: don't mount /run with noexec, if the initramfs lives there
Harald Hoyer [Thu, 14 Apr 2016 12:56:37 +0000 (14:56 +0200)] 
base/init.sh: don't mount /run with noexec, if the initramfs lives there

If the initramfs was built with prefix=/run/... /run can't be mounted
with noexec, otherwise no binary can be run.

Guard against it by looking where /bin/sh is really located.

8 years agoRevert "fcoe: no need to copy lldpad state"
Harald Hoyer [Thu, 14 Apr 2016 11:38:24 +0000 (13:38 +0200)] 
Revert "fcoe: no need to copy lldpad state"

This reverts commit e93ff1cf9aac8f97131b3101a5da240ce5f45239.

seems like the file has to be copied back in the real root.

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

8 years agoNEWS: update for 045
Harald Hoyer [Thu, 14 Apr 2016 09:53:14 +0000 (11:53 +0200)] 
NEWS: update for 045

8 years agodracut-install: add --help documentation
Harald Hoyer [Thu, 14 Apr 2016 09:47:50 +0000 (11:47 +0200)] 
dracut-install: add --help documentation

8 years agoplymouth/plymouth-pretrigger.sh: also trigger acpi subsystem
Harald Hoyer [Wed, 6 Apr 2016 08:24:58 +0000 (10:24 +0200)] 
plymouth/plymouth-pretrigger.sh: also trigger acpi subsystem

Trigger the acpi subsystem. This will ensure hv_vmbus gets loaded before
plymouth is started, which will make the graphics device become
available before plymouth is started too (and the keyboard ! which might
also be important for plymouth in some setups).

https://bugzilla.redhat.com/show_bug.cgi?id=1218130
(cherry picked from commit d2846fdcce9b8de0edecdf0e06a4b86fc8de542c)

8 years agodracut-init.sh: beautify instmods()
Harald Hoyer [Wed, 13 Apr 2016 11:57:03 +0000 (13:57 +0200)] 
dracut-init.sh: beautify instmods()

8 years agodracut-install: simplify error logic
Harald Hoyer [Wed, 13 Apr 2016 11:28:29 +0000 (13:28 +0200)] 
dracut-install: simplify error logic

error out early, if "--optional" is not set

8 years agoFix regressions with dracut-install with kernel modules
Harald Hoyer [Wed, 13 Apr 2016 09:47:20 +0000 (11:47 +0200)] 
Fix regressions with dracut-install with kernel modules

Make sure, the same modules are installed as before.

8 years agoUse pkg-config for libkmod CFLAGS and LIBS
Harald Hoyer [Wed, 13 Apr 2016 09:13:32 +0000 (11:13 +0200)] 
Use pkg-config for libkmod CFLAGS and LIBS

8 years agoUse dracut-install to install kernel modules
Harald Hoyer [Thu, 23 Jul 2015 08:35:06 +0000 (10:35 +0200)] 
Use dracut-install to install kernel modules

dracut-install can now install kernel modules and their corresponding
firmware files.

8 years agodracut-init.sh: mark error messages with FAILED
Harald Hoyer [Mon, 11 Apr 2016 13:22:56 +0000 (15:22 +0200)] 
dracut-init.sh: mark error messages with FAILED

8 years agolsinitrd.sh: fixed unpack and skipcpio search
Harald Hoyer [Mon, 11 Apr 2016 13:22:11 +0000 (15:22 +0200)] 
lsinitrd.sh: fixed unpack and skipcpio search

8 years agodracut-init.sh: Add file argument to sed's
Harald Hoyer [Mon, 11 Apr 2016 11:36:06 +0000 (13:36 +0200)] 
dracut-init.sh: Add file argument to sed's

fixup for 06a1d0769055f437c938edd40bd9fbd622475864

8 years agodracut.sh: call dracut-install with "-f" in FIPS mode
Harald Hoyer [Mon, 21 Mar 2016 10:56:50 +0000 (11:56 +0100)] 
dracut.sh: call dracut-install with "-f" in FIPS mode

in fips mode, dracut-install was called with "-H" instead of "-f" in
FIPS mode

missed conversion of commit 26cd262a6a575a50ea384a2ceac6a6829efe8106

8 years agoMerge pull request #122 from scop/fixes
Harald Hoyer [Tue, 29 Mar 2016 09:19:58 +0000 (11:19 +0200)] 
Merge pull request #122 from scop/fixes

Various shell script improvements

8 years agodracut-init.sh: Simplify udev rule grepping 122/head
Ville Skyttä [Mon, 28 Mar 2016 09:09:06 +0000 (12:09 +0300)] 
dracut-init.sh: Simplify udev rule grepping

8 years agoClean up some bashisms from /bin/sh scripts
Ville Skyttä [Mon, 28 Mar 2016 08:52:14 +0000 (11:52 +0300)] 
Clean up some bashisms from /bin/sh scripts

8 years agonfs/module-setup.sh: Use colon instead of dot for chown user/group separator
Ville Skyttä [Mon, 28 Mar 2016 08:39:36 +0000 (11:39 +0300)] 
nfs/module-setup.sh: Use colon instead of dot for chown user/group separator

8 years agoDo not use deprecated egrep/fgrep
Ville Skyttä [Mon, 28 Mar 2016 08:38:34 +0000 (11:38 +0300)] 
Do not use deprecated egrep/fgrep

8 years agolsinitrd: add "--unpack" to lsinitrd
Harald Hoyer [Thu, 17 Mar 2016 13:45:24 +0000 (14:45 +0100)] 
lsinitrd: add "--unpack" to lsinitrd

also "--unpackearly" and "--verbose"

8 years agowatchdog: ensure that module is loaded as early as possible 121/head
Pratyush Anand [Wed, 16 Mar 2016 03:46:24 +0000 (09:16 +0530)] 
watchdog: ensure that module is loaded as early as possible

It is expected that a watchdog module will disable an active watchdog when
its probe is called ie, when it is loaded. So an early load of the module
will help to disable it earlier.
This can be helpful in some corner cases where kdump and watchdog daemon
both are active.

Testing:
    -- When watchdog kernel modules were added
# dracut --no-hostonly initramfs-test.img -a watchdog
# lsinitrd initramfs-test.img -f etc/cmdline.d/00-watchdog.conf
  rd.driver.pre=iTCO_wdt,lpc_ich,

Signed-off-by: Pratyush Anand <panand@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Harald Hoyer <harald@redhat.com>
8 years agowatchdog: install module for active watchdog
Pratyush Anand [Wed, 16 Mar 2016 03:39:10 +0000 (09:09 +0530)] 
watchdog: install module for active watchdog

Recently following patches have been added in upstream Linux kernel, which
(1) fixes parent of watchdog_device so that
/sys/class/watchdog/watchdogn/device is populated. (2) adds some sysfs
device attributes so that different watchdog status can be read.

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6551881c86c791237a3bebf11eb3bd70b60ea782
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=906d7a5cfeda508e7361f021605579a00cd82815
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=33b711269ade3f6bc9d9d15e4343e6fa922d999b

With the above support, now we can find out whether a watchdog is active or
not. We can also find out the driver/module responsible for that watchdog
device.

Proposed patch uses above support and then adds module of active watchdog
in initramfs generated by dracut for hostonly mode. Kernel module for
inactive watchdog will be added as well for none hostonly mode.

When an user does not want to add kernel module, then one should exclude
complete dracut watchdog module with --omit.

Testing:
-- When watchdog is active watchdog modules were added
# cat /sys/class/watchdog/watchdog0/identity
iTCO_wdt
# cat /sys/class/watchdog/watchdog0/state
active
# dracut --hostonly initramfs-test.img -a watchdog
# lsinitrd initramfs-test.img | grep iTCO
-rw-r--r--   1 root     root         9100 Feb 24 09:19 usr/lib/modules/.../kernel/drivers/watchdog/iTCO_vendor_support.ko
-rw-r--r--   1 root     root        19252 Feb 24 09:19 usr/lib/modules/.../kernel/drivers/watchdog/iTCO_wdt.ko

-- When watchdog is inactive then watchdog modules were not added
# cat /sys/class/watchdog/watchdog0/state
inactive
# dracut --hostonly initramfs-test.img -a watchdog
# lsinitrd initramfs-test.img | grep iTCO

-- When watchdog is inactive, but no hostonly mode, watchdog modules were added
# cat /sys/class/watchdog/watchdog0/state
inactive
# dracut --no-hostonly initramfs-test.img -a watchdog
# lsinitrd initramfs-test.img | grep iTCO
-rw-r--r--   1 root     root         9100 Feb 24 09:19 usr/lib/modules/.../kernel/drivers/watchdog/iTCO_vendor_support.ko
-rw-r--r--   1 root     root        19252 Feb 24 09:19 usr/lib/modules/.../kernel/drivers/watchdog/iTCO_wdt.ko

Signed-off-by: Pratyush Anand <panand@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Harald Hoyer <harald@redhat.com>
8 years agowatchdog: Do not add hooks if systemd module is included
Pratyush Anand [Wed, 16 Mar 2016 03:39:09 +0000 (09:09 +0530)] 
watchdog: Do not add hooks if systemd module is included

When systemd is present, let it manage watchdog feed.

Signed-off-by: Pratyush Anand <panand@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Harald Hoyer <harald@redhat.com>
8 years agodracut.conf.5.asc: fix bold
Harald Hoyer [Mon, 14 Mar 2016 13:16:12 +0000 (14:16 +0100)] 
dracut.conf.5.asc: fix bold

8 years agodracut-install: catch ldd message "cannot execute binary file"
Harald Hoyer [Mon, 14 Mar 2016 09:59:29 +0000 (10:59 +0100)] 
dracut-install: catch ldd message "cannot execute binary file"

8 years agodracut-systemd/dracut-pre-pivot.sh: Break at switch_root only for bare rd.break
Harald Hoyer [Mon, 7 Mar 2016 11:38:23 +0000 (12:38 +0100)] 
dracut-systemd/dracut-pre-pivot.sh: Break at switch_root only for bare rd.break

similar to commit ddfea6b54cfa8f8f6c970d970318568c8a8a4c78

Previously, any rd.break=breakpoint would cause a break at the
given breakpoint and also at switch_root.

8 years agoMerge branch 'master' of github.com:haraldh/dracut
Harald Hoyer [Mon, 29 Feb 2016 14:07:41 +0000 (15:07 +0100)] 
Merge branch 'master' of github.com:haraldh/dracut

8 years agonetwork/dhclient-script.sh: add classless-static-routes support
Harald Hoyer [Mon, 29 Feb 2016 13:52:16 +0000 (14:52 +0100)] 
network/dhclient-script.sh: add classless-static-routes support

https://bugzilla.redhat.com/show_bug.cgi?id=1260955
(cherry picked from commit a48ea27debb926a30810c9f1a42f096494c727e2)

8 years agodocumentation: "--hostonly-i18n" "--no-hostonly-i18n" "i18n_install_all"
Harald Hoyer [Mon, 29 Feb 2016 12:12:02 +0000 (13:12 +0100)] 
documentation: "--hostonly-i18n" "--no-hostonly-i18n" "i18n_install_all"

8 years agoMerge pull request #116 from evverx/fix-ask-cmdline-hostonly=0
Harald Hoyer [Tue, 16 Feb 2016 14:16:04 +0000 (15:16 +0100)] 
Merge pull request #116 from evverx/fix-ask-cmdline-hostonly=0

base/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup

8 years agoMerge pull request #115 from evverx/fix-dracut-cmdline-ask-service
Harald Hoyer [Tue, 16 Feb 2016 08:52:27 +0000 (09:52 +0100)] 
Merge pull request #115 from evverx/fix-dracut-cmdline-ask-service

dracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask

8 years agobase/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup 116/head
Evgeny Vereshchagin [Mon, 15 Feb 2016 13:47:18 +0000 (13:47 +0000)] 
base/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup

How to reproduce:
host# ./dracut.sh -o 'dracut-systemd systemd systemd-initrd' --local -f ./initramfs.img

host# qemu-system-x86_64 -initrd ./initramfs.img \
    -append 'root=/dev/sda1 rd.cmdline=ask rd.hostonly=0' \
    ...

Enter additional kernel command line parameter (end with ctrl-d or .)
> rd.break
> .
...
There is no "Break before switch_root"
...

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
8 years agodracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask 115/head
Evgeny Vereshchagin [Mon, 15 Feb 2016 08:29:40 +0000 (08:29 +0000)] 
dracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask

How to reproduce:

host# dracut --kernel-cmdline='rd.cmdline=ask' initramfs.img
host# qemu-system-x86_64 -initrd initramfs.img ... -append root=/dev/sda1 ...
...

qemu-host# journalctl -b | grep dracut-cmdline-ask
...
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Installed new job dracut-cmdline-ask.service/start as 42
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: ConditionKernelCommandLine=rd.cmdline=ask failed.
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Starting requested but condition failed. Not starting unit.
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Job dracut-cmdline-ask.service/start finished, result=done
...

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
8 years agokernel-modules: join instmods and install all usb/storage
Harald Hoyer [Tue, 26 Jan 2016 13:59:28 +0000 (14:59 +0100)] 
kernel-modules: join instmods and install all usb/storage

8 years agokernel-modules: add usb-storage
Harald Hoyer [Tue, 26 Jan 2016 13:56:05 +0000 (14:56 +0100)] 
kernel-modules: add usb-storage

To save the rdsosreport.txt to a USB stick, the usb-storage module is
needed

8 years agonetwork: if rd.neednet=0 we don't need a bootdev
Harald Hoyer [Tue, 26 Jan 2016 11:26:03 +0000 (12:26 +0100)] 
network: if rd.neednet=0 we don't need a bootdev

otherwise dracut would wait for the bootdev interface to appear and be
setup

8 years agoCorrectly handle module aliases 123/head
Fabian Vogt [Thu, 21 Jan 2016 16:13:07 +0000 (17:13 +0100)] 
Correctly handle module aliases

Handle module aliases correctly to not generate unbootable
initrds with different kernel versions when modules were renamed
or replaced.

Signed-off-by: Fabian Vogt <fvogt@suse.com>
8 years agonetwork: add mtu to list of variables to store in override
Harald Hoyer [Tue, 19 Jan 2016 14:12:39 +0000 (15:12 +0100)] 
network: add mtu to list of variables to store in override

8 years agoTEST-30-ISCSI: some tests have unknown return code
Harald Hoyer [Tue, 19 Jan 2016 13:43:43 +0000 (14:43 +0100)] 
TEST-30-ISCSI: some tests have unknown return code

by design

8 years agoFixed vlan, bonding, bridging, team logic
Harald Hoyer [Tue, 19 Jan 2016 10:34:10 +0000 (11:34 +0100)] 
Fixed vlan, bonding, bridging, team logic

Call ifup for the slaves and assemble afterwards.

8 years agoMerge pull request #111 from wyrmiyu/multipath_fix
Harald Hoyer [Tue, 19 Jan 2016 09:16:13 +0000 (10:16 +0100)] 
Merge pull request #111 from wyrmiyu/multipath_fix

multipath: fix majmin_to_mpath_dev()

8 years agomultipath: fix majmin_to_mpath_dev() 111/head
Pekka Wallendahl [Mon, 18 Jan 2016 18:28:22 +0000 (20:28 +0200)] 
multipath: fix majmin_to_mpath_dev()

* Multipath device names only start with the mpath-prefix if the option
  use_userfriendly_names is set true in /etc/multipath.conf and if user
  has not set any aliases in the said file. Thus the for-loop should go
  through all files in /dev/mapper/, not just ones starting with 'mpath'

* Bash is perfectly capable to extend `/dev/mapper/*` notation without a
  need to pass it to an external ls

* Changed the function to use a local variable $_dev instead of the
  global $dev, which seemed to be the original intention as the local
  _dev was defined but not used

8 years agodracut-functions.sh:fix check_vol_slaves() volume group name stripping
Harald Hoyer [Mon, 18 Jan 2016 15:59:42 +0000 (16:59 +0100)] 
dracut-functions.sh:fix check_vol_slaves() volume group name stripping

commit 466a59984a095f33993cffd5a3bea40826469b03 removed whitespace
stripping from lvm volume group names.