]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
10 years agolsinitrd.sh: don't choke on LZO-compressed images
Tobias Geerinckx [Tue, 3 Jun 2014 02:59:34 +0000 (04:59 +0200)] 
lsinitrd.sh: don't choke on LZO-compressed images

lsinitrd (and hence dracut) currently fail to list the contents of any
LZO-compressed image, and merely spit out misleading xzcat errors.

I guess no-one actually uses them.

(cherry picked from commit 773d6a7ded0cc717ecfb7bed6e3f52ceedfb1834)

10 years ago98systemd: also install systemd-journald-dev-log.socket
Daniel Schaal [Thu, 19 Jun 2014 09:38:25 +0000 (11:38 +0200)] 
98systemd: also install systemd-journald-dev-log.socket

The /dev/log socket was moved to /run on systemd 214, install the
newly added socket unit.

(cherry picked from commit 7eb0bc7bc4fdcf4ee9cde0e919eff2497c22beab)

10 years agosystemd: Optionally, include efivarsfs module
Cristian Rodríguez [Mon, 16 Jun 2014 05:13:44 +0000 (01:13 -0400)] 
systemd: Optionally, include efivarsfs module

It is, however not an error if this module can't be found.

(cherry picked from commit f46c2fff717d0036bf3cd4d6c1c9af28eb46ceb1)

10 years agodeprecate "ip=ibft" kernel command line parameter
Harald Hoyer [Fri, 20 Jun 2014 12:27:09 +0000 (14:27 +0200)] 
deprecate "ip=ibft" kernel command line parameter

rd.iscsi.ibft[=1] should be used instead.

Thing is, 'ip=ibft' is not really an ip setting, but rather a marker
that iBFT should be evaluated.

Also removed the trigger of the warning:
"Warning: Please supply bootdev argument for multiple ip= lines"

(cherry picked from commit 5580e4c176c92624054691a8e12cffe8622cc1a0)

10 years agoiscsi: correctly install the settled iscsiroot dummy call
Harald Hoyer [Wed, 11 Jun 2014 12:58:55 +0000 (14:58 +0200)] 
iscsi: correctly install the settled iscsiroot dummy call

initqueue parses $1 as the executable command

(cherry picked from commit bb8c16d12178373f17553294603ff5187e318b51)

10 years agoiscsi: correctly install the timeout iscsiroot dummy call
Harald Hoyer [Wed, 11 Jun 2014 12:55:11 +0000 (14:55 +0200)] 
iscsi: correctly install the timeout iscsiroot dummy call

initqueue parses $1 as the executable command

(cherry picked from commit 486a8f33e2edaf249e3a09c98a910094e201cf9e)

10 years agonetwork/ifup.sh: Don't try to modprobe ipv6, if already available
Vasiliy Tolstov [Mon, 26 May 2014 11:28:43 +0000 (15:28 +0400)] 
network/ifup.sh: Don't try to modprobe ipv6, if already available

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
[Edited-by: Harald Hoyer]
Simplified logic.

(cherry picked from commit 28f3f537c4ffb101c26def41c9a6a0278f9b4437)

10 years agobonding: use hwaddr of the slave rather than the master
Alex Harpin [Tue, 6 May 2014 22:41:17 +0000 (23:41 +0100)] 
bonding: use hwaddr of the slave rather than the master

When a bonded interface is brought up, any slaves included in the bond
have their hardware address set to that of the bond master.  Although
this allows an interface to be brought up on start up, when the
configuration file is imported into the booted system it prevents
the bonded interface being successfully restarted.

The fix involves obtaining the hardware address of the slaves before
they are added to the bond and then using this value in the
configuration file.

(cherry picked from commit 83c9ff7dbb465bedb10119bb2883d34266922180)

10 years agokernel-modules: Fix storage module selection for sdhci/mmc/ahci
Peter Robinson [Fri, 23 May 2014 10:54:01 +0000 (11:54 +0100)] 
kernel-modules: Fix storage module selection for sdhci/mmc/ahci

Currently the block driver detection for generic initrd doesn't include
the SD/MMC drivers so we fail to boot generic images on any device using
those platforms as boot devices when using a generic initrd. Add logic
to detect those modules. This primarily fixes embedded ARM devices but
also likely intel tablets/dev boards and enterprise hypervisors that
have the ability to boot from SD.

Also the ahci_init_controller misses a number of drivers that use the
libahci_platform module for the init so this fixes some missing achi
moduless too.

