]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
10 years agodracut-031 031
Harald Hoyer [Wed, 31 Jul 2013 12:24:25 +0000 (14:24 +0200)] 
dracut-031

10 years agokernel-modules/module-setup.sh: silently omit some filesystem drivers
Harald Hoyer [Wed, 31 Jul 2013 11:49:52 +0000 (13:49 +0200)] 
kernel-modules/module-setup.sh: silently omit some filesystem drivers

10 years agodracut.conf.d/fedora.conf.example: don't omit drivers
Harald Hoyer [Wed, 31 Jul 2013 11:49:32 +0000 (13:49 +0200)] 
dracut.conf.d/fedora.conf.example: don't omit drivers

10 years agosystemd: use systemd in the initramfs, if installed on the system
Harald Hoyer [Wed, 31 Jul 2013 11:30:49 +0000 (13:30 +0200)] 
systemd: use systemd in the initramfs, if installed on the system

and systemd version is >= 198

10 years agonetwork: add vlan support for iBFT
Harald Hoyer [Wed, 31 Jul 2013 11:17:24 +0000 (13:17 +0200)] 
network: add vlan support for iBFT

10 years agodracut-logger.sh: do not use systemd-cat, if no /run/systemd/journal
Harald Hoyer [Wed, 31 Jul 2013 11:12:41 +0000 (13:12 +0200)] 
dracut-logger.sh: do not use systemd-cat, if no /run/systemd/journal

10 years agonetwork/net-lib.sh: safeguard against incomplete iBFT settings
Harald Hoyer [Wed, 31 Jul 2013 10:00:53 +0000 (12:00 +0200)] 
network/net-lib.sh: safeguard against incomplete iBFT settings

10 years agofips: handle checksum checks for RHEV kernels
Harald Hoyer [Wed, 31 Jul 2013 09:31:13 +0000 (11:31 +0200)] 
fips: handle checksum checks for RHEV kernels

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

10 years agofips: cope with module aliases, when checking modules
Harald Hoyer [Wed, 31 Jul 2013 09:26:46 +0000 (11:26 +0200)] 
fips: cope with module aliases, when checking modules

Also do not fail, if module aliases try to load CPU specific modules
like crc32c_intel.

10 years agoTEST-30-ISCSI: eth0 -> ens3
Harald Hoyer [Wed, 31 Jul 2013 09:23:51 +0000 (11:23 +0200)] 
TEST-30-ISCSI: eth0 -> ens3

10 years agoremove "< <(" syntax
Harald Hoyer [Wed, 31 Jul 2013 09:00:29 +0000 (11:00 +0200)] 
remove "< <(" syntax

bash seems to want /dev/fd in that case. dracut is sometimes called in
environments, where /proc and /dev are not mounted.

10 years agoTEST-50-MULTINIC: change interface names to ens*
Harald Hoyer [Wed, 31 Jul 2013 08:59:25 +0000 (10:59 +0200)] 
TEST-50-MULTINIC: change interface names to ens*

10 years agoTEST-10: double disk space
Harald Hoyer [Wed, 31 Jul 2013 07:57:57 +0000 (09:57 +0200)] 
TEST-10: double disk space

10 years agodracut.spec: add bcache and modsign module
Harald Hoyer [Tue, 30 Jul 2013 14:21:59 +0000 (16:21 +0200)] 
dracut.spec: add bcache and modsign module

10 years agobase/init.sh: create static device nodes with kmod
Harald Hoyer [Tue, 30 Jul 2013 14:19:03 +0000 (16:19 +0200)] 
base/init.sh: create static device nodes with kmod

10 years agosystemd/dracut-pre-trigger.service: run after systemd-tmpfiles-setup-dev
Harald Hoyer [Tue, 30 Jul 2013 14:18:28 +0000 (16:18 +0200)] 
systemd/dracut-pre-trigger.service: run after systemd-tmpfiles-setup-dev

10 years agosystemd: include systemd-tempfiles
Harald Hoyer [Tue, 30 Jul 2013 14:18:03 +0000 (16:18 +0200)] 
systemd: include systemd-tempfiles

