]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
8 years agoNEWS & AUTHORS update - 042 042
Harald Hoyer [Tue, 9 Jun 2015 11:04:31 +0000 (13:04 +0200)] 
NEWS & AUTHORS update - 042

8 years agoTODO: update
Harald Hoyer [Wed, 10 Jun 2015 16:45:45 +0000 (18:45 +0200)] 
TODO: update

8 years agoTEST-16-DMSQUASH: add more debug parms
Harald Hoyer [Wed, 10 Jun 2015 17:45:30 +0000 (19:45 +0200)] 
TEST-16-DMSQUASH: add more debug parms

8 years agorun-qemu: default kernel to "/lib/modules/${KVERSION}/vmlinuz"
Harald Hoyer [Wed, 10 Jun 2015 17:39:41 +0000 (19:39 +0200)] 
run-qemu: default kernel to "/lib/modules/${KVERSION}/vmlinuz"

newer Fedora kernel install the kernel to /lib/modules

8 years agodmsquash-live: install a sysroot.mount generator for systemd
Harald Hoyer [Wed, 10 Jun 2015 17:28:31 +0000 (19:28 +0200)] 
dmsquash-live: install a sysroot.mount generator for systemd

otherwise systemd uses its own sysroot.mount line

8 years agocrypt: check for crypttab before reading
Harald Hoyer [Tue, 9 Jun 2015 13:05:06 +0000 (15:05 +0200)] 
crypt: check for crypttab before reading

8 years agoudev-rules: add 60-block.rules
Harald Hoyer [Tue, 9 Jun 2015 13:04:36 +0000 (15:04 +0200)] 
udev-rules: add 60-block.rules

8 years agodracut-functions.sh: only honor the first [0-9]+<module> dir
Harald Hoyer [Tue, 9 Jun 2015 11:49:32 +0000 (13:49 +0200)] 
dracut-functions.sh: only honor the first [0-9]+<module> dir

If multiple directories with different numbers exist, only honor the
first one.

8 years agofixup test suite
Harald Hoyer [Tue, 9 Jun 2015 11:34:57 +0000 (13:34 +0200)] 
fixup test suite

- qemu wants to have "format=raw"
- "-kernel" is obsolete, because run-qemu picks the right path

8 years agodracut.conf.5.asc: document "compress"
Harald Hoyer [Tue, 9 Jun 2015 10:29:41 +0000 (12:29 +0200)] 
dracut.conf.5.asc: document "compress"

8 years agodracut.conf.5.asc: add missing "="
Harald Hoyer [Fri, 5 Jun 2015 10:59:58 +0000 (12:59 +0200)] 
dracut.conf.5.asc: add missing "="

8 years agoCorrect paths for openSUSE
Christian Rodrigues [Mon, 23 Mar 2015 16:12:15 +0000 (17:12 +0100)] 
Correct paths for openSUSE

openSUSE has things stored in different places, so fixup the
paths here.

Signed-off-by: Christian Rodrigues <crrodriguez@opensuse.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
8 years ago95fcoe-uefi: Test for EFI firmware
Hannes Reinecke [Mon, 23 Mar 2015 16:12:18 +0000 (17:12 +0100)] 
95fcoe-uefi: Test for EFI firmware

The fcoe-uefi module should test for EFI firmware when called
in 'hostonly' mode; of no EFI firmware is found then the module
doesn't need to be included.

References: bnc#882412

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
8 years agosystemd: include systemd-random-seed.service
Cristian Rodríguez [Tue, 10 Feb 2015 05:26:47 +0000 (02:26 -0300)] 
systemd: include systemd-random-seed.service

In current systemd releases there is no random-seed-load service
only systemd-random-seed.service

8 years agodoc: fix typo
Jan Synacek [Wed, 11 Feb 2015 13:06:25 +0000 (14:06 +0100)] 
doc: fix typo

8 years agoMerge pull request #58 from dracut-mailing-devs/20150326044148.10121.15286.stgit...
Harald Hoyer [Tue, 2 Jun 2015 10:04:51 +0000 (12:04 +0200)] 
Merge pull request #58 from dracut-mailing-devs/20150326044148.10121.15286.stgit@notabene.brown

mdraid fixes

