]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
11 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

11 years agolvm: fixed lvm thin check
Harald Hoyer [Fri, 13 Dec 2013 10:05:39 +0000 (11:05 +0100)] 
lvm: fixed lvm thin check

11 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

11 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

11 years agousrmount: always install
Alexander Tsoy [Thu, 21 Nov 2013 16:33:38 +0000 (20:33 +0400)] 
usrmount: always install

/usr should be mounted by initramfs even if /sbin/init lives in /

11 years agobase/rdsosreport.sh: add "ip a" output
Harald Hoyer [Tue, 10 Dec 2013 11:58:37 +0000 (12:58 +0100)] 
base/rdsosreport.sh: add "ip a" output

11 years agosystemd/dracut-initqueue.sh: fixed waiting in the loop if PW asked
Harald Hoyer [Thu, 5 Dec 2013 17:38:35 +0000 (18:38 +0100)] 
systemd/dracut-initqueue.sh: fixed waiting in the loop if PW asked

continue the main loop instead of the for loop, if a password is
currently asked

11 years agoTODO: update
Harald Hoyer [Thu, 5 Dec 2013 17:38:23 +0000 (18:38 +0100)] 
TODO: update

11 years agodracut.spec: remove suse man pages
Harald Hoyer [Thu, 5 Dec 2013 16:31:09 +0000 (17:31 +0100)] 
dracut.spec: remove suse man pages

11 years agodracut.spec: add new modules
Harald Hoyer [Thu, 5 Dec 2013 16:27:57 +0000 (17:27 +0100)] 
dracut.spec: add new modules

11 years agoi18n: introduce i18n_install_all, to install everything
Harald Hoyer [Thu, 5 Dec 2013 15:42:05 +0000 (16:42 +0100)] 
i18n: introduce i18n_install_all, to install everything

if i18n_install_all is set to "yes", then install all keyboard layouts
and fonts regardless of the hostonly setting.

This way, people can switch keyboard layouts, without having to recreate
the initramfs.

11 years agolvm: install thin tools, only when needed in hostonly
Harald Hoyer [Thu, 5 Dec 2013 14:57:42 +0000 (15:57 +0100)] 
lvm: install thin tools, only when needed in hostonly

11 years agoRemove shebang from shell-completion files
Hannes Reinecke [Fri, 29 Nov 2013 12:13:54 +0000 (13:13 +0100)] 
Remove shebang from shell-completion files

Shell-completion files are meant to be sourced, not executed.
So they shouldn't have a shebang at the start.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years agoFixup script permissions
Hannes Reinecke [Fri, 29 Nov 2013 12:13:53 +0000 (13:13 +0100)] 
Fixup script permissions

Scripts with a shebang should be marked as executable.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years agoFixup keymap setting for openSUSE
Hannes Reinecke [Fri, 29 Nov 2013 12:13:52 +0000 (13:13 +0100)] 
Fixup keymap setting for openSUSE

openSUSE is using compressed keymaps.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years agomkinitrd-suse.8.asc: Add manpage for SUSE compat mkinitrd
Hannes Reinecke [Fri, 29 Nov 2013 12:13:51 +0000 (13:13 +0100)] 
mkinitrd-suse.8.asc: Add manpage for SUSE compat mkinitrd

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years agomkinitrd-suse: Add SUSE compability wrapper for dracut
Hannes Reinecke [Fri, 29 Nov 2013 12:13:50 +0000 (13:13 +0100)] 
mkinitrd-suse: Add SUSE compability wrapper for dracut

SUSE has its own mkinitrd system. As the arguments clash
with the dracut-provided mkinitrd script I've added a new
mkinitrd-suse.sh wrapper.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years agoMake logfile configurable
Hannes Reinecke [Fri, 29 Nov 2013 12:13:49 +0000 (13:13 +0100)] 
Make logfile configurable

Add '--logfile' option to make the log file configurable during
runtime.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years agoAdd zfcp scripts for SUSE
Hannes Reinecke [Fri, 29 Nov 2013 12:13:48 +0000 (13:13 +0100)] 
Add zfcp scripts for SUSE