10 years agodracut.sh: check for file existance before trying to read from it
Harald Hoyer [Tue, 30 Jul 2013 13:33:10 +0000 (15:33 +0200)] 
dracut.sh: check for file existance before trying to read from it

10 years agobase: hard depend on systemd, if system was started by systemd
Harald Hoyer [Tue, 30 Jul 2013 10:36:12 +0000 (12:36 +0200)] 
base: hard depend on systemd, if system was started by systemd

10 years agocrypt: Wait for udev to settle before unlocking disk
James Lee [Mon, 29 Jul 2013 20:10:22 +0000 (16:10 -0400)] 
crypt: Wait for udev to settle before unlocking disk

To eliminate a race condition that occurs when unlocking one device
depends on the result of unlocking a device before it, the crypt
module must wait for udev to settle between each unlock attempt.

Example

/etc/crypttab:

  keyfile /dev/md1 none luks
  sda4_crypt /dev/sda4 /dev/mapper/keyfile luks
  sdb4_crypt /dev/sdb4 /dev/mapper/keyfile luks

Without this patch, sometimes /dev/sda4 fails to unlock because udev
doesn't have time to create /dev/mapper/keyfile before it's needed.

10 years agourl-lib/module-setup.sh: fixed grepping libcurl
Harald Hoyer [Tue, 30 Jul 2013 13:25:44 +0000 (15:25 +0200)] 
url-lib/module-setup.sh: fixed grepping libcurl

10 years agomdraid/mdmon-pre-shutdown.sh: removed unneeded code
Harald Hoyer [Tue, 30 Jul 2013 13:24:05 +0000 (15:24 +0200)] 
mdraid/mdmon-pre-shutdown.sh: removed unneeded code

10 years agobase/dracut-lib.sh: check for /proc/cmdline existance
Harald Hoyer [Tue, 30 Jul 2013 13:14:59 +0000 (15:14 +0200)] 
base/dracut-lib.sh: check for /proc/cmdline existance

10 years agodracut.spec: fix typo
Harald Hoyer [Tue, 30 Jul 2013 11:27:36 +0000 (13:27 +0200)] 
dracut.spec: fix typo

10 years agosystemd: add support for kmod static devnodes
Harald Hoyer [Tue, 30 Jul 2013 09:58:33 +0000 (11:58 +0200)] 
systemd: add support for kmod static devnodes

10 years agonetwork:ifup handle bootif style interfaces
Harald Hoyer [Mon, 29 Jul 2013 14:06:28 +0000 (16:06 +0200)] 
network:ifup handle bootif style interfaces

e.g. ip=77-77-6f-6f-64-73:dhcp

10 years agoLatArCyrHeb-16 as a default i18n font for Gentoo
Amadeusz Żołnowski [Thu, 25 Jul 2013 18:24:56 +0000 (20:24 +0200)] 
LatArCyrHeb-16 as a default i18n font for Gentoo

10 years agocrypt: Skip /etc/crypttab if not present
Amadeusz Żołnowski [Thu, 25 Jul 2013 21:28:44 +0000 (23:28 +0200)] 
crypt: Skip /etc/crypttab if not present

Prevents following error message:

I: *** Including module: crypt ***
/usr/lib/dracut/modules.d/90crypt/module-setup.sh: line 31: /etc/crypttab: No such file or directory

10 years agobcache: add support for bcache
Harald Hoyer [Wed, 24 Jul 2013 12:35:19 +0000 (14:35 +0200)] 
bcache: add support for bcache

10 years agodracut.sh: check for /sbin /bin /lib
Harald Hoyer [Wed, 24 Jul 2013 11:43:32 +0000 (13:43 +0200)] 
dracut.sh: check for /sbin /bin /lib

use readlink to detect, if /usr has to be mounted

10 years agoadd debian udev rule files
Harald Hoyer [Wed, 24 Jul 2013 11:42:17 +0000 (13:42 +0200)] 
add debian udev rule files

10 years agousrmount: do not install, if /sbin/init does not live in /usr
Harald Hoyer [Wed, 24 Jul 2013 11:41:15 +0000 (13:41 +0200)] 
usrmount: do not install, if /sbin/init does not live in /usr