8 years agocrypt/parse-crypt.sh: hide encrypted devices from systemd timeout warnings. 58/head
NeilBrown [Tue, 31 Mar 2015 21:57:41 +0000 (08:57 +1100)] 
crypt/parse-crypt.sh: hide encrypted devices from systemd timeout warnings.

When systemd's crypttab generator parsed crypttab, it tells
systemd about several devices which may not appear until later
in the boot sequence, and which are not needed while dract is running.

This can particularly happen when an md array is encrypted,
and the array is newly degraded so that it doesn't appear until
dracut runs mdraid_start.sh.

This can result in systemd printing warning messages which are
inappropriate.

So tell systemd that the timeout for each of these is zero.

This is involves splitting some functionality out of wait_for_dev()

That function does two things:
 - creates 'finished' hooks so that dracut will wait for the device,
   and
 - sets the systemd timeout for the device to zero, so systemd doesn't
   wait.

We only want the second of these for most encrypted devices.
So split that out into a new function set_systemd_timeout_for_dev(),
and call it from parse-crypt.sh

Signed-off-by: NeilBrown <neilb@suse.de>
--
This version fixes the missing redirect from /etc/crypttab
NeilBrown

8 years agoMerge pull request #67 from dracut-mailing-devs/1432116434-18050-1-git-send-email...
Harald Hoyer [Tue, 2 Jun 2015 09:57:58 +0000 (11:57 +0200)] 
Merge pull request #67 from dracut-mailing-devs/1432116434-18050-1-git-send-email-cfan@redhat.com

Change the fs_passno of nfs to 0

8 years agoMerge pull request #68 from dracut-mailing-devs/1431698021-16626-3-git-send-email...
Harald Hoyer [Tue, 2 Jun 2015 09:54:07 +0000 (11:54 +0200)] 
Merge pull request #68 from dracut-mailing-devs/1431698021-16626-3-git-send-email-colin@mageia.org

dracut: Make host only mode more resilient to missing swaps.
This patch set allows swap devices to disappear without cocking up a
host-only initramfs boot.

8 years agoMerge pull request #44 from MrStaticVoid/fix-crypt-loop-info-log-level
Harald Hoyer [Tue, 2 Jun 2015 09:49:25 +0000 (11:49 +0200)] 
Merge pull request #44 from MrStaticVoid/fix-crypt-loop-info-log-level

crypt-loop: Fix decrypt when running at info log level

8 years agoMerge pull request #45 from MrStaticVoid/fix-crypt-loop-hostonly-kernel-module
Harald Hoyer [Tue, 2 Jun 2015 09:47:58 +0000 (11:47 +0200)] 
Merge pull request #45 from MrStaticVoid/fix-crypt-loop-hostonly-kernel-module

crypt-loop: Always include 'loop' kernel module

8 years agodracut-initramfs-restore.sh: try to mount /boot
Harald Hoyer [Tue, 2 Jun 2015 09:33:45 +0000 (11:33 +0200)] 
dracut-initramfs-restore.sh: try to mount /boot

This is very useful when /boot has the "noauto" option.

Thanks to Igor Filakhtov

8 years agoMount /dev, /dev/shm and /run noexec
Nikoli [Sat, 15 Nov 2014 14:01:18 +0000 (17:01 +0300)] 
Mount /dev, /dev/shm and /run noexec

8 years agoMerge pull request #51 from dracut-mailing-devs/13711492.8HAMuGhYIN@thunder
Harald Hoyer [Tue, 2 Jun 2015 09:44:39 +0000 (11:44 +0200)] 
Merge pull request #51 from dracut-mailing-devs/13711492.8HAMuGhYIN@thunder

Add support for ethernet point-to-point connections configured via DHCP

8 years agoMerge pull request #53 from dracut-mailing-devs/E1YQLG5-00009v-BS@puleglot.ru
Harald Hoyer [Tue, 2 Jun 2015 09:20:10 +0000 (11:20 +0200)] 
Merge pull request #53 from dracut-mailing-devs/E1YQLG5-00009v-BS@puleglot.ru

base/dracut-lib.sh: remove bashism

8 years agoPortability fixes:
xtraeme [Tue, 2 Jun 2015 09:11:21 +0000 (11:11 +0200)] 
Portability fixes:

- Use uid_t not __uid_t.
- Define _GNU_SOURCE for cpu_set_t and others.
- Include string.h for strncmp().
- Detect musl's ldd error message.

8 years agoMerge pull request #64 from fabiand/lvm-activationskip
Harald Hoyer [Tue, 2 Jun 2015 09:11:40 +0000 (11:11 +0200)] 
Merge pull request #64 from fabiand/lvm-activationskip

Respect LVM activationskip

8 years agoMerge pull request #65 from scop/comment
Harald Hoyer [Tue, 2 Jun 2015 09:10:59 +0000 (11:10 +0200)] 
Merge pull request #65 from scop/comment

Fix stale comment about required bash version

8 years agoMerge pull request #66 from scop/lbzip2
Harald Hoyer [Tue, 2 Jun 2015 09:10:29 +0000 (11:10 +0200)] 
Merge pull request #66 from scop/lbzip2

Use lbzip2 instead of bzip2 if available

8 years agodracut.spec: use the autosetup macro to apply the patches
Harald Hoyer [Wed, 20 May 2015 12:55:19 +0000 (14:55 +0200)] 
dracut.spec: use the autosetup macro to apply the patches

8 years agonetwork: setup gateway after setting up resolv.conf
Harald Hoyer [Thu, 28 May 2015 17:44:55 +0000 (19:44 +0200)] 
network: setup gateway after setting up resolv.conf

If a daemon listens for route changes and wants to use the interface
afterwards, it should be able to resolve DNS

8 years agodracut.sh: fall back to /usr/lib/os-release, if /etc/os-release missing
Harald Hoyer [Thu, 21 May 2015 12:43:14 +0000 (14:43 +0200)] 
dracut.sh: fall back to /usr/lib/os-release, if /etc/os-release missing

8 years agoudev-rules: optionally install /etc/udev/udev.conf
Harald Hoyer [Thu, 21 May 2015 12:42:39 +0000 (14:42 +0200)] 
udev-rules: optionally install /etc/udev/udev.conf

udevd runs even without this config file

8 years agoUse lbzip2 instead of bzip2 if available 66/head
Ville Skyttä [Sun, 24 May 2015 19:29:20 +0000 (22:29 +0300)] 
Use lbzip2 instead of bzip2 if available

8 years agoFix stale comment about required bash version 65/head
Ville Skyttä [Sun, 24 May 2015 19:26:20 +0000 (22:26 +0300)] 
Fix stale comment about required bash version

8 years agolvm: Don't activate LVs with activationskip set 64/head
Fabian Deutsch [Thu, 21 May 2015 10:38:05 +0000 (12:38 +0200)] 
lvm: Don't activate LVs with activationskip set

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1186854
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
8 years agodoc: Add a minimal rd.live.overlay documentation
Fabian Deutsch [Thu, 21 May 2015 10:37:38 +0000 (12:37 +0200)] 
doc: Add a minimal rd.live.overlay documentation

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
8 years agoChange the fs_passno of nfs to 0 67/head
Chao Fan [Wed, 20 May 2015 10:07:14 +0000 (18:07 +0800)] 
Change the fs_passno of nfs to 0

There is a bug that kdump-initrd contains entry requesting nfs dump
filesystem to get filesystemchecked. And there is an erro message said
that nfs need be checked. But there's no fsck for nfs utility, e.g
fsck.nfs like other file system. Whatever fs_passno 0 or 2 are passed,
no fsck is executed at all for nfs mount.But in dracut, set it to be 2
always, so the erro message appear and it should be set to 0.

In the fstab,the sixth variable fs_passno stands for that the device need
checked or not,and dracut set it to "2".To fix this issue, it should
be "0" when the device is nfs.The third variable stands for the type of
the filesystem and we can use it to judge whether the device is nfs.
So when the third variable of fstab contains "nfs", the sixth variable
fs_passno should be set to "0".

Signed-off-by: Chao Fan <cfan@redhat.com>
8 years ago50drm: add hyperv_fb kernel module
Harald Hoyer [Mon, 18 May 2015 11:43:26 +0000 (13:43 +0200)] 
50drm: add hyperv_fb kernel module

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