SuSE is storing the zfcp configuration in udev files, so we should
be including these.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years agoAdd DASD configuration for SuSE
Hannes Reinecke [Fri, 29 Nov 2013 12:13:47 +0000 (13:13 +0100)] 
Add DASD configuration for SuSE

On SuSE the DASD configuration is kept in udev rules, one rule
file per device. So add a new module for copying and creating
these rules during boot.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years ago95znet: Make installation optional
Hannes Reinecke [Fri, 29 Nov 2013 12:13:46 +0000 (13:13 +0100)] 
95znet: Make installation optional

znet_cio_free is a RedHat-specific tool, so do not install this
module on systems where the program is missing.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years ago95zfcp: Make installation optional
Hannes Reinecke [Fri, 29 Nov 2013 12:13:45 +0000 (13:13 +0100)] 
95zfcp: Make installation optional

zfcp_cio_free is a RedHat-specific tool, so do not install this
module if the program isn't present.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years ago95dasd_mod: make dasd_cio_free optional
Hannes Reinecke [Fri, 29 Nov 2013 12:13:44 +0000 (13:13 +0100)] 
95dasd_mod: make dasd_cio_free optional

dasd_cio_free is a RedHat-specific tool, so make it optional.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years ago95dasd: Only install module if normalize_dasd_arg is present
Hannes Reinecke [Fri, 29 Nov 2013 12:13:43 +0000 (13:13 +0100)] 
95dasd: Only install module if normalize_dasd_arg is present

normalize_dasd_arg is a RedHat specific script, so no point
installing this module if the script isn't present.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years ago95dasd: Install kernel modules only once
Hannes Reinecke [Fri, 29 Nov 2013 12:13:42 +0000 (13:13 +0100)] 
95dasd: Install kernel modules only once

Move kernel module selection to 95dasd_mod and make 95dasd depend
on that module.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years ago10i18n/parse-i18n.sh: fixed vconsole.conf/locale.conf generation
Harald Hoyer [Thu, 5 Dec 2013 14:06:39 +0000 (15:06 +0100)] 
10i18n/parse-i18n.sh: fixed vconsole.conf/locale.conf generation

11 years agodracut-functions.sh: do not force require modules.builtin*
Harald Hoyer [Thu, 5 Dec 2013 14:06:06 +0000 (15:06 +0100)] 
dracut-functions.sh: do not force require modules.builtin*

11 years agodracut.sh: skip crypt swaps with password files
Harald Hoyer [Mon, 2 Dec 2013 10:05:21 +0000 (11:05 +0100)] 
dracut.sh: skip crypt swaps with password files

11 years agoresume: no more autoresume
Harald Hoyer [Mon, 2 Dec 2013 10:02:34 +0000 (11:02 +0100)] 
resume: no more autoresume

11 years agoresume: autoconf resume
Harald Hoyer [Mon, 2 Dec 2013 09:45:17 +0000 (10:45 +0100)] 
resume: autoconf resume

11 years agobase/dracut-lib.sh:wait_for_dev() relax requirement
Harald Hoyer [Mon, 2 Dec 2013 09:39:36 +0000 (10:39 +0100)] 
base/dracut-lib.sh:wait_for_dev() relax requirement

Do not "require" the devices, but "want" them. This might boot more
systems, where:
- the UUID changed
- swap devices do not show up

11 years agonetwork/ifup.sh: before doing dhcp, check, if the link has a carrier
Harald Hoyer [Mon, 2 Dec 2013 09:38:21 +0000 (10:38 +0100)] 
network/ifup.sh: before doing dhcp, check, if the link has a carrier

11 years agonetwork/net-lib.sh:iface_has_link() fixup
Harald Hoyer [Mon, 2 Dec 2013 09:36:42 +0000 (10:36 +0100)] 
network/net-lib.sh:iface_has_link() fixup