Finally it cleans up the ARM storage module hacks that the above now
deals with in a more generic manner.

Signed-off-by: <pbrobinson@gmail.com>
(cherry picked from commit 827ec27a9c36755095dda899eff75cdae78b2120)

10 years agodracut-pre-pivot pulls in remote-fs.target
WANG Chao [Fri, 4 Apr 2014 06:37:42 +0000 (14:37 +0800)] 
dracut-pre-pivot pulls in remote-fs.target

It turns out that commit f30b74e (dracut-initqueue service runs before
remote-fs-pre.target) is partial fix for remote fs mounts. Because no
one pulls in remote-fs.target, we can never start remote fs mounts.
Now pull in remote-fs.target in dracut-pre-pivot.

Signed-off-by: WANG Chao <chaowang@redhat.com>
(cherry picked from commit ce7f408dfd473b3c2f4fdb9ddc2b2131e08007d3)

10 years ago98systemd: fixup rootfs-generator installation path
Hannes Reinecke [Tue, 20 May 2014 09:20:10 +0000 (11:20 +0200)] 
98systemd: fixup rootfs-generator installation path

The rootfs-generator was installed in the wrong path
in the initrd, cause it never to be run.

References: bnc#878714

Signed-off-by: Hannes Reinecke <hare@suse.de>
(cherry picked from commit ed2005fa5ba7d618bbb2c63bac616fba32a17a5d)

10 years agodracut-functions.sh:print_vars() fix for values with spaces
Harald Hoyer [Tue, 20 May 2014 09:27:42 +0000 (11:27 +0200)] 
dracut-functions.sh:print_vars() fix for values with spaces

for a variable with spaces, e.g.:
EXT_KEYMAPS='backspace keypad euro2'

The following would occur:
print_vars: eval printf -v _value %s '$EXT_KEYMAPS'
print_vars: printf -v _value %s backspace keypad euro2
print_vars: [[ -n backspacekeypadeuro2 ]]
print_vars: printf '%s=\"%s\"\n' EXT_KEYMAPS backspacekeypadeuro2

Thanks to Sebastian Köln for the fix!

(cherry picked from commit 7a94a4326f0641396125acb2b444b562224457a1)

10 years agofcoe-uefi/parse-uefifcoe.sh: fixed parameter generation from UEFI
Harald Hoyer [Tue, 20 May 2014 09:22:26 +0000 (11:22 +0200)] 
fcoe-uefi/parse-uefifcoe.sh: fixed parameter generation from UEFI

"fcoe=" was missing for the parameter specifying the interface

(cherry picked from commit 142710269279db70fceb3e76a077f3d6a89a84a5)

10 years agonbd/nbdroot.sh: call nbd-client with "--systemd-mark"
Harald Hoyer [Fri, 16 May 2014 11:33:33 +0000 (13:33 +0200)] 
nbd/nbdroot.sh: call nbd-client with "--systemd-mark"

otherwise nbd-client will get killed by systemd

(cherry picked from commit 056a3f2427b6747d83fc48c5d1e3f85b4058c18f)

10 years agoifcfg/write-ifcfg.sh: include net-lib.sh
Harald Hoyer [Fri, 16 May 2014 11:32:47 +0000 (13:32 +0200)] 
ifcfg/write-ifcfg.sh: include net-lib.sh

otherwise is_persistent_ethernet_name() is missing

(cherry picked from commit 8fa1afb65cef30d56ce2e141b0b594cf780120a1)

10 years agomdraid/module-setup.sh: fixed print-cmdline for empty UUID
Harald Hoyer [Wed, 14 May 2014 14:38:49 +0000 (16:38 +0200)] 
mdraid/module-setup.sh: fixed print-cmdline for empty UUID

fixes

/usr/lib/dracut/modules.d/90mdraid/module-setup.sh: line 60:
_activated["${UUID}"]: bad array subscript

Thanks to Jan ONDREJ for spotting this!

(cherry picked from commit 19bb14c3467233f8c98f76b3fa57047a3a31e1a3)

10 years agocms/cmssetup.sh: convert SUBCHANNELS to lowercase
Harald Hoyer [Mon, 12 May 2014 12:36:08 +0000 (14:36 +0200)] 
cms/cmssetup.sh: convert SUBCHANNELS to lowercase

In udev rules, the channels need to be expressed in lower case.

(cherry picked from commit 56d57a70ec89740dc6ddc09ea23b6fc4c3a6a531)