8 years agoMerge remote-tracking branch 'github/master'
Harald Hoyer [Mon, 18 May 2015 11:28:00 +0000 (13:28 +0200)] 
Merge remote-tracking branch 'github/master'

8 years ago51-dracut-rescue.install: fix kernel cmdline parsing
Harald Hoyer [Mon, 18 May 2015 11:25:08 +0000 (13:25 +0200)] 
51-dracut-rescue.install: fix kernel cmdline parsing

filter out any "initrd=" option

8 years agoresume: Ensure we actually wait for the /dev/resume 'device' 68/head
Colin Guthrie [Fri, 15 May 2015 13:53:41 +0000 (14:53 +0100)] 
resume: Ensure we actually wait for the /dev/resume 'device'

Although various bits are in place to cancel waiting for the /dev/resume
device (actually a symlink), we don't actually ever wait for it.

Also as the udev rule may create the symlink, silence any errors from
our manual ln -s call from the settled job.

8 years agobase: Don't wait for swap devices in host-only mode.
Colin Guthrie [Fri, 15 May 2015 13:53:40 +0000 (14:53 +0100)] 
base: Don't wait for swap devices in host-only mode.

The only reason we add swap devices to host-only mode (added in
dd5875499ece9dbc90e10eafd0073ee15d0c86a4) is to allow us to process
resume= arguments passed on the kernel command line when the swap
partition lives on something slightly more complex than a normal
partion (e.g. in an LVM or RAID setup).

By adding the device to host_devs, the necessary LVM and RAID hooks
are added and thus the underlying storage will be initialised OK, and
the 95resume module handles the waiting for the device (via udev rules
creating the /dev/resume symlink).

So ultimately, we do not need to hard-code the waiting for the swap
devices into the initramfs at build time as the waiting part can be
dynamic.

This makes things more resiliant to swap partitions disappearing and
being reformatted etc.

Inspired by a patch by Martin Whitaker on Mageia bug:
https://bugs.mageia.org/show_bug.cgi?id=12305

8 years agodmraid/dmraid.sh: call udevsettle after activating all raids
Harald Hoyer [Wed, 13 May 2015 10:31:07 +0000 (12:31 +0200)] 
dmraid/dmraid.sh: call udevsettle after activating all raids

otherwise a uevent loop will happen and the initqueue main loop counter
will not be incremented

8 years ago5?-dracut*.install: better parsing of /proc/cmdline
Harald Hoyer [Wed, 13 May 2015 09:49:05 +0000 (11:49 +0200)] 
5?-dracut*.install: better parsing of /proc/cmdline

"read -r -d '' -a" does, what we want.

8 years agouse cp --reflink=auto
Harald Hoyer [Wed, 13 May 2015 09:49:38 +0000 (11:49 +0200)] 
use cp --reflink=auto

saves some space, if the destination is on the same filesystem on some
filesystems

8 years agoadd dracut.pc pkg-config file
Harald Hoyer [Wed, 13 May 2015 09:46:05 +0000 (11:46 +0200)] 
add dracut.pc pkg-config file

8 years ago.dir-locals.el: correct syntax
Harald Hoyer [Wed, 13 May 2015 09:44:00 +0000 (11:44 +0200)] 
.dir-locals.el: correct syntax

8 years agoREADME.testsuite: add bridge-utils to list of rpms
Harald Hoyer [Thu, 7 May 2015 16:15:57 +0000 (18:15 +0200)] 
README.testsuite: add bridge-utils to list of rpms

8 years agonetwork/net-lib.sh:iface_has_link() wait 5s for the carrier to appear
Harald Hoyer [Thu, 7 May 2015 12:47:58 +0000 (14:47 +0200)] 
network/net-lib.sh:iface_has_link() wait 5s for the carrier to appear

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

8 years agonetwork:dhcp:wait_for_ipv6_dad() in PREINIT6
Harald Hoyer [Thu, 7 May 2015 12:42:10 +0000 (14:42 +0200)] 
network:dhcp:wait_for_ipv6_dad() in PREINIT6

8 years agoMerge pull request #61 from cmorty/pull/plymouth
Harald Hoyer [Thu, 30 Apr 2015 09:28:49 +0000 (11:28 +0200)] 
Merge pull request #61 from cmorty/pull/plymouth

Add plymouth-set-default-theme to the plymouth dependencies