Just echo'ing the flags IFF_UP|IFF_RUNNING does _not_ reflect the
carrier state immediately. So wait for it to really show up.

11 years agonetwork/net-lib.sh:wait_for_if_up() wait for "state UP"
Harald Hoyer [Mon, 2 Dec 2013 09:34:18 +0000 (10:34 +0100)] 
network/net-lib.sh:wait_for_if_up() wait for "state UP"

really wait for "state UP", otherwise it returns earlier than we want

11 years agodracut.sh:_get_fs_type() if block device exists return early
Harald Hoyer [Mon, 2 Dec 2013 09:32:00 +0000 (10:32 +0100)] 
dracut.sh:_get_fs_type() if block device exists return early

even, if no ID_FS_TYPE was found, return if the block device exists

11 years agodracut.cmdline.7.asc: document "server-ip" of "ip=" parameter
Harald Hoyer [Mon, 2 Dec 2013 09:30:52 +0000 (10:30 +0100)] 
dracut.cmdline.7.asc: document "server-ip" of "ip=" parameter

11 years agofips: fix RHEV vmlinuz check
Harald Hoyer [Fri, 8 Nov 2013 14:06:18 +0000 (15:06 +0100)] 
fips: fix RHEV vmlinuz check

11 years agolvm: do not run pvscan for lvmetad update
Peter Rajnoha [Mon, 25 Nov 2013 13:38:00 +0000 (14:38 +0100)] 
lvm: do not run pvscan for lvmetad update

The lvmetad daemon is not yet running in initramfs so there's no
need to run pvscan (or instantiate any lvm2-pvscan systemd service).
If pvscan was called in this case (either directly or via systemd
instantiated service), it would fail because there's no lvmetad
daemon to update. This could cause confusion, especially in systemd
instantiated service which is run only once!

11 years agokernel-modules: add ohci-pci to the list of forced module installs
Harald Hoyer [Thu, 14 Nov 2013 09:07:04 +0000 (10:07 +0100)] 
kernel-modules: add ohci-pci to the list of forced module installs

11 years agoRun 'xz' and 'lzma' with multiple threads
Vratislav Podzimek [Wed, 13 Nov 2013 12:20:39 +0000 (13:20 +0100)] 
Run 'xz' and 'lzma' with multiple threads

This speeds up compression a lot on multicore systems.

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

[Edited-by: Harald Hoyer: use getconf for cpu_count]

11 years agosystemd: do not exit the initqueue, if systemd asks a password
Harald Hoyer [Mon, 11 Nov 2013 15:57:32 +0000 (16:57 +0100)] 
systemd: do not exit the initqueue, if systemd asks a password

this prevents bailing out the initqueue, while passwords are still to be
asked

11 years agoiscsi,nbd: do not fail in hostonly mode
Harald Hoyer [Mon, 11 Nov 2013 15:57:09 +0000 (16:57 +0100)] 
iscsi,nbd: do not fail in hostonly mode

11 years agodracut-functions.sh: Avoid loading unnecessary 32-bit libraries for 64-bit initrds
Colin Guthrie [Sat, 2 Nov 2013 11:26:30 +0000 (11:26 +0000)] 
dracut-functions.sh: Avoid loading unnecessary 32-bit libraries for 64-bit initrds

Due to the 'inst_libdir_file "libnss_files*"' in the udev-rules module
this caues the /usr/lib/libnss_files-2.18.so* to be included. This is a
32-bit library and pulls in a 32-bit version of glibc also even on a
64-bit system.

This is due to the fact that ldconfig -pN will print [/usr]/lib paths
from the cache as well as [/usr]/lib64. As we handle these paths
specifically we should ignore these results from the cache.

Also there was a missing space when appending the ldconfig paths
onto our list meaning the last builtin and first ldconfig path
were unusable.

11 years agofips: also install /etc/system-fips in the initramfs
Harald Hoyer [Mon, 4 Nov 2013 16:29:15 +0000 (17:29 +0100)] 
fips: also install /etc/system-fips in the initramfs