10 years agodracut-functions.sh:get_fs_env() fallback to blkid for ID_FS_TYPE not found
Harald Hoyer [Wed, 24 Jul 2013 11:38:57 +0000 (13:38 +0200)] 
dracut-functions.sh:get_fs_env() fallback to blkid for ID_FS_TYPE not found

10 years agomodsign: do not install, if no keys present
Harald Hoyer [Wed, 24 Jul 2013 08:34:19 +0000 (10:34 +0200)] 
modsign: do not install, if no keys present

also fixed inst_hook

10 years agodracut: 90kernel-modules/module-setup.sh: add ehci-tegra.ko on arm
Kyle McMartin [Wed, 24 Jul 2013 02:07:05 +0000 (22:07 -0400)] 
dracut: 90kernel-modules/module-setup.sh: add ehci-tegra.ko on arm

kernel-tegra is now part of the base kernel package, so bits and pieces
ended up modular, and as a result, if you boot off the internal USB, you
drop to a dracut shell with no way of getting to root.

10 years agoLoad kernel module signing keys before we start doing any real work.
Peter Jones [Tue, 23 Jul 2013 19:22:45 +0000 (15:22 -0400)] 
Load kernel module signing keys before we start doing any real work.

This loads kernel module signing keys, so that we can verify signed
modules in secure boot mode.

Signed-off-by: Peter Jones <pjones@redhat.com>
10 years ago95rootfs-block: fix PARTUUID parsing
Brandon Philips [Tue, 23 Jul 2013 01:17:02 +0000 (18:17 -0700)] 
95rootfs-block: fix PARTUUID parsing

In the kernel comments PARTUUID is shown using uppercase A-F:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/init/do_mounts.c?id=HEAD#n183

However, dracut tries to use the value of PARTUUID directly in
/dev/disks/by-partuuid/ which expects the hex to be lowercase. This will
cause root to never be found, oops!

Fix dracut so it can, like the Kernel, accept either casing.

Untested but I added a hack on my local system that was similar.

10 years agosystemd: Replace prefdm.service with display-manager.service
Colin Walters [Fri, 19 Jul 2013 00:16:10 +0000 (20:16 -0400)] 
systemd: Replace prefdm.service with display-manager.service

The former is dead, the latter is the new name.  See:

http://cgit.freedesktop.org/systemd/systemd/commit/?id=b2c9cbafb8b1a2742978e1faf37fbb3cf4fb5d44
https://fedoraproject.org/wiki/Features/DisplayManagerRework

10 years agobase: provide pidof() shell function
Harald Hoyer [Tue, 23 Jul 2013 10:33:45 +0000 (12:33 +0200)] 
base: provide pidof() shell function

10 years agoinit.sh: don't check for systemd-udevd in lower version branch
Harald Hoyer [Tue, 23 Jul 2013 10:26:06 +0000 (12:26 +0200)] 
init.sh: don't check for systemd-udevd in lower version branch

10 years agodracut.spec: require procps-ng for ps
Harald Hoyer [Tue, 23 Jul 2013 10:25:38 +0000 (12:25 +0200)] 
dracut.spec: require procps-ng for ps

10 years agodracut: use sysloglvl for systemd-cat logging
Harald Hoyer [Fri, 19 Jul 2013 07:46:00 +0000 (09:46 +0200)] 
dracut: use sysloglvl for systemd-cat logging

10 years agoUse systemd-cat for logging on systemd systems, if logfile is empty
Harald Hoyer [Fri, 19 Jul 2013 07:34:45 +0000 (09:34 +0200)] 
Use systemd-cat for logging on systemd systems, if logfile is empty

10 years agodracut-functions.sh: only wait for the last pid spawned
Harald Hoyer [Fri, 19 Jul 2013 07:34:04 +0000 (09:34 +0200)] 
dracut-functions.sh: only wait for the last pid spawned

10 years agodracut-functions.sh: don't warn twice about omitted modules
Harald Hoyer [Fri, 19 Jul 2013 07:33:45 +0000 (09:33 +0200)] 
dracut-functions.sh: don't warn twice about omitted modules