8 years agoAdd plymouth-set-default-theme to the plymouth dependencies 61/head
Moritz 'Morty' Strübe [Thu, 30 Apr 2015 09:15:07 +0000 (11:15 +0200)] 
Add plymouth-set-default-theme to the plymouth dependencies

plymouth-set-default-theme is not shipped with ubuntu and therefore
causes errors.

8 years agoMerge pull request #59 from lnykryn/master
Harald Hoyer [Thu, 30 Apr 2015 07:29:06 +0000 (09:29 +0200)] 
Merge pull request #59 from lnykryn/master

dracut-functions: use [[ ]] with -n and no quotes

8 years agoMerge pull request #60 from rustybird/master
Harald Hoyer [Thu, 30 Apr 2015 07:28:50 +0000 (09:28 +0200)] 
Merge pull request #60 from rustybird/master

Fix ask_for_password bug breaking bash without plymouth

8 years agoFix ask_for_password bug breaking bash without plymouth 60/head
Rusty Bird [Thu, 30 Apr 2015 03:25:14 +0000 (03:25 +0000)] 
Fix ask_for_password bug breaking bash without plymouth

If crypt-lib.sh is sourced from any #!/bin/sh script, a POSIX shell
quirk is in effect that causes variable assignments to "special
builtins" (such as "shift") to leak to their context. So the buggy
code works even despite the missing semicolons.

But if it is sourced by "bash acting under its own name", i.e. from
any #!/bin/bash script, the quirk is disabled, tty_cmd/tty_prompt are
undefined, and ask_for_password doesn't do anything if plymouth is not
present.

8 years agochange "while read x" to cope with EOF without newline
Harald Hoyer [Mon, 5 Jan 2015 15:07:38 +0000 (16:07 +0100)] 
change "while read x" to cope with EOF without newline

while read x || [ -n "$x" ]

should do the trick

8 years agofips: add some s390 kernel modules
Harald Hoyer [Tue, 28 Apr 2015 08:46:33 +0000 (10:46 +0200)] 
fips: add some s390 kernel modules

8 years agodracut-functions: use [[ ]] with -n and no quotes 59/head
Lukas Nykryn [Mon, 27 Apr 2015 09:38:26 +0000 (11:38 +0200)] 
dracut-functions: use [[ ]] with -n and no quotes

9 years agodmsquash-live/apply-live-updates.sh: needs 'find'
Harald Hoyer [Fri, 24 Apr 2015 10:13:42 +0000 (12:13 +0200)] 
dmsquash-live/apply-live-updates.sh: needs 'find'

also add /run/initramfs/live/updates as a directory, where to pull
the updates from

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

9 years agoDefer modprobe of HW modules, until udev is running
Harald Hoyer [Fri, 24 Apr 2015 09:54:07 +0000 (11:54 +0200)] 
Defer modprobe of HW modules, until udev is running

Also honor blacklisting

9 years agodrm/module-setup.sh: radeon needs amdkfd
Harald Hoyer [Thu, 23 Apr 2015 14:11:53 +0000 (16:11 +0200)] 
drm/module-setup.sh: radeon needs amdkfd

AMD's HSA Linux kernel driver (amdkfd) has been merged into the mainline
kernel since kernel 3.19.

However, for the driver to work, it needs to be included in the default
initramfs image, together with the amd_iommu_v2 driver.