10 years agoifcfg/write-ifcfg.sh: "IPV6INIT=yes" check also for non-dhcp
Harald Hoyer [Mon, 12 May 2014 11:53:38 +0000 (13:53 +0200)] 
ifcfg/write-ifcfg.sh: "IPV6INIT=yes" check also for non-dhcp

(cherry picked from commit 1230f3bcffd8837e8846e60376ea2a88ef5ab257)

10 years agoDo not log to kmsg/syslog and files for "--print-cmdline"
Harald Hoyer [Wed, 7 May 2014 12:54:56 +0000 (14:54 +0200)] 
Do not log to kmsg/syslog and files for "--print-cmdline"

(cherry picked from commit 535f61ca4ab55aa58d9bcf3d537cc4c0d800f6c8)

10 years agodracut-lib.sh: fixed return value of pidof()
Harald Hoyer [Wed, 7 May 2014 11:33:14 +0000 (13:33 +0200)] 
dracut-lib.sh: fixed return value of pidof()

pidof always returned with 0, so any "while pidof" loop would not
terminate.

Thanks "Consus" for the hint!

(cherry picked from commit 4e58a1ffc760e5c54e6cae5924a2439cae196848)

10 years agoifcfg: only bind to HWADDR, if addr_assign_type == 0
Harald Hoyer [Fri, 4 Apr 2014 10:52:39 +0000 (12:52 +0200)] 
ifcfg: only bind to HWADDR, if addr_assign_type == 0

/sys/class/net/$netif/addr_assign_type is != 0 for random MAC address
interfaces

(cherry picked from commit 2e094b20a6875fdb0a7ef8772e3d7688ad91c036)

10 years agoifcfg: do not bind persistent interface names to HWADDR
Harald Hoyer [Fri, 4 Apr 2014 10:48:03 +0000 (12:48 +0200)] 
ifcfg: do not bind persistent interface names to HWADDR

(cherry picked from commit fb0e5184a6506185998fd12d151f7d34d07c07b3)

10 years agodracut-initqueue service runs before remote-fs-pre.target
WANG Chao [Thu, 3 Apr 2014 07:49:26 +0000 (15:49 +0800)] 
dracut-initqueue service runs before remote-fs-pre.target

With the following commit, dracut doesn't mount anything from /etc/fstab

commit e920bfb
Author: WANG Chao <chaowang@redhat.com>
Date:   Tue Apr 1 15:20:49 2014 +0800

    fstab: do not mount and fsck from fstab if using systemd

But systemd doesn't mount nfs at all, because no unit is pulling in
remote-fs.target.

dracut must pull in these remote fs mount and all these remote mounts
should start only after network is up (ie. after dracut-initqueue).

Signed-off-by: WANG Chao <chaowang@redhat.com>
(cherry picked from commit b31250e7e6e6e104674dc304ba74965bb56074d6)

10 years agolvm:module-setup.sh: check for existance of 69-dm-lvm-metad.rules
Harald Hoyer [Thu, 3 Apr 2014 06:54:27 +0000 (08:54 +0200)] 
lvm:module-setup.sh: check for existance of 69-dm-lvm-metad.rules

Before modifying 69-dm-lvm-metad.rules, we should check for the
existance first. Otherwise this results in error messages on
distributions (debian), which do not ship these rules.

(cherry picked from commit 12819a579900b9691e2bfaf14e76fbb025851530)

10 years agofstab: do not mount and fsck from fstab if using systemd
WANG Chao [Tue, 1 Apr 2014 07:20:49 +0000 (15:20 +0800)] 
fstab: do not mount and fsck from fstab if using systemd

If using systemd in initramfs, we could run into a race condition when
dracut and systemd both are trying to mount and run fsck for the same
filesystem, and mount or fsck could be a failure.

To fix such failure, we should use systemd to mount/fsck from /etc/fstab
only.

v2: check $DRACUT_SYSTEMD suggested by Alexander Tsoy

Signed-off-by: WANG Chao <chaowang@redhat.com>
(cherry picked from commit e920bfb1e8a5917e7b0f360d1c51d200db3acbfd)

10 years agodracut-functions.sh: add /lib/modules/*/{extras|weak-updates} for kernel modules
Harald Hoyer [Mon, 28 Apr 2014 10:45:44 +0000 (12:45 +0200)] 
dracut-functions.sh: add /lib/modules/*/{extras|weak-updates} for kernel modules

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