10 years agoresume: do not include in hostonly, if no swap is present
Harald Hoyer [Thu, 18 Jul 2013 12:41:31 +0000 (14:41 +0200)] 
resume: do not include in hostonly, if no swap is present

10 years agoRevert "systemd: add systemd-fsck-root.service" 030
Harald Hoyer [Wed, 17 Jul 2013 13:05:30 +0000 (15:05 +0200)] 
Revert "systemd: add systemd-fsck-root.service"

This reverts commit 35857f556ce9150f37a194e5c9f840212eef0870.

10 years agoAUTHORS: update
Harald Hoyer [Wed, 17 Jul 2013 12:58:44 +0000 (14:58 +0200)] 
AUTHORS: update

10 years agoNEWS: update
Harald Hoyer [Wed, 17 Jul 2013 12:58:35 +0000 (14:58 +0200)] 
NEWS: update

10 years agodracut: do not enable early microcode inclusion by default
Harald Hoyer [Wed, 17 Jul 2013 12:35:35 +0000 (14:35 +0200)] 
dracut: do not enable early microcode inclusion by default

10 years agorename sosreport to rdsosreport
Harald Hoyer [Wed, 17 Jul 2013 12:31:59 +0000 (14:31 +0200)] 
rename sosreport to rdsosreport

Renamed sosreport to rdsosreport to differ from the sosreport tool on
the real root.

10 years agorename dracut-nohostonly and dracut-norescue rpm subpackages
Harald Hoyer [Wed, 17 Jul 2013 10:29:31 +0000 (12:29 +0200)] 
rename dracut-nohostonly and dracut-norescue rpm subpackages

dracut-nohostonly -> dracut-config-generic
dracut-norescue   -> dracut
                  -> dracut-config-rescue

10 years agodmraid: let dmraid setup the partitions
Harald Hoyer [Wed, 17 Jul 2013 10:07:19 +0000 (12:07 +0200)] 
dmraid: let dmraid setup the partitions

10 years agodo not wait_for_dev for the root device
Harald Hoyer [Wed, 17 Jul 2013 10:03:01 +0000 (12:03 +0200)] 
do not wait_for_dev for the root device

it's specified on the kernel command line

10 years agosystemd: add systemd-fsck-root.service
Harald Hoyer [Wed, 17 Jul 2013 09:59:46 +0000 (11:59 +0200)] 
systemd: add systemd-fsck-root.service

10 years agorootfs-block: do not touch root-fsck
Harald Hoyer [Wed, 17 Jul 2013 09:58:55 +0000 (11:58 +0200)] 
rootfs-block: do not touch root-fsck

in systemd environments, we use systemd in the initramfs

10 years agoi18n: do not moan about missing kbd directory
Harald Hoyer [Wed, 17 Jul 2013 09:58:17 +0000 (11:58 +0200)] 
i18n: do not moan about missing kbd directory

10 years agobase: remove RD_TIMESTAMP
Harald Hoyer [Wed, 17 Jul 2013 09:26:55 +0000 (11:26 +0200)] 
base: remove RD_TIMESTAMP

10 years agodracut.sh: Support early microcode loading.
Konrad Rzeszutek Wilk [Fri, 12 Jul 2013 21:02:54 +0000 (17:02 -0400)] 
dracut.sh: Support early microcode loading.