The radeon driver (AMD's kernel graphic driver) calls amdkfd during its
initialization and probing stages. Because radeon is included in the
initramfs image, it tries to initialize amdkfd during the early boot
stages. However, as amdkfd is not present there, it fails.

That doesn't harm radeon operation. However, it disables the HSA
abilities in the machine.

Because of the current design, if you later try to "modprobe amdkfd",
you won't be able to run HSA applications, even though the driver will
be loaded.

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

9 years agoMakefile: turn off hostonly excplicitely for testimage target
Harald Hoyer [Thu, 23 Apr 2015 14:11:26 +0000 (16:11 +0200)] 
Makefile: turn off hostonly excplicitely for testimage target

9 years agokernel-modules: install all HID drivers
Harald Hoyer [Thu, 23 Apr 2015 11:46:52 +0000 (13:46 +0200)] 
kernel-modules: install all HID drivers

Instead of hardcoding a list of useful drivers, which has to be curated
all the time, just include all HID drivers.

9 years agodracut-systemd/rootfs-generator.sh: use strstr rather than grep
Harald Hoyer [Tue, 21 Apr 2015 14:35:34 +0000 (16:35 +0200)] 
dracut-systemd/rootfs-generator.sh: use strstr rather than grep

grep on /proc/cmdline is overkill and would add a requirement for grep

9 years agoifcfg/write-ifcfg.sh: unset vlan
Harald Hoyer [Tue, 21 Apr 2015 08:34:31 +0000 (10:34 +0200)] 
ifcfg/write-ifcfg.sh: unset vlan

clear the vlan flag, if a previous interface in the loop
was a vlan interface

9 years agoMerge pull request #55 from dracut-mailing-devs/1427202794-18834-1-git-send-email...
Harald Hoyer [Thu, 26 Mar 2015 17:34:49 +0000 (18:34 +0100)] 
Merge pull request #55 from dracut-mailing-devs/1427202794-18834-1-git-send-email-aidecoe@aidecoe.name

Take into account lib64 dirs when detecting version, modules and params

9 years agoTake into account lib64 dirs when detecting version, modules and params 55/head
Amadeusz Żołnowski [Tue, 24 Mar 2015 13:13:14 +0000 (14:13 +0100)] 
Take into account lib64 dirs when detecting version, modules and params

9 years agobase/dracut-lib.sh: remove bashism 53/head
Alexander Tsoy [Tue, 24 Feb 2015 19:28:24 +0000 (22:28 +0300)] 
base/dracut-lib.sh: remove bashism

9 years agodracut-systemd/rootfs-generator.sh: always create generated files.
NeilBrown [Thu, 26 Mar 2015 04:41:48 +0000 (15:41 +1100)] 
dracut-systemd/rootfs-generator.sh: always create generated files.

When 'systemctl daemon-reload' is run, systemd will clean out
/run/systemd/generator and re-run all the generators.
So it is important that the generators always create the required
files.

rootfs-generator.sh currently does *not* create the desired files
if $hookdir/initqueue/finished/devexists-${_name}.sh
exists.

This is not removed by "systectl daemon-reload" so the first time this
generator is run it will do the right thing.  Subsequent times it
won't.

This results in incorrect timeouts after "daemon-reload" is run.

So let the existence of each file only guard the creation that file.

Signed-off-by: NeilBrown <neilb@suse.de>
9 years agosystemd/dracut-iniqueue - continue waiting if any timeout script makes progress
NeilBrown [Thu, 26 Mar 2015 04:41:47 +0000 (15:41 +1100)] 
systemd/dracut-iniqueue - continue waiting if any timeout script makes progress

A number of timeout scripts can be registered.  If any one of them
makes progress - e.g. assembles a degraded md array - then
the main loop should wait a bit longer rather than pressing forward.

This is particularly important is resume-from-hibernate requires a
degraded md array.  Both the script to forcibly assemble the md array
and the script to abort hibernation if the device doesn't appear
are 'timeout' scripts.  There needs to be a reasonable delay between
these running.

So: if any script has indicated that progress was made, break of out
the loop and go back to normal waiting.

Signed-off-by: NeilBrown <neilb@suse.de>
9 years agomdraid/mdraid_start.sh: tell mainloop if we make progress.
NeilBrown [Thu, 26 Mar 2015 04:41:46 +0000 (15:41 +1100)] 
mdraid/mdraid_start.sh: tell mainloop if we make progress.

mdraid_start is a number of scripts which run after a timeout.
If it makes progress, it should tell the main loop so that it
knows that it is worth waiting a bit longer.

So in that case, create the initqueue/work file which the main loop
checks for.

Signed-off-by: NeilBrown <neilb@suse.de>
9 years agoAdd support for ethernet point-to-point connections configured via DHCP 51/head
Gerd von Egidy [Thu, 5 Mar 2015 11:07:57 +0000 (12:07 +0100)] 
Add support for ethernet point-to-point connections configured via DHCP

When current dracut receives an ip with netmask of 255.255.255.255 via DHCP,
setting the also supplied default gateway fails (because it is obviously not
within the netmask).

The setup with a netmask of /32 is quite common in colocation datacenters
where you don't want the machines of two different customers to directly talk
to each other. At least two of the biggest colocation providers in Germany
(1&1 and Strato) do it that way. NetworkManager supports this kind of setup
and the dhclient-scripts of several distributions too.

In this patch I have implemented a simple approach very similar to what is
found in Debian. The dhclient-script from Fedora uses a more sophisticated
approach, but that relies on the ipcalc utility which would introduce a
dependency on Fedora-initscripts for dracut.

Signed-off-by: Gerd von Egidy <gerd.von.egidy@intra2net.com>
9 years agotest: include kernel-network-modules for network tests
Harald Hoyer [Thu, 26 Mar 2015 09:57:58 +0000 (10:57 +0100)] 
test: include kernel-network-modules for network tests

9 years agocrypt-loop: Always include 'loop' kernel module 45/head
James Lee [Thu, 26 Mar 2015 06:17:34 +0000 (02:17 -0400)] 
crypt-loop: Always include 'loop' kernel module

When the 'loop' kernel module isn't loaded in a running system, it gets
excluded from the hostonly initrd.  Given that the crypt-loop dracut
module has to be loaded explicitly anyway, it makes sense to always
include the requisite loop kernel module.

9 years agocrypt-loop: Fix decrypt when running at info log level 44/head
James Lee [Wed, 25 Mar 2015 20:57:41 +0000 (16:57 -0400)] 
crypt-loop: Fix decrypt when running at info log level

When booting with 'rd.info', the 'info' statements in the crypt-loop
module's 'loop_decrypt' function are output to stdout along with the key
that gets piped into the 'cryptsetup' command, which causes the crypt
device unlocking to fail.

There are two possible simple solutions to this problem:

1. Redirect the info messages to stderr (just add '>&2' at the end of
the info statements).

or

2. Remove the info statements altogether.

I have tested both and they both work, but this commit implements #2.
The existing info messages are long (they overflow 80 characters
easily) and redundant (the password prompt clearly indicates what is
happening), and just generally not useful.  Given that no one has
reported or fixed this bug in the three years that this module has
existed, no one will miss these info messages.

The commit also changes an error message in the same function to be more
descriptive.

9 years agoMerge pull request #35 from enovance/fix_include_variables_name
Harald Hoyer [Tue, 24 Mar 2015 19:46:06 +0000 (20:46 +0100)] 
Merge pull request #35 from enovance/fix_include_variables_name

dracut: Ajusting variables name for --include

9 years agodracut.spec: add new modules
Harald Hoyer [Tue, 24 Mar 2015 15:10:03 +0000 (16:10 +0100)] 
dracut.spec: add new modules

9 years agofcoe/lldpad.sh: add executable flags
Harald Hoyer [Tue, 24 Mar 2015 15:00:55 +0000 (16:00 +0100)] 
fcoe/lldpad.sh: add executable flags

9 years agocrypt-loop/module-setup.sh: make module-setup.sh executable
Harald Hoyer [Tue, 24 Mar 2015 15:00:00 +0000 (16:00 +0100)] 
crypt-loop/module-setup.sh: make module-setup.sh executable

9 years agodracut-systemd/module-setup.sh: make module-setup.sh executable
Harald Hoyer [Tue, 24 Mar 2015 14:59:08 +0000 (15:59 +0100)] 
dracut-systemd/module-setup.sh: make module-setup.sh executable

9 years agosystemd-networkd: add experimental systemd-networkd support
Harald Hoyer [Tue, 24 Mar 2015 14:57:50 +0000 (15:57 +0100)] 
systemd-networkd: add experimental systemd-networkd support

9 years agonetwork: split out kernel-network-modules
Harald Hoyer [Tue, 24 Mar 2015 14:56:50 +0000 (15:56 +0100)] 
network: split out kernel-network-modules

9 years agodebug: add more tools to the dracut debug module
Harald Hoyer [Tue, 24 Mar 2015 14:56:00 +0000 (15:56 +0100)] 
debug: add more tools to the dracut debug module

9 years agosystemd-initrd: add /etc/initrd-release
Harald Hoyer [Tue, 24 Mar 2015 14:55:34 +0000 (15:55 +0100)] 
systemd-initrd: add /etc/initrd-release

9 years agodracut.sh: create /var/tmp
Harald Hoyer [Tue, 24 Mar 2015 14:54:56 +0000 (15:54 +0100)] 
dracut.sh: create /var/tmp

9 years agosystemd: add more targets and tools
Harald Hoyer [Tue, 24 Mar 2015 14:54:42 +0000 (15:54 +0100)] 
systemd: add more targets and tools

also set the multi-user.target as the default target

9 years agodracut.spec: removed compat /sbin symlink to dracut binary
Harald Hoyer [Mon, 23 Mar 2015 11:19:41 +0000 (12:19 +0100)] 
dracut.spec: removed compat /sbin symlink to dracut binary

9 years agoTEST-30-ISCSI/test.sh: add all dracut modules
Harald Hoyer [Fri, 20 Mar 2015 15:13:30 +0000 (16:13 +0100)] 
TEST-30-ISCSI/test.sh: add all dracut modules

add all dracut modules to catch netroot conflicts and side effects like

afcc697cb8c588eef68bb635f790991411209089

9 years agonfs/parse-nfsroot.sh: don't unset netroot, if not nfs
Harald Hoyer [Fri, 20 Mar 2015 14:48:15 +0000 (15:48 +0100)] 
nfs/parse-nfsroot.sh: don't unset netroot, if not nfs

9 years agodracut.sh: add support for creating a UEFI boot executable
Harald Hoyer [Thu, 19 Mar 2015 11:55:17 +0000 (12:55 +0100)] 
dracut.sh: add support for creating a UEFI boot executable

With an EFI stub, the kernel, the initramfs and a kernel cmdline can be
glued together to a single UEFI executable, which can be booted by a
UEFI BIOS.

9 years agodracut.sh: only print cmdline from modules, which would be included
Harald Hoyer [Thu, 19 Mar 2015 11:44:55 +0000 (12:44 +0100)] 
dracut.sh: only print cmdline from modules, which would be included

9 years agodracut.sh: simplify module install loop
Harald Hoyer [Thu, 19 Mar 2015 11:45:38 +0000 (12:45 +0100)] 
dracut.sh: simplify module install loop

9 years agorootfs-block/module-setup.sh: find root btrfs subvolumes
Harald Hoyer [Thu, 19 Mar 2015 11:34:20 +0000 (12:34 +0100)] 
rootfs-block/module-setup.sh: find root btrfs subvolumes

If root is a btrfs subvolume, find it, if fstab is not used

9 years agotest: ping watchdog in dhcp servers
Harald Hoyer [Thu, 19 Mar 2015 15:40:05 +0000 (16:40 +0100)] 
test: ping watchdog in dhcp servers

9 years agobase/dracut-lib.sh: read /proc/cmdline with multiple lines
Harald Hoyer [Thu, 19 Mar 2015 11:33:03 +0000 (12:33 +0100)] 
base/dracut-lib.sh: read /proc/cmdline with multiple lines

also parse cmdline files without an ending newline

9 years agodracut.sh: factor out do_print_cmdline()
Harald Hoyer [Thu, 19 Mar 2015 10:04:02 +0000 (11:04 +0100)] 
dracut.sh: factor out do_print_cmdline()

9 years agoSplit the systemd dracut module up
Harald Hoyer [Thu, 19 Mar 2015 09:02:05 +0000 (10:02 +0100)] 
Split the systemd dracut module up

Basic systemd functionality is in 00systemd now.
Switching root and the initrd.target is in 00systemd-initrd.
Dracut additions to the systemd initrd are in 98dracut-systemd.

9 years agobase/module-setup.sh: merge systemd conditional
Harald Hoyer [Thu, 19 Mar 2015 09:00:48 +0000 (10:00 +0100)] 
base/module-setup.sh: merge systemd conditional

9 years agolvm: add files needed for LVM system id support
Harald Hoyer [Mon, 16 Mar 2015 10:55:13 +0000 (11:55 +0100)] 
lvm: add files needed for LVM system id support

The LVM system id support is recent addition to LVM. See
https://git.fedorahosted.org/cgit/lvm2.git/tree/man/lvmsystemid.7.in for
more information (since lvm v2.02.117, currently the configuration is
ignored, but we will enable it soon in next release).

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