10 years agoifcfg/write-ifcfg.sh: turn on IPV6INIT, if any inet6 address is found
Harald Hoyer [Thu, 3 Apr 2014 06:53:09 +0000 (08:53 +0200)] 
ifcfg/write-ifcfg.sh: turn on IPV6INIT, if any inet6 address is found

If "ip -6 addr" finds any inet6 address, assume IPV6INIT=yes for the
ifcfg file.

10 years agofs-lib: always install fsck.$fs, if present
Harald Hoyer [Fri, 4 Apr 2014 09:33:02 +0000 (11:33 +0200)] 
fs-lib: always install fsck.$fs, if present

10 years agoAdd legacy flag (-l) to lz4 and update magic number
Alexander Tsoy [Wed, 26 Feb 2014 11:50:17 +0000 (15:50 +0400)] 
Add legacy flag (-l) to lz4 and update magic number

Linux kernel does not support the new default lz4 format.

https://bugs.gentoo.org/show_bug.cgi?id=502102

10 years agofcoe: workaround fcoe timing issues
Harald Hoyer [Mon, 31 Mar 2014 14:21:49 +0000 (16:21 +0200)] 
fcoe: workaround fcoe timing issues

10 years agodm: add dm-cache modules
Harald Hoyer [Thu, 27 Mar 2014 11:34:40 +0000 (12:34 +0100)] 
dm: add dm-cache modules

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

10 years agonetwork: DCHPv6: set valid_lft and preferred_lft
Harald Hoyer [Thu, 27 Mar 2014 11:31:23 +0000 (12:31 +0100)] 
network: DCHPv6: set valid_lft and preferred_lft

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

10 years agolsinitrd.sh: prevent < <$() construct
Harald Hoyer [Thu, 27 Mar 2014 08:27:53 +0000 (09:27 +0100)] 
lsinitrd.sh: prevent < <$() construct

Running dracut in a chroot environment, which has /dev not correctly
setup will result in errors like:

/usr/bin/lsinitrd: line 164: /dev/fd/62: No such file or directory
cpio: Malformed number �5�OK��
cpio: Malformed number 5�OK��
cpio: Malformed number �OK��

This is because bash wants /dev/fd/<num> for constructs like:
foo < <$(bar)

10 years agonetwork: handle "ip=dhcp6" for all interfaces
Harald Hoyer [Tue, 25 Mar 2014 14:39:56 +0000 (15:39 +0100)] 
network: handle "ip=dhcp6" for all interfaces

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

10 years agofcoe: wait for lldpad to be ready
Harald Hoyer [Tue, 25 Mar 2014 14:28:19 +0000 (15:28 +0100)] 
fcoe: wait for lldpad to be ready

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

10 years agodracut-initramfs-restore: fix unpacking with early microcode
Harald Hoyer [Thu, 20 Mar 2014 12:18:13 +0000 (13:18 +0100)] 
dracut-initramfs-restore: fix unpacking with early microcode

(cherry picked from commit 0626cbe923732d45739ea6da4b816c78c44503ef)

10 years agoshutdown: if kexec failed, do a simple reboot
Harald Hoyer [Tue, 18 Mar 2014 12:21:22 +0000 (13:21 +0100)] 
shutdown: if kexec failed, do a simple reboot

10 years agonetwork:dhclient-script do PREINIT6 for DHCP6
Harald Hoyer [Mon, 17 Mar 2014 12:00:17 +0000 (13:00 +0100)] 
network:dhclient-script do PREINIT6 for DHCP6

10 years agosystemd/dracut-shutdown.service: make failure non-fatal
Harald Hoyer [Wed, 12 Mar 2014 14:39:08 +0000 (15:39 +0100)] 
systemd/dracut-shutdown.service: make failure non-fatal

10 years agoDo not wait_for_dev if hostonly_cmdline not set
Harald Hoyer [Thu, 6 Mar 2014 08:54:36 +0000 (09:54 +0100)] 
Do not wait_for_dev if hostonly_cmdline not set

10 years agodracut: don't let devices timeout
Harald Hoyer [Tue, 4 Mar 2014 12:46:14 +0000 (13:46 +0100)] 
dracut: don't let devices timeout

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

10 years agoAdd -[-no]-hostonly-cmdline option handling for getopt
WANG Chao [Mon, 3 Mar 2014 07:22:00 +0000 (15:22 +0800)] 
Add -[-no]-hostonly-cmdline option handling for getopt

commit ab9457e introduce such new options but it missed to add these
options to getopt arguments.