On Wed, Jul 10, 2013 at 10:58:15AM -0400, Konrad Rzeszutek Wilk wrote:
> On Wed, Jul 10, 2013 at 09:37:11AM +0200, Harald Hoyer wrote:
> > On 07/10/2013 02:29 AM, Yu, Fenghua wrote:
> > >> From: Konrad Rzeszutek Wilk [mailto:konrad.wilk@oracle.com]
> > >> Sent: Tuesday, July 09, 2013 12:24 PM
> > >> Implement it per Linux kernel Documentation/x86/early-microcode.txt
> > >> (from v3.11-rc0):
> > [...]
> > > This patch works fine with one microcode blob in binary format. There are situations that the microcode is not delivered in one blob in binary format:
> > >
> > > First, each microcode patch is one file instead all microcode patches are in one big blob. Secondly, old delivered microcode file is in ascii format.
> > >
> > > To handle those formats, additional code needs to convert the formats into one big binary microcode blob. I'm not sure if we should consider the code and if we should put the code in dracut.
> > >
> > > Thanks.
> > >
> > > -Fenghua
> > >
> >
> >
> > $ ls /lib/firmware/amd-ucode
> > microcode_amd.bin  microcode_amd_fam15h.bin  microcode_amd_solaris.bin
>
> Right, so all of those blobs (for AMD) get stuck in AuthenticAMD.bin.
>
> > $ ls /lib/firmware/intel-ucode
> > 06-03-02  06-06-00  06-07-02  06-08-0a  06-0b-04  06-0f-06  06-16-01  06-1c-02
> > 06-25-02  06-2d-07  0f-01-02  0f-02-09  0f-04-03  0f-04-0a
> > 06-05-00  06-06-05  06-07-03  06-09-05  06-0d-06  06-0f-07  06-17-06  06-1c-0a
> > 06-25-05  06-2f-02  0f-02-04  0f-03-02  0f-04-04  0f-06-02
> > 06-05-01  06-06-0a  06-08-01  06-0a-00  06-0e-08  06-0f-0a  06-17-07  06-1d-01
> > 06-26-01  06-3a-09  0f-02-05  0f-03-03  0f-04-07  0f-06-04
> > 06-05-02  06-06-0d  06-08-03  06-0a-01  06-0e-0c  06-0f-0b  06-17-0a  06-1e-04
> > 06-2a-07  0f-00-07  0f-02-06  0f-03-04  0f-04-08  0f-06-05
> > 06-05-03  06-07-01  06-08-06  06-0b-01  06-0f-02  06-0f-0d  06-1a-04  06-1e-05
> > 06-2d-06  0f-00-0a  0f-02-07  0f-04-01  0f-04-09  0f-06-08
>
> And all of those get catted in GenuineIntel.bin.
>
> >
> > Also, for [[ $hostonly ]], we only want to add the current running CPU microcode.
>
> <nods> Will do that. Are you OK with me adding some of this CPU detection logic
> in dracut-functions.sh?

This is still RFC, as I had not done the --no-compress logic (or tested it).
Please see if this is OK:

>From 5f853d2ececd4cadff648e22cb9c9287a01a9783 Mon Sep 17 00:00:00 2001
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Date: Tue, 9 Jul 2013 13:57:01 -0400
Subject: [PATCH] dracut.sh: Support early microcode loading.

Implement it per Linux kernel Documentation/x86/early-microcode.txt
(from v3.11-rc0):

<start>
Early load microcode
====================
By Fenghua Yu <fenghua.yu@intel.com>

Kernel can update microcode in early phase of boot time. Loading microcode early
can fix CPU issues before they are observed during kernel boot time.

Microcode is stored in an initrd file. The microcode is read from the initrd
file and loaded to CPUs during boot time.

The format of the combined initrd image is microcode in cpio format followed by
the initrd image (maybe compressed). Kernel parses the combined initrd image
during boot time. The microcode file in cpio name space is:
on Intel: kernel/x86/microcode/GenuineIntel.bin
on AMD  : kernel/x86/microcode/AuthenticAMD.bin

During BSP boot (before SMP starts), if the kernel finds the microcode file in
the initrd file, it parses the microcode and saves matching microcode in memory.
If matching microcode is found, it will be uploaded in BSP and later on in all
APs.

The cached microcode patch is applied when CPUs resume from a sleep state.

There are two legacy user space interfaces to load microcode, either through
/dev/cpu/microcode or through /sys/devices/system/cpu/microcode/reload file
in sysfs.

In addition to these two legacy methods, the early loading method described
here is the third method with which microcode can be uploaded to a system's
CPUs.

The following example script shows how to generate a new combined initrd file in
/boot/initrd-3.5.0.ucode.img with original microcode microcode.bin and
original initrd image /boot/initrd-3.5.0.img.

