platform/upstream/dracut.git
11 years agolvm/module-setup.sh: use for_each_host_dev_and_slaves_all
Harald Hoyer [Thu, 21 Feb 2013 11:07:34 +0000 (12:07 +0100)]
lvm/module-setup.sh: use for_each_host_dev_and_slaves_all

Use for_each_host_dev_and_slaves_all to get all lvm setups for the
host-only case.

Thanks to Olivier Thauvin

11 years agosystemd: add systemd-modules-load.service and hook dirs
Harald Hoyer [Thu, 21 Feb 2013 09:55:52 +0000 (10:55 +0100)]
systemd: add systemd-modules-load.service and hook dirs

11 years agointroduce /usr/lib/dracut/dracut.conf.d/ drop-in directory
Harald Hoyer [Tue, 19 Feb 2013 16:36:15 +0000 (17:36 +0100)]
introduce /usr/lib/dracut/dracut.conf.d/ drop-in directory

/usr/lib/dracut/dracut.conf.d/*.conf can be overwritten by the same
filenames in /etc/dracut.conf.d.

Packages should use /usr/lib/dracut/dracut.conf.d rather than
/etc/dracut.conf.d. /etc/dracut.conf.d belongs to the system
administrator.

11 years agourl-lib/url-lib.sh: remove bashism
Harald Hoyer [Tue, 19 Feb 2013 15:13:49 +0000 (16:13 +0100)]
url-lib/url-lib.sh: remove bashism

remove the forgotten bashism "+="

11 years agobase/init.sh: create /run/log
Stefan Reimer [Mon, 18 Feb 2013 11:05:23 +0000 (12:05 +0100)]
base/init.sh: create /run/log

If the systemd module is not used /run/log is not created which results
in dangeling softlink from /var/log which causes stuff to fail.

11 years agodracut: enable initramfs building without kernel modules
Harald Hoyer [Mon, 18 Feb 2013 10:57:20 +0000 (11:57 +0100)]
dracut: enable initramfs building without kernel modules

11 years agobtrfs: use "btrfs device ready"
Harald Hoyer [Thu, 14 Feb 2013 11:36:09 +0000 (12:36 +0100)]
btrfs: use "btrfs device ready"

11 years agosystemd: services got renamed
Harald Hoyer [Thu, 14 Feb 2013 11:32:12 +0000 (12:32 +0100)]
systemd: services got renamed

11 years agodracut-emergency.service: wants systemd-vconsole-setup.service
Harald Hoyer [Thu, 14 Feb 2013 11:31:16 +0000 (12:31 +0100)]
dracut-emergency.service: wants systemd-vconsole-setup.service

11 years agoresume: Ensure we remove the timout job when we find the resume device
Colin Guthrie [Wed, 23 Jan 2013 20:15:03 +0000 (20:15 +0000)]
resume: Ensure we remove the timout job when we find the resume device

11 years agokernel-modules: Add ehci support for kernel 3.8+
Thomas Backlund [Wed, 23 Jan 2013 20:15:06 +0000 (20:15 +0000)]
kernel-modules: Add ehci support for kernel 3.8+

Kernel 3.8 split ehci-hcd into ehci-hcd, ehci-pci and ehci-platform,
so adapt the list to cope with this change.

11 years agomake nbd port check more robust
Wim Muskee [Sat, 9 Feb 2013 11:54:20 +0000 (12:54 +0100)]
make nbd port check more robust

The following change makes the check for the nbd port or named export
more robust.
I wasn't sure whether to include sed in the dracut_install() of
module-setup.sh since net already does that (and nbd depends on that).

11 years agourl-lib/url-lib.sh: add proxy support for curl
Harald Hoyer [Mon, 11 Feb 2013 12:56:04 +0000 (13:56 +0100)]
url-lib/url-lib.sh: add proxy support for curl

11 years agourl-lib/url-lib.sh: remove bashisms
Harald Hoyer [Mon, 11 Feb 2013 12:55:44 +0000 (13:55 +0100)]
url-lib/url-lib.sh: remove bashisms

11 years agosystemd/dracut-initqueue.sh: call udevadm settle directly
Harald Hoyer [Fri, 8 Feb 2013 13:55:24 +0000 (14:55 +0100)]
systemd/dracut-initqueue.sh: call udevadm settle directly

11 years agosystemd/dracut-initqueue: run after cryptsetup.target
Harald Hoyer [Fri, 8 Feb 2013 14:40:47 +0000 (15:40 +0100)]
systemd/dracut-initqueue: run after cryptsetup.target

11 years agosystemd/dracut-pre-pivot.sh: remove /dev/root symlink after shell
Harald Hoyer [Fri, 8 Feb 2013 13:54:38 +0000 (14:54 +0100)]
systemd/dracut-pre-pivot.sh: remove /dev/root symlink after shell

11 years agosystemd: set udev debug/info via config file and report obsolete options
Harald Hoyer [Fri, 8 Feb 2013 13:19:19 +0000 (14:19 +0100)]
systemd: set udev debug/info via config file and report obsolete options

11 years agosystemd/dracut-pre-trigger.sh: enable rd.break=pre-trigger debug shell
Harald Hoyer [Fri, 8 Feb 2013 13:18:54 +0000 (14:18 +0100)]
systemd/dracut-pre-trigger.sh: enable rd.break=pre-trigger debug shell

11 years agosystemd/dracut-cmdline.sh: create /run/log subdir
Harald Hoyer [Fri, 8 Feb 2013 13:18:25 +0000 (14:18 +0100)]
systemd/dracut-cmdline.sh: create /run/log subdir

11 years agosystemd/dracut-pre-trigger.service: load service on demand
Harald Hoyer [Fri, 8 Feb 2013 13:17:50 +0000 (14:17 +0100)]
systemd/dracut-pre-trigger.service: load service on demand

11 years agosystemd/dracut-pre-udev.service: load service on demand
Harald Hoyer [Fri, 8 Feb 2013 13:17:35 +0000 (14:17 +0100)]
systemd/dracut-pre-udev.service: load service on demand

11 years agosystemd: trigger systemd-vconsole-setup.service only on demand
Harald Hoyer [Fri, 8 Feb 2013 13:17:14 +0000 (14:17 +0100)]
systemd: trigger systemd-vconsole-setup.service only on demand

11 years agosystemd/dracut-initqueue.sh: replace $UDEV_QUEUE_EMPTY
Harald Hoyer [Fri, 8 Feb 2013 13:16:10 +0000 (14:16 +0100)]
systemd/dracut-initqueue.sh: replace $UDEV_QUEUE_EMPTY

for systemd-udevd the version of udevd is high enough

11 years agovirtfs: add virtio_pci kernel module
Harald Hoyer [Fri, 8 Feb 2013 13:15:46 +0000 (14:15 +0100)]
virtfs: add virtio_pci kernel module

11 years agoudev-rules: modify udev rules on initramfs creation time
Harald Hoyer [Fri, 8 Feb 2013 13:15:11 +0000 (14:15 +0100)]
udev-rules: modify udev rules on initramfs creation time

11 years agobtrfs/btrfs_finished.sh: use btrfs device ready for probing
Harald Hoyer [Fri, 8 Feb 2013 13:14:10 +0000 (14:14 +0100)]
btrfs/btrfs_finished.sh: use btrfs device ready for probing

11 years agobtrfs/80-btrfs.rules: remove modprobe of btrfs module
Harald Hoyer [Fri, 8 Feb 2013 13:13:34 +0000 (14:13 +0100)]
btrfs/80-btrfs.rules: remove modprobe of btrfs module

this should be automatically modprobed by the kernel on demand

11 years agodrm/module-setup.sh: make drm module only install on dependency
Harald Hoyer [Fri, 8 Feb 2013 13:12:59 +0000 (14:12 +0100)]
drm/module-setup.sh: make drm module only install on dependency

11 years agodracut.sh: make /var/log a symlink to /run/log
Harald Hoyer [Fri, 8 Feb 2013 13:12:34 +0000 (14:12 +0100)]
dracut.sh: make /var/log a symlink to /run/log

11 years agourl-lib/url-lib.sh: turn off curl globbing
Harald Hoyer [Fri, 8 Feb 2013 10:44:23 +0000 (11:44 +0100)]
url-lib/url-lib.sh: turn off curl globbing

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

11 years agonetwork/ifup.sh: echo in get_vid() instead of using the return value
Harald Hoyer [Wed, 6 Feb 2013 16:56:46 +0000 (17:56 +0100)]
network/ifup.sh: echo in get_vid() instead of using the return value

The return value is module 256, so VLAN ids > 255 could not be returned.

11 years agoset peer for point-to-point connections
Dan Horák [Fri, 25 Jan 2013 13:23:58 +0000 (14:23 +0100)]
set peer for point-to-point connections

network/net-lib.sh: only set net vars, if they have a value

11 years agoProvide devices to enable booting with rd.live.overlay.readonly=1
Frederick Grose [Sun, 27 Jan 2013 19:47:17 +0000 (14:47 -0500)]
Provide devices to enable booting with rd.live.overlay.readonly=1

11 years agonetwork/ifup.sh: enable bridged vlan interfaces
Kevin Yung [Wed, 6 Feb 2013 12:33:42 +0000 (13:33 +0100)]
network/ifup.sh: enable bridged vlan interfaces

To use vlan for net boot, you need to specify vlan and ip kernel options
for the boot interface. For example,

 vlan=eth1.1:eth1 bootdev=eth1.1
 ip=1.2.3.4:1.2.3.4::255.255.255.0:my-hostname:eth1:none

To use bridge for net boot, you need to specify bridge and ip kernel
option for the boot interface. For example

 bridge=br1:eth1 bootdev=br1
 ip=1.2.3.4:1.2.3.4::255.255.255.0:my-hostname:eth1:none

In my environment, I needs to boot machines from network within
a vlan or on a bridged network. I found curent dracut release
if-up.sh script in 40network module bypass ip setting for both
bridge and vlan interface.

11 years agofix CTC example in rd.znet
Dan Horák [Mon, 28 Jan 2013 07:35:28 +0000 (08:35 +0100)]
fix CTC example in rd.znet

The CTC interface uses 2 channels.

11 years agoMount /proc before including dracut-lib.sh.
Colin Guthrie [Sat, 26 Jan 2013 18:13:28 +0000 (18:13 +0000)]
Mount /proc before including dracut-lib.sh.

When dracut-lib.sh is sourced it checks the command line (when not using systemd)
as part of the check_quiet() call.

Therefore mount /proc earlier in init.

Avoids the error:

init: 77: /lib/dracut-lib.sh: /proc/cmdline: No such file or directory

11 years agodracut.sh: reverting return value change
Harald Hoyer [Tue, 5 Feb 2013 15:45:42 +0000 (16:45 +0100)]
dracut.sh: reverting return value change

reverting _get_fs_type() return values of patch
c8d685c9d3860e49f39a9c85ffebbb4c4fec341f

11 years agoshutdown: call "losetup -D" on shutdown
Harald Hoyer [Tue, 5 Feb 2013 10:02:05 +0000 (11:02 +0100)]
shutdown: call "losetup -D" on shutdown

11 years agomdmon: renamed mdmon-offroot@.service to mdmon@.service
Harald Hoyer [Tue, 5 Feb 2013 09:56:13 +0000 (10:56 +0100)]
mdmon: renamed mdmon-offroot@.service to mdmon@.service

11 years agoTODO: updated
Harald Hoyer [Tue, 5 Feb 2013 09:56:43 +0000 (10:56 +0100)]
TODO: updated

11 years agonetwork/net-genrules.sh: remove some bashisms
Harald Hoyer [Wed, 30 Jan 2013 16:22:25 +0000 (17:22 +0100)]
network/net-genrules.sh: remove some bashisms

11 years agoSupport out-of-tree and updated drivers in initramfs creation
Joe Lawrence [Thu, 24 Jan 2013 22:26:43 +0000 (17:26 -0500)]
Support out-of-tree and updated drivers in initramfs creation

The find_kernel_modules_by_path function shouldn't filter out modules not
located underneath the /lib/modules/ver/kernel directory as out-of-tree
drivers may reside in /lib/modules/ver/extra and updated drivers in
/lib/modules/ver/updates.

Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com>
11 years agorootfs-block/mount-root.sh: fixup for 8b6bf0ef5
Harald Hoyer [Wed, 23 Jan 2013 15:23:07 +0000 (16:23 +0100)]
rootfs-block/mount-root.sh: fixup for 8b6bf0ef5

not only fix the warning message, but the real mount arguments, too

11 years agoNEWS: update for version 025
Harald Hoyer [Wed, 23 Jan 2013 15:12:18 +0000 (16:12 +0100)]
NEWS: update for version 025

11 years agoversion 025 025 upstream/025
Harald Hoyer [Wed, 23 Jan 2013 14:35:13 +0000 (15:35 +0100)]
version 025

11 years agodracut.spec: add drm module
Harald Hoyer [Wed, 23 Jan 2013 14:38:36 +0000 (15:38 +0100)]
dracut.spec: add drm module

11 years agoInclude crc32c module for xfs.
Colin Guthrie [Sun, 13 Jan 2013 14:06:58 +0000 (14:06 +0000)]
Include crc32c module for xfs.

Just like btrfs, xfs now requires CRC module that cannot be resolved via
normal module resolving.

Move this hack into fs-lib and remove it from btrfs module.

https://bugs.mageia.org/show_bug.cgi?id=8676

11 years agodracut-functions.sh: cope with optional field #7 in mountinfo
Harald Hoyer [Wed, 23 Jan 2013 13:10:15 +0000 (14:10 +0100)]
dracut-functions.sh: cope with optional field #7 in mountinfo

also handle fstab entries with LABEL=, UUID= and PARTUUID=

11 years agonetwork/dhclient-script.sh: also touch "/tmp/setup_net_<mac>.ok"
Harald Hoyer [Wed, 23 Jan 2013 13:08:23 +0000 (14:08 +0100)]
network/dhclient-script.sh: also touch "/tmp/setup_net_<mac>.ok"

11 years agoromount fix
Harald Hoyer [Tue, 22 Jan 2013 17:11:04 +0000 (18:11 +0100)]
romount fix

11 years agoAdd memory usage trace to diffrent hook points
Dave Young [Fri, 18 Jan 2013 01:59:52 +0000 (09:59 +0800)]
Add memory usage trace to diffrent hook points

Hi, Here is an update of this patch, fixed the local variable issue.

11 years agoadd function getargnum
dyoung@redhat.com [Thu, 17 Jan 2013 08:55:50 +0000 (16:55 +0800)]
add function getargnum

For cmdline argument with numeric value, add a new function getargnum
It will get proper value with default value as $1, min value as $2,
max value as $3, and param name as $4. valid result will be echo to stdout.
for nul or value not valid it will just echo the default value.
Note: The values should be >=0

[v1->v2]: add arg <minval>
[v2->v3]: do not use bash string match =~

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agouse linkup in dhclient-script.sh
Dave Young [Sun, 6 Jan 2013 06:17:54 +0000 (14:17 +0800)]
use linkup in dhclient-script.sh

linkup is a wrapper function for waiting interface ready and up.
change to use linkup as what we do in ifup script.

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agoExtend 52f1b041 to allow devices to be specified in config files as well as cmdline.
Colin Guthrie [Mon, 21 Jan 2013 11:23:19 +0000 (11:23 +0000)]
Extend 52f1b041 to allow devices to be specified in config files as well as cmdline.

This also changes the command line switch to be --add-device and the
config directive is set to add_device. This was chosen as device= in the
config file seems too generic and not quite as consistent with other
directives (i.e. drivers/add_drivers)

The --device command line is still supported but it should be considered
deprecated in favour of --add-device.

11 years agofix teamd exec in case config does not include devname
Jiri Pirko [Thu, 10 Jan 2013 14:02:51 +0000 (15:02 +0100)]
fix teamd exec in case config does not include devname

In case that configuration file did not include name of team device,
teamd would not start. Fix this by adding "-t" parameter.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
11 years agoshutdown: kill all processes and report remaining ones
Harald Hoyer [Fri, 18 Jan 2013 12:46:30 +0000 (13:46 +0100)]
shutdown: kill all processes and report remaining ones

11 years agomdraid: add mdmon-offroot@.service and takeover mdmon in shutdown
Harald Hoyer [Fri, 18 Jan 2013 10:01:43 +0000 (11:01 +0100)]
mdraid: add mdmon-offroot@.service and takeover mdmon in shutdown

11 years agoshutdown: source pre-shutdown hook and force quit plymouth before umount
Harald Hoyer [Fri, 18 Jan 2013 10:00:48 +0000 (11:00 +0100)]
shutdown: source pre-shutdown hook and force quit plymouth before umount

11 years agodracut-lib.sh: force hide plymouth in shutdown emergency shell
Harald Hoyer [Fri, 18 Jan 2013 10:00:00 +0000 (11:00 +0100)]
dracut-lib.sh: force hide plymouth in shutdown emergency shell

11 years agodracut-functions.sh: add pre-shutdown hook
Harald Hoyer [Fri, 18 Jan 2013 09:59:39 +0000 (10:59 +0100)]
dracut-functions.sh: add pre-shutdown hook

11 years agodracut.asc: document shutdown procedure
Harald Hoyer [Fri, 18 Jan 2013 09:13:14 +0000 (10:13 +0100)]
dracut.asc: document shutdown procedure

11 years agodracut.asc: s/rd.ip/ip/g
Harald Hoyer [Mon, 7 Jan 2013 17:00:06 +0000 (18:00 +0100)]
dracut.asc: s/rd.ip/ip/g

11 years agodracut-functions.sh: fixed inst_rules search path
Harald Hoyer [Thu, 3 Jan 2013 08:29:05 +0000 (09:29 +0100)]
dracut-functions.sh: fixed inst_rules search path

11 years agousrmount/mount-usr.sh: filter "subvol=" from root rflags
Harald Hoyer [Wed, 2 Jan 2013 12:43:56 +0000 (13:43 +0100)]
usrmount/mount-usr.sh: filter "subvol=" from root rflags

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

11 years agokernel-modules: create /etc/modprobe.d if it does not yet exist
Harald Hoyer [Wed, 2 Jan 2013 10:11:21 +0000 (11:11 +0100)]
kernel-modules: create /etc/modprobe.d if it does not yet exist

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

11 years agodmsquash-live: fixed checkisomd5 service call
Harald Hoyer [Thu, 20 Dec 2012 12:46:31 +0000 (13:46 +0100)]
dmsquash-live: fixed checkisomd5 service call

11 years agoWait for interface up at the early stage
dyoung@redhat.com [Wed, 12 Dec 2012 04:23:26 +0000 (12:23 +0800)]
Wait for interface up at the early stage

In case long delay of network driver initqueue will exit before net dev is
ready. We have no chance to setup it then.
For dhcp, when we finish the setup there will be a setup_net_<dev>.ok. Doing
same for static ip case. Also add a check to initqueue when we generate udev
rules to ensure it's early enough.

[v1->v2]: only wait for bootdev or it's possible to cause boot fail for
waiting for non-bootdev. For example bond0->eth0, set bond0 as bootdev and
dhcp, we only need to wait bond0 setup ok.

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agoGet ifaces for udev rule use
dyoung@redhat.com [Wed, 12 Dec 2012 04:23:25 +0000 (12:23 +0800)]
Get ifaces for udev rule use

In case BOOTIF is not set and IFACES are not set in bonding/vlan/bridge code,
net-genrule.sh will fall to bring up all net interfaces.

Here add a failsafe option to read IFACES from /tmp/net.ifaces

[v1->v2]: move IFACES reading from net.ifaces after bonding/vlan/bridge info
code chunks.
[v2->v3]: [ -n "$IFACES" ] should be  [ -z "$IFACES" ]

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agoWait for link ready before use the interface
dyoung@redhat.com [Wed, 12 Dec 2012 04:23:24 +0000 (12:23 +0800)]
Wait for link ready before use the interface

Some network driver will take long time to initialize. We have an example
in a HP machine which take about one minute for this. The callback such as
"ip link set <dev> up" will fail, afterwards setup for network will also
fail.

Fix this by add a new function wait_for_if_link, wait the link ready before
use it.

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agoChange to use linkup function in network scripts
dyoung@redhat.com [Wed, 12 Dec 2012 04:23:23 +0000 (12:23 +0800)]
Change to use linkup function in network scripts

Update ifup.sh and fcoe-up.sh, use linkup function instead of directly
call ip command.

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agoAdd function linkup
dyoung@redhat.com [Wed, 12 Dec 2012 04:23:22 +0000 (12:23 +0800)]
Add function linkup

set link up usually include two steps, ip link set <dev> up and
wait_for_if_up <dev>. Now do these two steps in one function linkup.
Later patch will add other code into it.

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agoMove wait for if functions to net lib
dyoung@redhat.com [Wed, 12 Dec 2012 04:23:21 +0000 (12:23 +0800)]
Move wait for if functions to net lib

net-lib.sh are created for net related functions, move the wait_for_if* to
net-lib.sh naturally.

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agodracut: add team device support
Cong Wang [Thu, 13 Dec 2012 14:30:25 +0000 (22:30 +0800)]
dracut: add team device support

V2: merge patch 2/2
    fix active-backup mode by adding slaves one by one
    sync with the latest teamd
    improve the comments
    wait for team ports to come up
    install /etc/libnl/classid too

This patch adds the initial support for team device [1].
A new cmdline team= is introduced for it.

Note, currently we don't support stacked devices
on/under team, it is tricky and can be added on request.

1. http://www.libteam.org/

Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Cong Wang <amwang@redhat.com>
11 years agochange for "udevadm control": s/--reload-rules/--reload/g
Harald Hoyer [Fri, 30 Nov 2012 10:15:39 +0000 (11:15 +0100)]
change for "udevadm control": s/--reload-rules/--reload/g

11 years agoiscsi/iscsiroot.sh: reload rules after adding 99-iscsi-root.rules
Harald Hoyer [Fri, 30 Nov 2012 10:13:17 +0000 (11:13 +0100)]
iscsi/iscsiroot.sh: reload rules after adding 99-iscsi-root.rules

11 years agocms/cms-write-ifcfg.sh: also fill in /etc/hostname
Harald Hoyer [Thu, 29 Nov 2012 15:23:39 +0000 (16:23 +0100)]
cms/cms-write-ifcfg.sh: also fill in /etc/hostname

11 years agoudev-rules/udev-rules-prepare.sh: get UDEVVERSION, if unset
Harald Hoyer [Thu, 29 Nov 2012 15:07:15 +0000 (16:07 +0100)]
udev-rules/udev-rules-prepare.sh: get UDEVVERSION, if unset

11 years agoFallback to external blkid and path_id in udev rules for <udev-176.
Amadeusz Żołnowski [Thu, 1 Nov 2012 10:06:22 +0000 (11:06 +0100)]
Fallback to external blkid and path_id in udev rules for <udev-176.

Starting with commit 24a38bc1cbe461c344ce61c7e10b6d51d5689c93 dracut
uses udev builtins but still depends on >=udev-166 in dracut.spec.  This
patch makes dracut work with older udev again.

All credits go to Alexander Tsoy <alexander@tsoy.me>; see

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

11 years agonfs/nfsroot-cleanup.sh: mount --bind instead of --move
Harald Hoyer [Thu, 29 Nov 2012 15:07:35 +0000 (16:07 +0100)]
nfs/nfsroot-cleanup.sh: mount --bind instead of --move

11 years agodracut.spec: add iputils and iproute requirement for dracut-network
Harald Hoyer [Tue, 27 Nov 2012 12:25:46 +0000 (13:25 +0100)]
dracut.spec: add iputils and iproute requirement for dracut-network

11 years agoFix rd.blacklist.driver when no /etc/modprobe.d exists
Nicolas Chauvet [Mon, 5 Nov 2012 23:39:04 +0000 (00:39 +0100)]
Fix rd.blacklist.driver when no /etc/modprobe.d exists

This bug was reported as http://bugzilla.redhat.com/873220#c2

As the /etc/modprobe.d isn't created in the boot process
nor bundled within the initramfs, the initramfsblacklist.conf
cannot be created.

Instead, the /usr/lib/modprobe.d directory is available and using it
will restore the blacklist behavior.

11 years agoadd 'swapoff' to initramfs to fix shutdown/reboot
Will Woods [Wed, 24 Oct 2012 17:06:28 +0000 (13:06 -0400)]
add 'swapoff' to initramfs to fix shutdown/reboot

systemd shutdown/reboot won't work unless 'swapoff' is available.

11 years agodrop NEWROOT from module-setup.sh
Will Woods [Wed, 24 Oct 2012 17:06:11 +0000 (13:06 -0400)]
drop NEWROOT from module-setup.sh

This was almost certainly copy-pasted from mount-root.sh, but it's not
valid here - dracut doesn't use NEWROOT outside of the initramfs.

11 years agosplit plymouth module
Dave Young [Mon, 12 Nov 2012 09:24:41 +0000 (17:24 +0800)]
split plymouth module

Kdump module will need the drm and kms kernel modules so user can see the
emergency shell at least.

Fix this by split 50plymouth module to 50drm and 50plymouth. Moving the
installkernel part to 50drm so user can use drm directly without adding
extra plymouth utils.

Signed-off-by: Dave Young <dyoung@redhat.com>
Tested-by: Chao Wang <chaowang@redhat.com>
11 years agosystemd/dracut-cmdline.service: run before systemd-vconsole-setup
Harald Hoyer [Thu, 29 Nov 2012 14:53:15 +0000 (15:53 +0100)]
systemd/dracut-cmdline.service: run before systemd-vconsole-setup

cmdline does generate vconsole.conf, which is needed by vconsole-setup

11 years agosystemd/service-to-run.sh: silence "cp" errors
Harald Hoyer [Thu, 29 Nov 2012 14:52:53 +0000 (15:52 +0100)]
systemd/service-to-run.sh: silence "cp" errors

11 years agocrypt/crypt-run-generator.sh: do not timeout for LUKS passwords with systemd
Harald Hoyer [Fri, 30 Nov 2012 14:22:43 +0000 (15:22 +0100)]
crypt/crypt-run-generator.sh: do not timeout for LUKS passwords with systemd

11 years agodmsquash-live: add systemd checkisomd5 service
Harald Hoyer [Fri, 14 Dec 2012 07:57:22 +0000 (08:57 +0100)]
dmsquash-live: add systemd checkisomd5 service

11 years agonetwork: fixed MAC address assignment
Harald Hoyer [Mon, 26 Nov 2012 12:49:38 +0000 (13:49 +0100)]
network: fixed MAC address assignment

11 years agosystemd/module-setup.sh: turn off RateLimit for the journal
Harald Hoyer [Mon, 26 Nov 2012 12:49:19 +0000 (13:49 +0100)]
systemd/module-setup.sh: turn off RateLimit for the journal

11 years agocms/cmssetup.sh: sync udev rules names with network/net-genrules.sh
Harald Hoyer [Thu, 22 Nov 2012 11:31:18 +0000 (12:31 +0100)]
cms/cmssetup.sh: sync udev rules names with network/net-genrules.sh

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

11 years agonfs/nfs-start-rpc.sh: prevent mount error, if sunrpc kernel module is not in the...
Harald Hoyer [Thu, 22 Nov 2012 11:14:31 +0000 (12:14 +0100)]
nfs/nfs-start-rpc.sh: prevent mount error, if sunrpc kernel module is not in the initramfs

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

11 years agoi18n/parse-i18n.sh: fix locale.conf caused by 4dbc1d1bb3dcbb173b02
Harald Hoyer [Thu, 22 Nov 2012 10:58:37 +0000 (11:58 +0100)]
i18n/parse-i18n.sh: fix locale.conf caused by 4dbc1d1bb3dcbb173b02

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

11 years agocrypt/crypt-run-generator.sh: fixup last commit 065fc56ab27d8ea1aace72de54a6884bb558ea97
Harald Hoyer [Wed, 21 Nov 2012 15:30:58 +0000 (16:30 +0100)]
crypt/crypt-run-generator.sh: fixup last commit 065fc56ab27d8ea1aace72de54a6884bb558ea97

11 years agoMake short uuid specification for allow-discards work
Robert Buchholz [Sun, 11 Nov 2012 19:25:06 +0000 (20:25 +0100)]
Make short uuid specification for allow-discards work

1) strstr " $discarduuids " did not remove the optional
'luks-' prefix from the argument as the documentation says.

2) The lookup seems backwards. $luksdev ($luks in the other code copy)
is the full uuid and thus one should check whether the user-supplied
argument (short form) is contained therein, not the other way around.

Before this commit, the only way to trigger allow-discards was to
specify the full uuid without the 'luks-' prefix.

11 years agoAdd sosreport script and generate /run/initramfs/sosreport.txt
Harald Hoyer [Wed, 21 Nov 2012 13:07:54 +0000 (14:07 +0100)]
Add sosreport script and generate /run/initramfs/sosreport.txt

11 years agodracut.sh: do not strip signed kernel modules
Harald Hoyer [Wed, 21 Nov 2012 09:47:38 +0000 (10:47 +0100)]
dracut.sh: do not strip signed kernel modules

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

11 years ago[nfs|cifs]root.sh: make "/dev/root" a symlink, so it gets cleaned up later on
Harald Hoyer [Mon, 19 Nov 2012 15:59:30 +0000 (16:59 +0100)]
[nfs|cifs]root.sh: make "/dev/root" a symlink, so it gets cleaned up later on

12 years agodracut.sh: only 'warn' not 'error', if we don't strip
Harald Hoyer [Fri, 19 Oct 2012 09:20:07 +0000 (11:20 +0200)]
dracut.sh: only 'warn' not 'error', if we don't strip