Signed-off-by: WANG Chao <chaowang@redhat.com>
10 years agotest/TEST-50-MULTINIC/client-init.sh: skip MAC marker files
Harald Hoyer [Fri, 28 Feb 2014 12:26:13 +0000 (13:26 +0100)] 
test/TEST-50-MULTINIC/client-init.sh: skip MAC marker files

10 years agotest/Makefile: add SKIP env to skip certain tests
Harald Hoyer [Fri, 28 Feb 2014 12:25:39 +0000 (13:25 +0100)] 
test/Makefile: add SKIP env to skip certain tests

10 years agotest: add missing Makefile.testdir
Harald Hoyer [Fri, 28 Feb 2014 11:57:57 +0000 (12:57 +0100)] 
test: add missing Makefile.testdir

10 years agoadd default values in fstab_lines
Dave Young [Thu, 27 Feb 2014 02:44:23 +0000 (10:44 +0800)] 
add default values in fstab_lines

It's useful for passing a full fstab line including like fs_passno so fsck
can take effect.

Previously it's assumed that there's no fs_freq and fs_passno in fstab lines
so original code just append "0 0" at the end of each fstab lines.

Improve this issue by assign default value in case they are not passed in.
Three field are handled here:
fs_mntops: default to "defaults"
fs_freq: default to "0"
fs_passno: default to "2"

Signed-off-by: Dave Young <dyoung@redhat.com>
10 years agosystemd: add systemd-sysctl service
Harald Hoyer [Fri, 28 Feb 2014 11:03:24 +0000 (12:03 +0100)] 
systemd: add systemd-sysctl service

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

10 years agonetwork: merge setup_net_$netif.ok and net.$netif.did-setup
Harald Hoyer [Fri, 28 Feb 2014 09:36:12 +0000 (10:36 +0100)] 
network: merge setup_net_$netif.ok and net.$netif.did-setup

one marker per interface is enough

10 years agonetwork: IPv6 status, wait for tentative flag to be cleared
Harald Hoyer [Thu, 27 Feb 2014 11:11:20 +0000 (12:11 +0100)] 
network: IPv6 status, wait for tentative flag to be cleared

also do not arping the IPv6 address.

10 years agonetwork/dhclient-script.sh:DHCP IPv6 interface setup
Harald Hoyer [Tue, 25 Feb 2014 13:04:05 +0000 (14:04 +0100)] 
network/dhclient-script.sh:DHCP IPv6 interface setup

configure IPv6 interface for DHCP6

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

10 years agonetwork/net-lib.sh:wait_for_ipv6_auto() also wait for the tentative flag
Harald Hoyer [Tue, 25 Feb 2014 12:31:29 +0000 (13:31 +0100)] 
network/net-lib.sh:wait_for_ipv6_auto() also wait for the tentative flag

Wait until the tentative flag is cleared.

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

10 years agoifcfg/write-ifcfg.sh: do not bind s390 to MAC if SUBCHANNELS set
Harald Hoyer [Tue, 25 Feb 2014 12:05:11 +0000 (13:05 +0100)] 
ifcfg/write-ifcfg.sh: do not bind s390 to MAC if SUBCHANNELS set

If SUBCHANNELS are set, do not specify HWADDR, because the SUBCHANNELS
are the identifier for the interface.

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

10 years agosystemd/rootfs-generator.sh: generate units in /run/systemd/generator
Harald Hoyer [Tue, 25 Feb 2014 11:54:28 +0000 (12:54 +0100)] 
systemd/rootfs-generator.sh: generate units in /run/systemd/generator

Generate the units in /run/systemd/generator, so they are picked up by
systemd.

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

10 years agodefault conf: set hostonly_cmdline == "no"
Harald Hoyer [Tue, 25 Feb 2014 11:34:41 +0000 (12:34 +0100)] 
default conf: set hostonly_cmdline == "no"

10 years agoAdd flag to toggle hostonly cmdline storing in the initramfs
Harald Hoyer [Tue, 25 Feb 2014 11:35:32 +0000 (12:35 +0100)] 
Add flag to toggle hostonly cmdline storing in the initramfs

--hostonly-cmdline:
    Store kernel command line arguments needed in the initramfs

--no-hostonly-cmdline:
    Do not store kernel command line arguments needed in the initramfs

10 years agosystemd: add 70-uaccess.rules
Harald Hoyer [Tue, 25 Feb 2014 11:33:30 +0000 (12:33 +0100)] 
systemd: add 70-uaccess.rules