11 years agodracut.modules.7.asc: removed empty section
Harald Hoyer [Sat, 2 Nov 2013 12:20:32 +0000 (13:20 +0100)] 
dracut.modules.7.asc: removed empty section

11 years agodracut.sh: fixed PATH shortener
Harald Hoyer [Sat, 2 Nov 2013 12:14:40 +0000 (13:14 +0100)] 
dracut.sh: fixed PATH shortener

11 years agodracut.spec: move /sbin/dracut to /usr/sbin/dracut
Harald Hoyer [Mon, 21 Oct 2013 07:43:04 +0000 (09:43 +0200)] 
dracut.spec: move /sbin/dracut to /usr/sbin/dracut

11 years agoiscsi/nbd: do not try to mount the whole disk, if root= is missing
Harald Hoyer [Wed, 30 Oct 2013 16:36:54 +0000 (17:36 +0100)] 
iscsi/nbd: do not try to mount the whole disk, if root= is missing

only mount the whole disk for root=dhcp

11 years agofips: include crct10dif_generic
Kyle McMartin [Wed, 30 Oct 2013 11:35:27 +0000 (12:35 +0100)] 
fips: include crct10dif_generic

Resolves: rhbz#1024455

11 years agoHandle crypto modules with and without modaliases
Harald Hoyer [Wed, 30 Oct 2013 11:22:52 +0000 (12:22 +0100)] 
Handle crypto modules with and without modaliases

If new kernels have modules split out, handle the case, where modules
have to modalias and just install them.

Also add the crypto drivers and names to host_modalias.

11 years agousrmount/module-setup.sh: fixed typo
Alexander Tsoy [Fri, 25 Oct 2013 15:06:44 +0000 (17:06 +0200)] 
usrmount/module-setup.sh: fixed typo

11 years agolvm: always install thin utils for lvm
Harald Hoyer [Mon, 21 Oct 2013 07:09:26 +0000 (09:09 +0200)] 
lvm: always install thin utils for lvm

11 years agokernel-modules(ARM): add mmc_block usb_storage to statis list of kernel mods
Harald Hoyer [Fri, 18 Oct 2013 12:56:51 +0000 (14:56 +0200)] 
kernel-modules(ARM): add mmc_block usb_storage to statis list of kernel mods

11 years agodracut-functions.sh:check_block_and_slaves*() skip LVM internal devs
Marian Csontos [Fri, 18 Oct 2013 12:40:40 +0000 (14:40 +0200)] 
dracut-functions.sh:check_block_and_slaves*() skip LVM internal devs

Not every device in /dev/mapper should be examined.
If it is an LVM device, touch only devices which have /dev/VG/LV symlink.

11 years agomkdir basic dirs in /run
Harald Hoyer [Wed, 16 Oct 2013 09:47:01 +0000 (11:47 +0200)] 
mkdir basic dirs in /run

for systemd initramfs, /run is also mounted
for non-systemd the contents of /run is copied over, when mounting /run

11 years agonetwork/fcoe: only redirect output to loginit.pipe, if exists
Harald Hoyer [Wed, 16 Oct 2013 09:39:34 +0000 (11:39 +0200)] 
network/fcoe: only redirect output to loginit.pipe, if exists

11 years agodracut.sh: no need to make subdirs in run
Harald Hoyer [Wed, 16 Oct 2013 09:39:17 +0000 (11:39 +0200)] 
dracut.sh: no need to make subdirs in run

11 years agodracut.sh: also mkdir /run/lock, which is copied to
Harald Hoyer [Wed, 16 Oct 2013 09:31:54 +0000 (11:31 +0200)] 
dracut.sh: also mkdir /run/lock, which is copied to

11 years agolvm: fix thin recognition
Harald Hoyer [Wed, 16 Oct 2013 09:30:08 +0000 (11:30 +0200)] 
lvm: fix thin recognition

The global var setting was happening in a pipe and did not have an
effect.

Use <<<$() instead.