mkdir initrd
cd initrd
mkdir -p kernel/x86/microcode
cp ../microcode.bin kernel/x86/microcode/GenuineIntel.bin (or AuthenticAMD.bin)
find . | cpio -o -H newc >../ucode.cpio
cd ..
cat ucode.cpio /boot/initrd-3.5.0.img >/boot/initrd-3.5.0.ucode.img
<end>

That is what we do in the patch. Furthermoere there is also
an off-switch: "no-early-microcode" to disable it.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
[v1: Support --host-only parameter]

10 years agodracut.sh: correct dropindirs_sort
Harald Hoyer [Fri, 12 Jul 2013 08:35:49 +0000 (10:35 +0200)] 
dracut.sh: correct dropindirs_sort

10 years agobase/module-setup.sh: do not add devs to initqueue/finished
Harald Hoyer [Fri, 12 Jul 2013 08:14:42 +0000 (10:14 +0200)] 
base/module-setup.sh: do not add devs to initqueue/finished

when need-initqueue is not set in systemd mode

10 years agobase/module-setup.sh: do not include systemd-timestamp
Harald Hoyer [Fri, 12 Jul 2013 08:13:49 +0000 (10:13 +0200)] 
base/module-setup.sh: do not include systemd-timestamp

when using systemd in the initramfs

10 years agodracut-cmdline.service: remove Before: systemd-vconsole-setup.service
Harald Hoyer [Fri, 12 Jul 2013 07:47:24 +0000 (09:47 +0200)] 
dracut-cmdline.service: remove Before: systemd-vconsole-setup.service

10 years agosystemd/module-setup.sh: create emtpy /etc/machine-id
Harald Hoyer [Thu, 11 Jul 2013 10:15:17 +0000 (12:15 +0200)] 
systemd/module-setup.sh: create emtpy /etc/machine-id

Even in hostonly mode, if none was found on the system.

10 years agodracut.sh: unset all LC_* and LANG
Harald Hoyer [Fri, 5 Jul 2013 14:21:50 +0000 (16:21 +0200)] 
dracut.sh: unset all LC_* and LANG

saves 10% of time :-)

10 years agomodules.d/10i18n/module-setup.sh: handle empty vconsole.conf
Harald Hoyer [Fri, 5 Jul 2013 13:33:28 +0000 (15:33 +0200)] 
modules.d/10i18n/module-setup.sh: handle empty vconsole.conf

if /etc/vconsole.conf exists and is empty, then do not install anything.

10 years agoterminfo: only install l/linux v/vt100 and v/vt220
Harald Hoyer [Fri, 5 Jul 2013 13:32:58 +0000 (15:32 +0200)] 
terminfo: only install l/linux v/vt100 and v/vt220

10 years agoadd PARTLABEL and PARTUUID
Harald Hoyer [Fri, 5 Jul 2013 13:31:06 +0000 (15:31 +0200)] 
add PARTLABEL and PARTUUID

10 years agomasterkey/module-setup.sh:check() check for $hostonly rather than "-h"
Harald Hoyer [Thu, 4 Jul 2013 10:31:31 +0000 (12:31 +0200)] 
masterkey/module-setup.sh:check() check for $hostonly rather than "-h"

10 years agobeautified shell code
Harald Hoyer [Thu, 4 Jul 2013 10:29:59 +0000 (12:29 +0200)] 
beautified shell code

checked with shellcheck http://www.shellcheck.net/about.html

10 years agouse "rm --" to guard against filenames beginning with "-"
Harald Hoyer [Fri, 28 Jun 2013 08:31:18 +0000 (10:31 +0200)] 
use "rm --" to guard against filenames beginning with "-"

10 years agoTEST-04-FULL-SYSTEMD/test.sh: dlfgjlkdfjgldfj
Harald Hoyer [Fri, 28 Jun 2013 08:22:27 +0000 (10:22 +0200)] 
TEST-04-FULL-SYSTEMD/test.sh: dlfgjlkdfjgldfj

10 years agotest/run-qemu: specify the kernel
Harald Hoyer [Fri, 28 Jun 2013 08:21:42 +0000 (10:21 +0200)] 
test/run-qemu: specify the kernel