10 years agosystemd: add sys-kernel-config.mount
Harald Hoyer [Wed, 5 Feb 2014 12:58:33 +0000 (13:58 +0100)] 
systemd: add sys-kernel-config.mount

10 years agodracut.sh: write directly to the output file
Harald Hoyer [Wed, 19 Feb 2014 14:22:39 +0000 (15:22 +0100)] 
dracut.sh: write directly to the output file

Because we already remove the output file before writing to it, we don't
have to play games and write to a temporary file first.

10 years agofcoe-uefi: try all FcoeBootDevice-* variables for a DevicePath
Harald Hoyer [Wed, 19 Feb 2014 14:20:34 +0000 (15:20 +0100)] 
fcoe-uefi: try all FcoeBootDevice-* variables for a DevicePath

try to read the DevicePath from all FcoeBootDevice-* UEFI variables
until one has a MAC.

10 years agoiscsi: for iBFT read the initiator-name from the correct file
Harald Hoyer [Wed, 19 Feb 2014 10:49:34 +0000 (11:49 +0100)] 
iscsi: for iBFT read the initiator-name from the correct file

/sys/firmware/ibft/initiator-name should be
/sys/firmware/ibft/initiator/initiator-name

https://github.com/haraldh/dracut/issues/12

10 years agodracut-functions.sh:find_kernel_modules_by_path() fixed updates search
Harald Hoyer [Mon, 17 Feb 2014 12:27:46 +0000 (13:27 +0100)] 
dracut-functions.sh:find_kernel_modules_by_path() fixed updates search

"updates/*" path does not start with "/"

10 years agokernel-modules: add sdhci_acpi to the static list of kernel modules
Harald Hoyer [Wed, 12 Feb 2014 10:22:14 +0000 (11:22 +0100)] 
kernel-modules: add sdhci_acpi to the static list of kernel modules

Thanks Adam Williamson!

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

10 years agodracut.sh: Fix variable name typo.
Colin Guthrie [Wed, 5 Feb 2014 10:06:51 +0000 (10:06 +0000)] 
dracut.sh: Fix variable name typo.

This caused the root_dev variable not to be set which in turn meant that
the root device was not whitelisted in 99base/module-setup.sh when injecting
compile-time devexists hooks in hostonly initrds. This ties the generated
initrd to the root fs device (typically the UUID) rather than relying solely
only the root= kernel command line.

While it is hostonly, not hardcoding e.g. UUIDs is still desirable. Any
swap partition on the host device is still added however.

10 years agonew_dhcp_next_server is really new_next_server
Brian C. Lane [Wed, 5 Feb 2014 20:10:39 +0000 (12:10 -0800)] 
new_dhcp_next_server is really new_next_server

The variable that dhclient sets doesn't have dhcp in the name. This
could cause problems with setups where the server is not the same as the
dhcp server.

10 years agosystemd/dracut-pre-pivot: run for /dev/{nfs,root} and cleanup /dev/nfs
Harald Hoyer [Wed, 5 Feb 2014 12:08:54 +0000 (13:08 +0100)] 
systemd/dracut-pre-pivot: run for /dev/{nfs,root} and cleanup /dev/nfs

dracut-pre-pivot was not cleaning up /dev/nfs and did not run to clean
up /dev/root.

10 years agonfs/nfsroot: symlink /dev/null to /dev/nfs, as a marker for root=/dev/nfs
Harald Hoyer [Wed, 5 Feb 2014 12:06:29 +0000 (13:06 +0100)] 
nfs/nfsroot: symlink /dev/null to /dev/nfs, as a marker for root=/dev/nfs

10 years agonetwork/ifup: do not run dhclient twice on the same interface
Harald Hoyer [Tue, 4 Feb 2014 11:02:34 +0000 (12:02 +0100)] 
network/ifup: do not run dhclient twice on the same interface

10 years agonetwork/ifup: do not ifup an already setup network interface
Harald Hoyer [Tue, 4 Feb 2014 11:02:05 +0000 (12:02 +0100)] 
network/ifup: do not ifup an already setup network interface

10 years agoskipcpio: fixed signatured check
Harald Hoyer [Wed, 29 Jan 2014 07:35:47 +0000 (08:35 +0100)] 
skipcpio: fixed signatured check

10 years agoskipcpio: return something at end of program
Cristian Rodríguez [Tue, 28 Jan 2014 19:41:08 +0000 (16:41 -0300)] 
skipcpio: return something at end of program