< <() cannot be used, because dracut is called in chroot's environments,
where /dev/fd does not point to /proc/self/fd, but bash wants
/dev/fd/<num> for this construct.

11 years agoAdd lzo, lz4 compression and read INITRD_COMPRESS
P J P [Fri, 11 Oct 2013 13:56:51 +0000 (19:26 +0530)] 
Add lzo, lz4 compression and read INITRD_COMPRESS

This patch adds support for lzop(1) & lz4(1) compression
algorithms to compress iniramfs image file. Both are supported
by the Linux kernel.

Linux kernel exports user's choice of initramfs compression
algorithm as a shell environment variable: INITRD_COMPRESS.
This patch adds support to read this variable and duly compress
the initramfs image file.

Environment variable INITRD_COMPRESS has less precedence than the
command line options --gzip, etc. Ie. command line options could
override the compression algorithm defined by $INITRD_COMPRESS.

Signed-off-by: P J P <ppandit@redhat.com>
[Edited-by: Harald Hoyer: add documentation about lzo and lz4]

11 years agoresume: remove resume-genrules.sh
Alexander Tsoy [Wed, 9 Oct 2013 03:02:56 +0000 (07:02 +0400)] 
resume: remove resume-genrules.sh

parse-resume.sh already contains all the code from resume-genrules.sh.
Also parse-resume.sh is executed before resume-genrules.sh, so there is
no point to keep the latter.

This fixes the following error messages:
dracut-initqueue: ln: failed to create symbolic link '/dev/resume': File exists
dracut-initqueue: rm: cannot remove '/lib/dracut/hooks/initqueue/settled/resume.sh': No such file or directory
dracut-initqueue: rm: cannot remove '/lib/dracut/hooks/initqueue/timeout/resume.sh': No such file or directory

11 years agoresume: fix swap detection in hostonly
Alexander Tsoy [Wed, 9 Oct 2013 02:39:46 +0000 (06:39 +0400)] 
resume: fix swap detection in hostonly

Check for other possible fs types. This fixes swap detection when using
TuxOnIce kernel.

Note that parse-resume.sh generate udev rules with support for
ID_FS_TYPE=suspend, but we do not include it here, because it is
libvolume_id thing and host_fs_types is populated using blkid.

11 years agobase/init.sh: also mkdir /run/lock
Harald Hoyer [Wed, 9 Oct 2013 06:20:39 +0000 (08:20 +0200)] 
base/init.sh: also mkdir /run/lock

11 years agodmsquash-live: add /dev/mapper/live-base
Brian C. Lane [Tue, 8 Oct 2013 13:13:44 +0000 (15:13 +0200)] 
dmsquash-live: add /dev/mapper/live-base

This is similar to the reason for adding the
/run/initramfs/live-baseloop symlink -- access to the original live
image without overlays.

livemedia-creator does not create a osmin.img, so there is no mountable
device for it to use when rsyncing the live image to the target. It
needs a device that points to the original live image without overlays.

Note that lmc won't be creating osmin.img, since really isn't needed any
longer. Its purpose was to provide a minimal image that could be dd'd to
the target. Now that we use rsync this is no longer necessary.

The included patch adds a /dev/mapper/live-base device that Anaconda can
use whether or not there is an osmin present.

11 years agoDoc: cleanup, extend and split and reuse
Harald Hoyer [Tue, 8 Oct 2013 12:59:47 +0000 (14:59 +0200)] 
Doc: cleanup, extend and split and reuse

11 years agodracut.sh: do not bail out, if kernel modules dir is missing
Harald Hoyer [Tue, 8 Oct 2013 13:03:40 +0000 (15:03 +0200)] 
dracut.sh: do not bail out, if kernel modules dir is missing

and only print a warning message

11 years ago10i18n/parse-i18n.sh: parse rd.vconsole and rd.locale
Harald Hoyer [Tue, 8 Oct 2013 13:02:14 +0000 (15:02 +0200)] 
10i18n/parse-i18n.sh: parse rd.vconsole and rd.locale

and removed systemd part, because parse-i18n.sh is not even installed in
systemd driven initramfs images.