10 years agosystemd/module-setup.sh: add slices.target
Harald Hoyer [Fri, 28 Jun 2013 07:58:03 +0000 (09:58 +0200)] 
systemd/module-setup.sh: add slices.target

10 years agoTEST-04-FULL-SYSTEMD: call xargs with "-r"
Harald Hoyer [Wed, 26 Jun 2013 07:16:04 +0000 (09:16 +0200)] 
TEST-04-FULL-SYSTEMD: call xargs with "-r"

10 years agosystemd: add system.slice unit
Harald Hoyer [Wed, 26 Jun 2013 07:15:34 +0000 (09:15 +0200)] 
systemd: add system.slice unit

10 years agouse findmnt with "--source" or "--target"
Harald Hoyer [Mon, 24 Jun 2013 10:47:01 +0000 (12:47 +0200)] 
use findmnt with "--source" or "--target"

This avoids hanging on stale NFS mounts, which are not part of the boot
process.

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

10 years agoudev-rules: add 75-net-description.rules
Harald Hoyer [Tue, 18 Jun 2013 15:54:30 +0000 (17:54 +0200)] 
udev-rules: add 75-net-description.rules

we need IMPORT{builtin}="net_id" for the persistent network names

10 years agoselinux: umount $NEWROOT/dev and its submounts
WANG Chao [Tue, 18 Jun 2013 05:58:04 +0000 (13:58 +0800)] 
selinux: umount $NEWROOT/dev and its submounts

$NEWROOT/dev and its submounts should be umounted after we use it.
Otherwise it fails other scripts that umount /sysroot only.

Signed-off-by: WANG Chao <chaowang@redhat.com>
10 years agoNEWS: update 029
Harald Hoyer [Fri, 14 Jun 2013 13:31:28 +0000 (15:31 +0200)] 
NEWS: update

10 years ago90lvm/module-setup.sh: redirect error message of lvs to /dev/null
Baoquan He [Thu, 13 Jun 2013 08:07:44 +0000 (16:07 +0800)] 
90lvm/module-setup.sh: redirect error message of lvs to /dev/null

Signed-off-by: Baoquan He <bhe@redhat.com>
10 years agotest/TEST-50-MULTINIC: fix interface test
Harald Hoyer [Thu, 13 Jun 2013 13:15:55 +0000 (15:15 +0200)] 
test/TEST-50-MULTINIC: fix interface test

10 years agonetwork: refix BOOTIF logic
Harald Hoyer [Thu, 13 Jun 2013 12:45:18 +0000 (14:45 +0200)] 
network: refix BOOTIF logic

10 years agotest/TEST-50-MULTINIC: fixed debug output
Harald Hoyer [Thu, 13 Jun 2013 12:44:47 +0000 (14:44 +0200)] 
test/TEST-50-MULTINIC: fixed debug output

10 years agosystemd/module-setup.sh: mkdir /etc/systemd
Harald Hoyer [Thu, 13 Jun 2013 12:44:13 +0000 (14:44 +0200)] 
systemd/module-setup.sh: mkdir /etc/systemd

10 years agonet-lib: fix set_ifname()
Will Woods [Thu, 13 Sep 2012 15:22:02 +0000 (11:22 -0400)] 
net-lib: fix set_ifname()

/sys/class/$name$num isn't ever going to work; /sys/class/net/$name$num
(e.g. /sys/class/net/ibft0) should work right.

10 years agonet-lib: add configured_ifaces()
Will Woods [Thu, 13 Sep 2012 14:52:33 +0000 (10:52 -0400)] 
net-lib: add configured_ifaces()

configured_ifaces is a function that returns the names of each interface
that the user wanted configured.

Currently, this is accomplished by reading the list from
/tmp/net.ifaces. But if we want to allow the user to specify an
interface by its MAC address or IP or something, we need a function that
will read the cache and convert the MACs etc. to names.

(Obviously this conversion only works once udev starts, so it will warn
you if you try it too early.)