Otherwise the compiler emits a warning and the return vale is
in theory undefined.

10 years agonetwork:fix dns parsing in ip= parameter
Harald Hoyer [Fri, 7 Feb 2014 14:41:50 +0000 (15:41 +0100)] 
network:fix dns parsing in ip= parameter

10 years agofcoe-uefi: do not include, if fcoe utils not installed
Harald Hoyer [Tue, 7 Jan 2014 13:34:55 +0000 (14:34 +0100)] 
fcoe-uefi: do not include, if fcoe utils not installed

10 years agodracut.spec: add 95fcoe-uefi and 99uefi-lib
Harald Hoyer [Mon, 16 Dec 2013 11:30:26 +0000 (12:30 +0100)] 
dracut.spec: add 95fcoe-uefi and 99uefi-lib

10 years agomove uefi-lib to a seperate module
Harald Hoyer [Thu, 12 Dec 2013 08:49:06 +0000 (09:49 +0100)] 
move uefi-lib to a seperate module

10 years agofcoe: move uefi parsing to fcoe-uefi module
Harald Hoyer [Thu, 12 Dec 2013 08:20:53 +0000 (09:20 +0100)] 
fcoe: move uefi parsing to fcoe-uefi module

10 years agobase/rdsosreport.sh: add dracut version to rdsosreport
Harald Hoyer [Fri, 31 Jan 2014 14:33:05 +0000 (15:33 +0100)] 
base/rdsosreport.sh: add dracut version to rdsosreport

10 years agodmsquash-live/dmsquash-liveiso-genrules.sh: s/loop0/loop-control/
Harald Hoyer [Tue, 28 Jan 2014 17:33:36 +0000 (18:33 +0100)] 
dmsquash-live/dmsquash-liveiso-genrules.sh: s/loop0/loop-control/

If loop is a kernel module, /dev/loop0 will never show up as a udev
event, if the loop module is not manually loaded somewhere.

10 years agonetwork/net-lib.sh: parse ibft nameserver settings
Harald Hoyer [Thu, 30 Jan 2014 16:11:43 +0000 (17:11 +0100)] 
network/net-lib.sh: parse ibft nameserver settings

10 years agonetwork/ifup.sh: handle $dns1 and $dns2 from "ip=" settings
Harald Hoyer [Thu, 30 Jan 2014 16:12:24 +0000 (17:12 +0100)] 
network/ifup.sh: handle $dns1 and $dns2 from "ip=" settings

10 years agonetwork: understand ip=.....:<dns1>:<dns2>
Harald Hoyer [Thu, 30 Jan 2014 12:50:02 +0000 (13:50 +0100)] 
network: understand ip=.....:<dns1>:<dns2>

10 years agodracut.conf.d/fedora.conf.example: turn on early_microcode by default
Harald Hoyer [Thu, 30 Jan 2014 15:51:13 +0000 (16:51 +0100)] 
dracut.conf.d/fedora.conf.example: turn on early_microcode by default

10 years agodracut.sh: only set the owner of files to 0:0, if generated as non-root
Harald Hoyer [Thu, 30 Jan 2014 15:11:40 +0000 (16:11 +0100)] 
dracut.sh: only set the owner of files to 0:0, if generated as non-root

If the root user generates the initramfs image, preserve the ownership
of the files. This of course cannot be done for non-root users
generating an initramfs image.

10 years agodracut-functions.sh: also search in the updates directory
Harald Hoyer [Thu, 30 Jan 2014 13:27:18 +0000 (14:27 +0100)] 
dracut-functions.sh: also search in the updates directory

10 years agosystemd: ensure autofs4 and ipv6 are included
Cristian Rodríguez [Mon, 16 Dec 2013 03:40:58 +0000 (03:40 +0000)] 
systemd: ensure autofs4 and ipv6 are included

Systemd tries to load this modules very early.
Even though they are not strictly required it it is a good
thing to have them around.

[Edited-by: Harald Hoyer: moved to installkernel() ]

10 years agodracut.spec: add skipcpio
Harald Hoyer [Tue, 28 Jan 2014 11:21:33 +0000 (12:21 +0100)] 
dracut.spec: add skipcpio

10 years agoiscsi/iscsiroot.sh: beautify warning
Harald Hoyer [Tue, 28 Jan 2014 11:14:07 +0000 (12:14 +0100)] 
iscsi/iscsiroot.sh: beautify warning