11 years ago*/module-setup.sh: add comments for dracut called functions
Harald Hoyer [Tue, 8 Oct 2013 08:37:56 +0000 (10:37 +0200)] 
*/module-setup.sh: add comments for dracut called functions

11 years agolvm: install thin utils for non-hostonly
Harald Hoyer [Tue, 8 Oct 2013 08:30:00 +0000 (10:30 +0200)] 
lvm: install thin utils for non-hostonly

11 years agoprepare 034 release 034
Harald Hoyer [Tue, 8 Oct 2013 07:55:26 +0000 (09:55 +0200)] 
prepare 034 release

11 years agomkinitrd-dracut.sh: removed trailing space in comment
Harald Hoyer [Mon, 7 Oct 2013 13:18:08 +0000 (15:18 +0200)] 
mkinitrd-dracut.sh: removed trailing space in comment

11 years agobtrfs: use inst_hook to install the timeout hook
Harald Hoyer [Mon, 7 Oct 2013 13:06:50 +0000 (15:06 +0200)] 
btrfs: use inst_hook to install the timeout hook

11 years agorootfs-block: add support for the rootfallback= kernel cmdline option
Harald Hoyer [Mon, 7 Oct 2013 13:06:22 +0000 (15:06 +0200)] 
rootfs-block: add support for the rootfallback= kernel cmdline option

11 years agofcoe: add FCoE UEFI boot device support
Harald Hoyer [Mon, 7 Oct 2013 12:24:36 +0000 (14:24 +0200)] 
fcoe: add FCoE UEFI boot device support

11 years agodracut.spec: remove bcache module
Harald Hoyer [Fri, 4 Oct 2013 14:35:33 +0000 (16:35 +0200)] 
dracut.spec: remove bcache module

11 years agomkinitrd-dracut.sh: do not "--keep" files for --verbose
Harald Hoyer [Fri, 4 Oct 2013 11:57:15 +0000 (13:57 +0200)] 
mkinitrd-dracut.sh: do not "--keep" files for --verbose

11 years agomkinitrd-dracut.sh: Build host images for default_kernel_images and -i/-k paths
Thomas Renninger [Fri, 27 Sep 2013 18:19:00 +0000 (20:19 +0200)] 
mkinitrd-dracut.sh: Build host images for default_kernel_images and -i/-k paths

default_kernel_images and -i/-k paths are new (SuSE) code paths and
would have resulted in usage errors before.

There we want to build host only images for faster building and
smaller images.
Also force creation (overriding) of initrd images in these code paths.

Signed-off-by: Thomas Renninger <trenn@suse.de>
11 years agomkinitrd-dracut.sh: Also allow -d to specify the root_fs and -s dummy
Thomas Renninger [Fri, 27 Sep 2013 18:18:59 +0000 (20:18 +0200)] 
mkinitrd-dracut.sh: Also allow -d to specify the root_fs and -s dummy

-d is the SUSE mkinitrd version option to pass the rootfs.
-s is to enable splash which may not be needed, but some callers rely on it,
not to return an error.

Make this wrapper compatible to it.

Signed-off-by: Thomas Renninger <trenn@suse.de>
11 years agomkinitrd-dracut.sh: Allow mkinitrd call without passing any parameters
Thomas Renninger [Fri, 27 Sep 2013 18:18:58 +0000 (20:18 +0200)] 
mkinitrd-dracut.sh: Allow mkinitrd call without passing any parameters

Before this gave a "usage" error.
Now boot_dir (by default /boot) is scanned for available kernels and sane
initrd default targets get defined and the corresponding initramfs files
are generated.

Signed-off-by: Thomas Renninger <trenn@suse.de>
11 years agomkinitrd-dracut.sh: Implement --quiet|-q option
Thomas Renninger [Fri, 27 Sep 2013 18:18:57 +0000 (20:18 +0200)] 
mkinitrd-dracut.sh: Implement --quiet|-q option