10 years agonet-lib: add find_iface_with_link()
Will Woods [Thu, 23 Aug 2012 20:31:09 +0000 (16:31 -0400)] 
net-lib: add find_iface_with_link()

Add a function to look at the system network interfaces and return the
first one it finds with an active link (if any.)

10 years agoDon't explode when mixing BOOTIF and ip=
Will Woods [Thu, 23 Aug 2012 18:59:35 +0000 (14:59 -0400)] 
Don't explode when mixing BOOTIF and ip=

Now that we can use a MAC as a device identifier, we can just bring up
the device specified by BOOTIF as a normal interface.

So instead of ignoring everything but BOOTIF, we'll put BOOTIF in the
IFACES list and bring it up as normal, defaulting to DHCP if nothing
else is specified.

We can also handle anaconda-style 'ksdevice=bootif' this way.

10 years agonet-genrules: accept MAC address for $iface, cleanups
Will Woods [Wed, 22 Aug 2012 20:59:16 +0000 (16:59 -0400)] 
net-genrules: accept MAC address for $iface, cleanups

A MAC address is a unique identifier for a particular network interface.

We can use the MAC to generate udev rules to bring up that interface,
like we currently do with BOOTIF.

This patch allows interfaces to be specified as a MAC address, either
in the usual colon-separated form or the PXE-style dash-separated form.

(The latter is more useful on the commandline, since it allows for
arguments like: "ip=77-77-6f-6f-64-73:dhcp")

This is useful since it's common for a user who is booting a new OS for
the first time to know the MAC of the device, but not know what the
kernel name will be.

10 years agomove fix_bootif to net-lib
Will Woods [Wed, 22 Aug 2012 16:57:43 +0000 (12:57 -0400)] 
move fix_bootif to net-lib

This might be useful to other parts of dracut; move it to net-lib.sh.

10 years agoMakefile: source dracut-version.sh and correct dist tarball
Harald Hoyer [Thu, 13 Jun 2013 10:05:10 +0000 (12:05 +0200)] 
Makefile: source dracut-version.sh and correct dist tarball

10 years agoMakefile: pipe git describe errors to /dev/null
Harald Hoyer [Thu, 13 Jun 2013 09:58:00 +0000 (11:58 +0200)] 
Makefile: pipe git describe errors to /dev/null

10 years agoadd dracut-shutdown.service.8.asc manpage
Harald Hoyer [Thu, 13 Jun 2013 09:53:32 +0000 (11:53 +0200)] 
add dracut-shutdown.service.8.asc manpage

10 years agomove dracut-shutdown.service to modules.d/98systemd
Harald Hoyer [Thu, 13 Jun 2013 09:40:58 +0000 (11:40 +0200)] 
move dracut-shutdown.service to modules.d/98systemd

10 years agoDon't use do syncheck for target all and refine syncheck
Harald Hoyer [Thu, 13 Jun 2013 09:09:52 +0000 (11:09 +0200)] 
Don't use do syncheck for target all and refine syncheck

instead of "dash -n" we now use "bash --posix -n"
we also check for "[[ " in posix shell files

10 years agosystemd: make unit files symlinks
Harald Hoyer [Thu, 13 Jun 2013 08:52:46 +0000 (10:52 +0200)] 
systemd: make unit files symlinks

10 years agosystemd/dracut-pre-pivot.service: also execute for cleanup hooks or rd.break
Harald Hoyer [Thu, 13 Jun 2013 08:37:45 +0000 (10:37 +0200)] 
systemd/dracut-pre-pivot.service: also execute for cleanup hooks or rd.break

10 years agoi18n: make the default font configurable
Harald Hoyer [Thu, 13 Jun 2013 07:29:17 +0000 (09:29 +0200)] 
i18n: make the default font configurable

To set the default font for your distribution, add
i18n_default_font="latarcyrheb-sun16"
to your /lib/dracut/dracut.conf.d/01-dist.conf distribution config.

10 years agonetwork: wait 40 seconds for IPv6 auto configuration
Harald Hoyer [Wed, 12 Jun 2013 15:42:35 +0000 (17:42 +0200)] 
network: wait 40 seconds for IPv6 auto configuration

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