10 years agodracut-lib.sh: bugfix for pidof function
Stig Telfer [Fri, 24 Jan 2014 15:48:32 +0000 (15:48 +0000)] 
dracut-lib.sh: bugfix for pidof function

In follow-up, the patch requires a second mod: kernel tasks have a /proc/.../exe that links to nothing and derails the for loop:

10 years agodracut-lib.sh: bugfix for pidof function
Stig Telfer [Fri, 24 Jan 2014 15:19:11 +0000 (15:19 +0000)] 
dracut-lib.sh: bugfix for pidof function

It appears there is a simple substitution error in the pidof shell function which causes it to fail to find processes.  In my case, processes started by 95nfs are not terminated in the cleanup hook.  This causes knock-on effects disturbing the root filesystem service dependencies.

Enjoy,
Stig Telfer

10 years agonetwork/dhclient-script.sh: set lease time
Harald Hoyer [Tue, 28 Jan 2014 11:12:43 +0000 (12:12 +0100)] 
network/dhclient-script.sh: set lease time

The dracut dhclient-script.sh should set address lifetimes to the DHCP
lease time, so that other stuff (like NetworkManager!) knows that the
address is temporary and was created by DHCP.

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

10 years agolsinitrd.sh: make use of the skipcpio utility
Harald Hoyer [Fri, 24 Jan 2014 14:30:22 +0000 (15:30 +0100)] 
lsinitrd.sh: make use of the skipcpio utility

With the skipcpio utility, the whole contents of an initramfs with an
early cpio image can be displayed.

10 years agodracut.sh: add early_cpio marker file to the early cpio
Harald Hoyer [Fri, 24 Jan 2014 14:29:24 +0000 (15:29 +0100)] 
dracut.sh: add early_cpio marker file to the early cpio

10 years agoadd skipcpio utility
Harald Hoyer [Fri, 24 Jan 2014 14:27:51 +0000 (15:27 +0100)] 
add skipcpio utility

skipcpio skips a cpio archive at the beginning of a file.

It is used for skipping an early cpio archive for lsinitrd.

10 years agodracut.sh: set file owners of early cpio files to 0:0
Harald Hoyer [Fri, 24 Jan 2014 14:27:15 +0000 (15:27 +0100)] 
dracut.sh: set file owners of early cpio files to 0:0

10 years agodracut.sh: create early cpio dir for acpi tables
Harald Hoyer [Fri, 24 Jan 2014 14:26:43 +0000 (15:26 +0100)] 
dracut.sh: create early cpio dir for acpi tables

10 years agoRevert "dmraid: let dmraid setup the partitions"
Harald Hoyer [Fri, 24 Jan 2014 10:55:27 +0000 (11:55 +0100)] 
Revert "dmraid: let dmraid setup the partitions"

This reverts commit fbf717086e8b02947a27f55d1759cccd1cb89e99.

dmraid seems to use "p" as a seperator by default.

Reverting to kpartx, until this is fixed.

10 years agodracut-initramfs-restore,lsinitrd: add LZ4 support
Koen Kooi [Thu, 16 Jan 2014 10:00:54 +0000 (11:00 +0100)] 
dracut-initramfs-restore,lsinitrd: add LZ4 support

Dracut claims to have LZ4 support, but trying to use it will result in an xzcat failure at the end due to missing CAT support.

The lz4 command chokes on '--', so abstract that out into the CAT select.

Something similar will need to be done for LZO.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
10 years agoUse builtin xz/lzma option to use all cores for multihreaded compression
Koen Kooi [Fri, 10 Jan 2014 20:41:43 +0000 (21:41 +0100)] 
Use builtin xz/lzma option to use all cores for multihreaded compression

This removes the dependency on 'getconf' as well, which is not installed by default on my embedded systems.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
10 years agodracut-logger.sh: systemd-cat only understands prio 0-7
Harald Hoyer [Wed, 22 Jan 2014 10:48:45 +0000 (11:48 +0100)] 
dracut-logger.sh: systemd-cat only understands prio 0-7

10 years agolvm:lvm_scan.sh handle one LV at a time with lvchange
Harald Hoyer [Fri, 24 Jan 2014 15:37:13 +0000 (16:37 +0100)] 
lvm:lvm_scan.sh handle one LV at a time with lvchange

10 years agoiscsiroot: touch the right marker file
Harald Hoyer [Fri, 24 Jan 2014 15:35:08 +0000 (16:35 +0100)] 
iscsiroot: touch the right marker file