Dracut is rather verbose. This optional parameter is to limit the output
to the essential: For each generated initrd show the kernel, target and
possibly additional options passed to dracut.

Signed-off-by: Thomas Renninger <trenn@suse.de>
11 years agomkinitrd-dracut.sh: Enhance param parsing: Allow multiple arguments per param
Thomas Renninger [Fri, 27 Sep 2013 18:18:56 +0000 (20:18 +0200)] 
mkinitrd-dracut.sh: Enhance param parsing: Allow multiple arguments per param

Currently --with parameter had to be passed as: --with="mod1 mod2".
Now one can pass: --with "mod1 mod2" or even --with mod1 mod2.

Signed-off-by: Thomas Renninger <trenn@suse.de>
11 years agomkinitrd-dracut.sh: Introduce -i -k parameters
Thomas Renninger [Fri, 27 Sep 2013 18:18:55 +0000 (20:18 +0200)] 
mkinitrd-dracut.sh: Introduce -i -k parameters

In SUSE, one can pass a list of kernel files via -k parameter.
For each an initrd is generated as passed via -i parameters.

Make the dracut mkinitrd wrapper compatible to those.
For now only one kernel file and initrd target can be specified.
This will get enhanced with a follow-up patch.

Signed-off-by: Thomas Renninger <trenn@suse.de>
11 years agomdraid/module-setup.sh: fixes for mdadm-3.2.6+
Alexander Tsoy [Sat, 28 Sep 2013 21:31:01 +0000 (01:31 +0400)] 
mdraid/module-setup.sh: fixes for mdadm-3.2.6+

mdadm-3.2.6+:
Incremental assembly rule contains "--offroot" arg. Update
regexp to catch this variant.

mdadm-3.3+:
Rules was splitted into two files: 63-md-raid-arrays.rules
and 64-md-raid-assembly.rules. Install them both and edit
the latter.

11 years agomdraid/module-setup.sh: install configs from /etc/mdadm.conf.d
Alexander Tsoy [Thu, 3 Oct 2013 10:54:42 +0000 (14:54 +0400)] 
mdraid/module-setup.sh: install configs from /etc/mdadm.conf.d

/etc/mdadm.conf.d directory is supported since mdadm-3.3

11 years agodracut.spec: conflict with old bcache-tools
Harald Hoyer [Fri, 4 Oct 2013 11:36:36 +0000 (13:36 +0200)] 
dracut.spec: conflict with old bcache-tools

11 years agodracut-functions.sh:inst_rules() do not install rules in CWD
Harald Hoyer [Fri, 4 Oct 2013 11:32:15 +0000 (13:32 +0200)] 
dracut-functions.sh:inst_rules() do not install rules in CWD

11 years agobcache: removed, it's in the upstream bcache-tools package
Harald Hoyer [Fri, 4 Oct 2013 08:43:02 +0000 (10:43 +0200)] 
bcache: removed, it's in the upstream bcache-tools package

11 years agolvm/mdraid: Fix LVM on MD activation
Peter Rajnoha [Fri, 4 Oct 2013 08:41:24 +0000 (10:41 +0200)] 
lvm/mdraid: Fix LVM on MD activation

The 69-dm-lvm-metad.rules set some udev env. variables that makes it
possible to detect the right time to activate LVM on MD. The MD is very
similar to DM during activation - it's usable only after proper device
activation - the CHANGE event. We need to make a difference between a
CHANGE event that comes from this activation and CHANGE event that is
the outcome of the WATCH udev rule (otherwise we'd end up with LVM
activation done on each CHANGE event - which is wrong).

So we need the udev databse to be persistent during pivot to root fs
even for MD devices.

11 years agodracut-logger.sh: do not log to syslog/kmsg/journal for UID != 0
Harald Hoyer [Wed, 2 Oct 2013 10:48:57 +0000 (12:48 +0200)] 
dracut-logger.sh: do not log to syslog/kmsg/journal for UID != 0

Don't clutter the system log with user actions.

Also check, if systemd-cat works, before using it.

11 years agodracut.sh: bail out early, if destination dir is not writeable
Harald Hoyer [Wed, 2 Oct 2013 10:48:11 +0000 (12:48 +0200)] 
dracut.sh: bail out early, if destination dir is not writeable

11 years agodracut-bash-completion.sh: add --prelink --noprelink
Harald Hoyer [Wed, 2 Oct 2013 10:47:34 +0000 (12:47 +0200)] 
dracut-bash-completion.sh: add --prelink --noprelink

11 years agodracut.conf.5.asc: Add ACPI table override and uncompressed cpio doc
Thomas Renninger [Fri, 27 Sep 2013 18:10:40 +0000 (20:10 +0200)] 
dracut.conf.5.asc: Add ACPI table override and uncompressed cpio doc

Signed-off-by: Thomas Renninger <trenn@suse.de>
11 years agodracut: Implement ACPI table overriding
Thomas Renninger [Fri, 27 Sep 2013 18:10:39 +0000 (20:10 +0200)] 
dracut: Implement ACPI table overriding

An example config file for this feature could be:

/etc/dracut.conf.d/03-acpi-override.conf

with this content:
acpi_override="yes"
acpi_table_dir="/etc/dracut.conf.d/acpi_tables"

Then all files ending with *.aml will be put into the early cpio
(kernel/firmware/acpi) and will be used to replace the BIOS provided tables
if the kernel supports this feature.

Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
11 years agodracut: Do not create early_cpio if no suitable microcode exist in hostonly case
Thomas Renninger [Fri, 27 Sep 2013 18:10:38 +0000 (20:10 +0200)] 
dracut: Do not create early_cpio if no suitable microcode exist in hostonly case

Intel microcodes only exist for very specific family/model/stepping CPUs.
If no microcode gets added, there is no need to create an empty
(only directories) cpio later that gets glued to the initrd.

This also fixes:

*** Constructing GenuineIntel.bin ****
cat: /lib/firmware/intel-ucode/06-3c-03: No such file or directory

in hostonly mode if there is no suitable microcode for the CPU.

Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
11 years agodracut: Generlize microcode early cpio usage
Thomas Renninger [Fri, 27 Sep 2013 18:10:37 +0000 (20:10 +0200)] 
dracut: Generlize microcode early cpio usage

ACPI early table override also may need to place files into an early cpio.
Reflect this in variable and file names.
This change is renaming only and does not introduce any real change.

Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
11 years agoadd /etc/system-fips for dracut-fips subpackage
Harald Hoyer [Wed, 2 Oct 2013 10:36:25 +0000 (12:36 +0200)] 
add /etc/system-fips for dracut-fips subpackage

11 years agoAdd option to turn on/off prelinking
Harald Hoyer [Tue, 17 Sep 2013 17:23:20 +0000 (12:23 -0500)] 
Add option to turn on/off prelinking

--prelink, --noprelink

do_prelink=[yes|no]

11 years agodracut.sh: we don't need to read the modalias files
Harald Hoyer [Fri, 13 Sep 2013 15:51:29 +0000 (17:51 +0200)] 
dracut.sh: we don't need to read the modalias files

udev does only parse the uevent MODALIAS line, so whatever is in the
modalias files would not trigger any module load.

11 years agodracut.sh: also search uevent's for MODALIAS
Harald Hoyer [Fri, 13 Sep 2013 15:34:18 +0000 (17:34 +0200)] 
dracut.sh: also search uevent's for MODALIAS

11 years agoifup: do not dhcp on network interface of secondary stack
WANG Chao [Fri, 13 Sep 2013 14:28:44 +0000 (22:28 +0800)] 
ifup: do not dhcp on network interface of secondary stack

Configure cmdline to:
 ip=br0:dhcp bridge=br0:bond0 bond=bond0:eth0

By default ifup bond0 will run dhcp on bond0, which is wrong. bond0
isn't the top interface. we should really run dhcp on br0.

So if we ifup an network interface on secondary stack, we should not
dhcp. Fix this issue with this patch.