platform/upstream/dracut.git
12 years ago95ssh-client/module-setup.sh: spell corrections
Harald Hoyer [Wed, 25 Jan 2012 08:59:12 +0000 (09:59 +0100)]
95ssh-client/module-setup.sh: spell corrections

12 years agolet some modules to respect $mount_needs
Cong Wang [Wed, 25 Jan 2012 01:04:17 +0000 (09:04 +0800)]
let some modules to respect $mount_needs

Cc: Harald Hoyer <harald@redhat.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
12 years agonetroot: actually run netroot hooks
Will Woods [Tue, 24 Jan 2012 18:09:34 +0000 (13:09 -0500)]
netroot: actually run netroot hooks

The line "source_all netroot" was trying to source netroot hooks from
/netroot, which doesn't exist, so netroot hooks were never executed.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years ago99base/init: remove tmpfs on /dev
Harald Hoyer [Mon, 23 Jan 2012 15:08:46 +0000 (16:08 +0100)]
99base/init: remove tmpfs on /dev

tmpfs on /dev is not supported anymore and devtmpfs is supported in
kernels for a long time.

12 years ago90crypt/module-setup.sh: prepend "luks-" to hostonly cmdline file
Harald Hoyer [Mon, 23 Jan 2012 12:50:27 +0000 (13:50 +0100)]
90crypt/module-setup.sh: prepend "luks-" to hostonly cmdline file

12 years agodracut-functions: get_maj_min() major and minor was swapped
Harald Hoyer [Mon, 23 Jan 2012 12:50:05 +0000 (13:50 +0100)]
dracut-functions: get_maj_min() major and minor was swapped

12 years agodracut: _get_fs_type() also handle /dev/block/maj:min
Harald Hoyer [Mon, 23 Jan 2012 12:49:39 +0000 (13:49 +0100)]
dracut: _get_fs_type() also handle /dev/block/maj:min

12 years agoiscsi/multipath: also search in drivers/s390/scsi
Harald Hoyer [Mon, 23 Jan 2012 11:35:41 +0000 (12:35 +0100)]
iscsi/multipath: also search in drivers/s390/scsi

12 years agofix rpm build error after adding ssh-client module
Cong Wang [Tue, 10 Jan 2012 03:42:33 +0000 (11:42 +0800)]
fix rpm build error after adding ssh-client module

This patch fixes the following error when building rpm,

      error: Installed (but unpackaged) file(s) found:
       /usr/lib/dracut/modules.d/95ssh-client/module-setup.sh

Based on my kdump tree.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years ago40network: also look in drivers/s390/net for network drivers
Harald Hoyer [Mon, 23 Jan 2012 10:41:44 +0000 (11:41 +0100)]
40network: also look in drivers/s390/net for network drivers

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

12 years ago98usrmount/mount-usr.sh: do not mount /usr read-only
Harald Hoyer [Mon, 23 Jan 2012 10:32:06 +0000 (11:32 +0100)]
98usrmount/mount-usr.sh: do not mount /usr read-only

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

12 years agodracut, dracut.8.xml: added more documentation about "[LIST]"
Harald Hoyer [Mon, 23 Jan 2012 10:26:17 +0000 (11:26 +0100)]
dracut, dracut.8.xml: added more documentation about "[LIST]"

added examples on how to use [LIST] on the shell command line.

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

12 years agoAUTHORS: updated and fixed .mailmap
Harald Hoyer [Mon, 23 Jan 2012 10:06:16 +0000 (11:06 +0100)]
AUTHORS: updated and fixed .mailmap

12 years agonetwork/dhclient-script: set FQDN
Ian Dall [Mon, 23 Jan 2012 09:46:10 +0000 (10:46 +0100)]
network/dhclient-script: set FQDN

When booting with nfsroot, dracut doesn't necessarily set the initial
hostname correctly.

According to dhcp-options(5), the name may or may not be qualified with
the local domain. It goes on to say "it is preferable to use the
domain-name option to specify the domain name".

So dhclient-script needs to be able to handle the cases: a) where
host-name is fully qualified and domain name is also specified; b)
where hostname is fully qualified and the domain is not separately
specified; c) where host-name is "short" and domain-name is also
specified; and d) do its best where host-name is short but domain-name
is not specified.

The dhclient-script in initramfs does not handle case "c", apparently
the preferred situation properly, setting hostname to "short".

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

12 years agoplymouth/kernel: cleanup not needed parts for shutdown
Harald Hoyer [Mon, 23 Jan 2012 09:41:41 +0000 (10:41 +0100)]
plymouth/kernel: cleanup not needed parts for shutdown

remove plymouth and kernel parts from /run/initramfs, which are not
needed at shutdown.

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

12 years agolsinitrd: use xz with --single-stream, if available
Harald Hoyer [Mon, 23 Jan 2012 09:34:03 +0000 (10:34 +0100)]
lsinitrd: use xz with --single-stream, if available

The F16 installation image is two concatenated cpio images:
[xz-compressed dracut initramfs][uncompressed cpio with /squashfs.img]

So to show the contents, use xz with the "--single-stream" option.

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

12 years agodracut: unset GREP_OPTIONS
Harald Hoyer [Mon, 23 Jan 2012 09:10:25 +0000 (10:10 +0100)]
dracut: unset GREP_OPTIONS

GREP_OPTIONS can influence the image creation, if set to user defined
values, so unset it.

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

12 years agolsinitrd: add '-s' option to sort the initrd output by file size
Cong Wang [Tue, 10 Jan 2012 14:45:45 +0000 (22:45 +0800)]
lsinitrd: add '-s' option to sort the initrd output by file size

This is useful to analyse which files consume the space of initrd.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoadd xz compression for kernel modules
James Buren [Sun, 22 Jan 2012 19:02:47 +0000 (13:02 -0600)]
add xz compression for kernel modules

12 years agoplymouth: add xz support for kernel modules
James Buren [Sun, 22 Jan 2012 18:56:24 +0000 (12:56 -0600)]
plymouth: add xz support for kernel modules

This rewrites a portion of the module to support xz, as well as allow
an easier expansion should future compression methods for kernel
modules ever materialize.

12 years ago--ctty: add help line in usage
Dave Young [Mon, 26 Dec 2011 06:42:18 +0000 (14:42 +0800)]
--ctty: add help line in usage

Adding missed help line in usage

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agoAdd ssh client module code
Dave Young [Mon, 26 Dec 2011 06:29:21 +0000 (14:29 +0800)]
Add ssh client module code

Add ssh client module which support ssh key mode and interactive mode.
with --sshkey option you can provide the ssh key to be installed

>why not call it "ssh" module?
ssh-client is better, maybe future there will be ssh-server come in.
In debian these are also two different packages.

Usage:
1. sshkey mode:
transfer your public key to remote machine with ssh-copy-id or do it mannaully
example of options:
./dracut -l -H -a ssh-client --sshkey /root/.ssh/id_rsa i.img
2. interactive mode:
need use --ctty option, ie.:
./dracut -l -H -a ssh-client --ctty i.img

[v2 changes]:
per wangcong: add patch description about module name
add help line in usage()
remove useless comment

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agochange root home dir to /root
Dave Young [Mon, 26 Dec 2011 06:29:18 +0000 (14:29 +0800)]
change root home dir to /root

ssh need to read knownhosts from home directory, so change root home to /root

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agoAdd job control support to emergency shell
Michal Soltys [Mon, 26 Dec 2011 06:29:15 +0000 (14:29 +0800)]
Add job control support to emergency shell

Option --ctty will optionally add setsid binary to dracut's image.

During runtime, if rd.ctty is set and is a character device,
emergency shells will be spawned with job control.

in case no ctty was provided, shell was spawned without caring about
/dev/console. Also, the ctty is more opportunistic. If the image was
generated with --ctty, we will fallback to /dev/tty1 if rc.ctty is
invalid or missing. Otherwise we spawn standard shell on /dev/console

[dyoung@redhat.com: Rebased to usrmove branch]

Signed-off-by: Michal Soltys <soltys@ziu.info>
Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agodeal common part of etc passwd in 99base
Dave Young [Mon, 26 Dec 2011 06:29:11 +0000 (14:29 +0800)]
deal common part of etc passwd in 99base

ssh module will need root user in /etc/passwd, so add root and nobody
to /etc/passwd in 99base instead of nfs module

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agoremove extra semicolons in dracut.8.xml
Cong Wang [Tue, 10 Jan 2012 14:49:03 +0000 (22:49 +0800)]
remove extra semicolons in dracut.8.xml

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoip= server-id should be server-IP
Anton Blanchard [Mon, 26 Dec 2011 22:08:29 +0000 (09:08 +1100)]
ip= server-id should be server-IP

 From looking at the code it seems like server-id should really
be named server-IP.

12 years agoserver-id in ip= is not optional
Anton Blanchard [Mon, 26 Dec 2011 22:08:28 +0000 (09:08 +1100)]
server-id in ip= is not optional

The documentation suggests that server-id is an optional argument
but ip_to_var fails if it is not specified. Fix the documentation.

12 years agoHandle upper case MAC addresses in ifname option
Anton Blanchard [Mon, 26 Dec 2011 22:08:27 +0000 (09:08 +1100)]
Handle upper case MAC addresses in ifname option

While the documentation states that ifname MAC addresses must be
lower case, we silently accept upper case ones and fail later on
when udev doesn't rename the device.

Instead of adding sanity checking on the MAC address just convert
it to lower case and remove the requirement completely.

12 years ago90kernel-modules/module-setup.sh: install modules.order
Harald Hoyer [Fri, 20 Jan 2012 11:06:41 +0000 (12:06 +0100)]
90kernel-modules/module-setup.sh: install modules.order

Also install modules.order and all modules.builtin*

12 years agodmsquash-live: really changed /dev/live-baseloop to /run/initramfs/
Harald Hoyer [Fri, 20 Jan 2012 11:02:15 +0000 (12:02 +0100)]
dmsquash-live: really changed /dev/live-baseloop to /run/initramfs/

Forgot to amend my change to ce32e32f2a8288de15968c22f57fff306fa81753

12 years agomktemp was long obsoleted by coreutils
Peter Robinson [Wed, 11 Jan 2012 10:28:12 +0000 (10:28 +0000)]
mktemp was long obsoleted by coreutils

commit 2e55bb35640c5c2b3b5604e06232cc679559defa
Author: Peter Robinson <pbrobinson@gmail.com>
Date:   Wed Jan 11 10:28:05 2012 +0000

    mktemp was long obsoleted by coreutils

 dracut.spec |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

12 years agotypo fix
Hermann Gausterer [Mon, 16 Jan 2012 16:19:12 +0000 (17:19 +0100)]
typo fix

Signed-off-by: Hermann Gausterer <git-dracut-2012@mrq1.org>
12 years agofstab-sys: mount it in initramfs instead of newroot if mount point is not found
Dave Young [Thu, 12 Jan 2012 08:00:31 +0000 (16:00 +0800)]
fstab-sys: mount it in initramfs instead of newroot if mount point is not found

fstab-sys now also handles device passed by dracut argument "--mount"
The "--mount" mount point is possible not exist in $NEWROOT. Thus mount it
in initramfs if mount point is not exist in real rootfs

12 years agominor cleanups in parsing for dmsquash-live and livenet
Will Woods [Wed, 11 Jan 2012 17:48:28 +0000 (12:48 -0500)]
minor cleanups in parsing for dmsquash-live and livenet

- use wait_for_dev in livenet
- clarify log message and fix missing newline in dmsquash-live

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agointerpret 'off' as false in getargbool
Will Woods [Wed, 11 Jan 2012 17:48:27 +0000 (12:48 -0500)]
interpret 'off' as false in getargbool

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agoCreate a symlink for the live image's base loop device
Brian C. Lane [Tue, 20 Dec 2011 22:22:33 +0000 (14:22 -0800)]
Create a symlink for the live image's base loop device

It is useful to know that loop device that the live image's / is mounted
from. Make a /run/initramfs/live-baseloop symlink that points to it.

Edited-By: harald@redhat.com: changed /dev/live-baseloop
                              to /run/initramfs/live-baseloop

12 years agolvm: pass the correct rd.lvm.lv parameter
Cong Wang [Tue, 20 Dec 2011 06:10:01 +0000 (14:10 +0800)]
lvm: pass the correct rd.lvm.lv parameter

rd.lvm.lv accepts ${DM_VG_NAME}/${DM_LV_NAME}, not ${DM_LV_NAME}.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agonfs: fix regex patterns in check()
Cong Wang [Tue, 20 Dec 2011 06:10:00 +0000 (14:10 +0800)]
nfs: fix regex patterns in check()

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoPass device name instead of major:minor in for_each_host_dev_fs()
Cong Wang [Tue, 20 Dec 2011 06:09:59 +0000 (14:09 +0800)]
Pass device name instead of major:minor in for_each_host_dev_fs()

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoFix get_maj_min() to follow symlink
Cong Wang [Tue, 20 Dec 2011 06:09:58 +0000 (14:09 +0800)]
Fix get_maj_min() to follow symlink

Otherwise get_maj_min /dev/mapper/vg_cr0-lv_home will return 0:0.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoCheck module dependencies of mount points
Cong Wang [Tue, 20 Dec 2011 06:09:57 +0000 (14:09 +0800)]
Check module dependencies of mount points

Like -H, we need to poll every module to check if it is needed
to mount a specific device in '--mount'.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoAllow to add mount points even not in hostonly mode
Cong Wang [Tue, 20 Dec 2011 06:09:56 +0000 (14:09 +0800)]
Allow to add mount points even not in hostonly mode

Don't force --mount only working in hostonly mode, let users decide.
With this patch, people can still combine -H --mount '...' if they
want to use it in hostonly mode.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoTEST-10-RAID: fixed TESTDIR handling
Harald Hoyer [Fri, 13 Jan 2012 10:20:05 +0000 (11:20 +0100)]
TEST-10-RAID: fixed TESTDIR handling

12 years ago98usrmount/mount-usr.sh: Don't pass mount options to fsck
Duane Griffin [Fri, 13 Jan 2012 09:23:45 +0000 (10:23 +0100)]
98usrmount/mount-usr.sh: Don't pass mount options to fsck

12 years agoudev: Attempt to install any programs used by udev rules.
Colin Guthrie [Sat, 17 Dec 2011 00:35:08 +0000 (00:35 +0000)]
udev: Attempt to install any programs used by udev rules.

12 years agoinit: Fix bogus message about invalid root device.
Colin Guthrie [Sat, 31 Dec 2011 13:35:59 +0000 (13:35 +0000)]
init: Fix bogus message about invalid root device.

When the initqueue cannot be processed, it might be about an invalid
root device (in which case a separate message produced via
wait_for_dev() should be displayed anyway), but it could also
be for any other reason (e.g. /dev/resume not existing).

Therefore, it is best to use a more generic error message.

Also a minor tab->space conversion in the near vacinity of
the real change.

12 years agodmsquash: Ensure the 'loop' kernel module is included and loaded.
Colin Guthrie [Sun, 8 Jan 2012 21:32:05 +0000 (21:32 +0000)]
dmsquash: Ensure the 'loop' kernel module is included and loaded.

12 years agoresume: Fix failure when invalid device passed via 'resume='
Colin Guthrie [Sat, 31 Dec 2011 13:30:58 +0000 (13:30 +0000)]
resume: Fix failure when invalid device passed via 'resume='

This commit allows the waiting for a device to be cancelled.
When the resume partition does not exist, it becomes quite hard
to work out what to do (you have to either create the
/dev/resume symlink manually, or remove the 'finished' job
that is waiting for it). Additionally dracut incorrectly
displays a message about not being able to find the root
device, which is bogus and misleading.

This commit should just bail on the whole resume thing
if the device cannot be found and proceed with a normal boot.

12 years agobtrfs: Ensure crc32c module is installed.
Colin Guthrie [Mon, 26 Dec 2011 23:03:34 +0000 (23:03 +0000)]
btrfs: Ensure crc32c module is installed.

As outlined here:
 https://bugs.mageia.org/show_bug.cgi?id=3214
and:
 https://bugs.launchpad.net/ubuntu/+source/linux-linaro-omap/+bug/715835
the btrfs module needs a CRC implementation.

12 years agokernel-modules: Find (and ulitmately dereference) any symlinks in modprobe.d dir.
Colin Guthrie [Fri, 16 Dec 2011 23:11:39 +0000 (23:11 +0000)]
kernel-modules: Find (and ulitmately dereference) any symlinks in modprobe.d dir.

Also only do the top level of files (ignore any subdirs and files within)

12 years agoplymouth: Include kms modules even if they are not currently loaded.
Anssi Hannula [Sat, 3 Dec 2011 11:25:45 +0000 (11:25 +0000)]
plymouth: Include kms modules even if they are not currently loaded.

This should fix initial initrd generation during install.
If the modules are not desired to be used, the nokmsboot kernel
command line should disable them.

12 years agoOnly install files from /etc/ld.so.conf.d/ directory
Colin Guthrie [Wed, 30 Nov 2011 21:48:26 +0000 (21:48 +0000)]
Only install files from /etc/ld.so.conf.d/ directory

When calling inst_simple() it will ignore anything that
is not a file, so harden the check done before the calling.

12 years agoHandle compressed kmods.
Colin Guthrie [Wed, 30 Nov 2011 22:23:54 +0000 (22:23 +0000)]
Handle compressed kmods.

This was orignally from Mandriva patch: dracut-011-plymouth-compressed-kmod.patch

12 years agoFix Unicode keytable.
Colin Guthrie [Wed, 30 Nov 2011 22:21:24 +0000 (22:21 +0000)]
Fix Unicode keytable.

This patch was originally from Mandriva: dracut-013-fix_unicode_keytable.patch

12 years agomkinitrd: Mention the --nocompress option in help output
Colin Guthrie [Wed, 30 Nov 2011 22:16:01 +0000 (22:16 +0000)]
mkinitrd: Mention the --nocompress option in help output

Originally from Mandriva patch: dracut-010-mkinitrd.patch

12 years agoMakefile: dash does not like {} expansion
Harald Hoyer [Thu, 5 Jan 2012 13:48:57 +0000 (14:48 +0100)]
Makefile: dash does not like {} expansion

removed {} expansion for mandir mkdir for users, which have dash as
/bin/sh

12 years agoMakefile: set bindir to ${prefix}/bin rather than sbin
Harald Hoyer [Thu, 5 Jan 2012 13:36:45 +0000 (14:36 +0100)]
Makefile: set bindir to  ${prefix}/bin rather than sbin

12 years agoFix live update script (#769970)
Brian C. Lane [Wed, 4 Jan 2012 17:21:05 +0000 (09:21 -0800)]
Fix live update script (#769970)

pushd and popd are not available in the shell used by dracut.

12 years agomkinitrd-dracut.sh: s/read_args/read_arg/g
Harald Hoyer [Thu, 5 Jan 2012 09:51:00 +0000 (10:51 +0100)]
mkinitrd-dracut.sh: s/read_args/read_arg/g

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

12 years agodracut: add --add-fstab and --mount option
Harald Hoyer [Thu, 15 Dec 2011 13:36:37 +0000 (14:36 +0100)]
dracut: add --add-fstab and --mount option

--add-fstab [FILE]    Add file to the initramfs fstab
--mount "[DEV] [MP] [FSTYPE] [FSOPTS]"
                      Mount device [DEV] on mountpoint [MP] with filesystem
                      [FSTYPE] and options [FSOPTS] in the initramfs

12 years ago99base/dracut-lib.sh: added inst_mount_hook add_mount_point
Harald Hoyer [Thu, 15 Dec 2011 13:37:34 +0000 (14:37 +0100)]
99base/dracut-lib.sh: added inst_mount_hook add_mount_point

inst_mount_hook <mountpoint> <prio> <name> <script>

Install a mount hook with priority <prio>,
which executes <script> as soon as <mountpoint> is mounted.

add_mount_point <dev> <mountpoint> <filesystem> <fsopts>

Mount <dev> on <mountpoint> with <filesystem> and <fsopts>
and call any mount hooks, as soon, as it is mounted

12 years agoTEST-12-RAID-DEG: mkdir /run
Harald Hoyer [Thu, 15 Dec 2011 12:42:16 +0000 (13:42 +0100)]
TEST-12-RAID-DEG: mkdir /run

12 years agodracut.spec: remove unnecessary dependencies
Harald Hoyer [Fri, 9 Dec 2011 09:28:40 +0000 (10:28 +0100)]
dracut.spec: remove unnecessary dependencies

Since the initramfs generation is done in %postrans of the kernel rpm,
we can drop all hard requirements.

Also make some requirements a conflict to express the version
dependency.

12 years ago99base/dracut-lib.sh: killproc, prefix local variables
Harald Hoyer [Fri, 9 Dec 2011 09:12:05 +0000 (10:12 +0100)]
99base/dracut-lib.sh: killproc, prefix local variables

12 years ago95iscsi/iscsiroot: unset used variables before starting
Harald Hoyer [Thu, 8 Dec 2011 14:04:04 +0000 (15:04 +0100)]
95iscsi/iscsiroot: unset used variables before starting

If iscsiroot is called multiple times, then some variables can hold the
values of a previous call, so unset all variables before using them.

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

12 years ago*/module-setup.sh: use host_fs_types host_devs
Harald Hoyer [Thu, 8 Dec 2011 09:43:29 +0000 (10:43 +0100)]
*/module-setup.sh: use host_fs_types host_devs

For the $hostonly case, use $host_fs_types and $host_devs to determine,
if a module has to be included in the initramfs.

12 years agodracut: export host_fs_types host_devs
Harald Hoyer [Thu, 8 Dec 2011 09:25:58 +0000 (10:25 +0100)]
dracut: export host_fs_types host_devs

Determine devices and filesystems to be included in the host-only
initramfs image.

To get a minimal initramfs, which can mount
 /
 /etc
 /usr
 /usr/bin
 /usr/sbin
 /usr/lib
 /usr/lib64
 /boot
we look in fstab for the corresponding devices and determine their and
their slaves' filesystem type and put all that in $host_fs_types
and $host_devs.

12 years agoversion 014 014
Harald Hoyer [Thu, 15 Dec 2011 08:16:35 +0000 (09:16 +0100)]
version 014

12 years agodracut.spec: only apply patches, if there are any
Harald Hoyer [Thu, 15 Dec 2011 07:57:58 +0000 (08:57 +0100)]
dracut.spec: only apply patches, if there are any

12 years agorenamed dracut.kernel.7 to dracut.cmdline.7
Harald Hoyer [Thu, 15 Dec 2011 07:50:48 +0000 (08:50 +0100)]
renamed dracut.kernel.7 to dracut.cmdline.7

12 years ago99fs-lib/fs-lib.sh: handle nfs as nop
Harald Hoyer [Mon, 5 Dec 2011 14:07:13 +0000 (15:07 +0100)]
99fs-lib/fs-lib.sh: handle nfs as nop

handle fstype=nfs for fsck and let it be a nop

12 years ago99fs-lib/fs-lib.sh: accept "UUID=" and "LABEL=" for fsck_single
Harald Hoyer [Fri, 2 Dec 2011 15:47:24 +0000 (16:47 +0100)]
99fs-lib/fs-lib.sh: accept "UUID=" and "LABEL=" for fsck_single

with the reuse of crypt-lib.sh devnames() and putting it in
dracut-lib.sh, fsck_single() can use more generic names from /etc/fstab

12 years ago90mdraid/mdraid-waitclean.sh: add rd.md.waitclean parameter
Harald Hoyer [Fri, 2 Dec 2011 11:21:32 +0000 (12:21 +0100)]
90mdraid/mdraid-waitclean.sh: add rd.md.waitclean parameter

add rd.md.waitclean parameter, which defaults to 0
https://bugzilla.redhat.com/show_bug.cgi?id=759148

12 years agoFix /usr mounting due to variable name typo
Colin Guthrie [Fri, 2 Dec 2011 10:27:11 +0000 (10:27 +0000)]
Fix /usr mounting due to variable name typo

12 years agodracut.spec: move sbindir from /sbin to /usr/bin
Harald Hoyer [Wed, 23 Nov 2011 08:29:50 +0000 (09:29 +0100)]
dracut.spec: move sbindir from /sbin to /usr/bin

https://fedoraproject.org/wiki/Features/UsrMove

12 years agoMakefile, dracut.spec: move dracut to /usr/lib/dracut
Harald Hoyer [Wed, 23 Nov 2011 08:42:10 +0000 (09:42 +0100)]
Makefile, dracut.spec: move dracut to /usr/lib/dracut

Move dracut to /usr/lib/dracut.
We should not have picked /usr/share/dracut. Dracut is no ordinary "data".

12 years agogit2spec.pl: strip path from patches
Harald Hoyer [Thu, 17 Nov 2011 10:01:41 +0000 (11:01 +0100)]
git2spec.pl: strip path from patches

12 years ago90mdraid: wait for md devices to become clean
Harald Hoyer [Thu, 17 Nov 2011 09:14:23 +0000 (10:14 +0100)]
90mdraid: wait for md devices to become clean

After assembling all devices, just wait for the raid devices to become
clean, before booting further.

12 years agoMakefile: Append target files names for man pages.
Amadeusz Żołnowski [Wed, 16 Nov 2011 14:17:35 +0000 (15:17 +0100)]
Makefile: Append target files names for man pages.

Edited-By: harald@redhat.com: removed trailing whitespace
12 years agotest: moved TEST-14-IMSM to old.TEST-14-IMSM
Harald Hoyer [Wed, 16 Nov 2011 13:05:57 +0000 (14:05 +0100)]
test: moved TEST-14-IMSM to old.TEST-14-IMSM

TEST-14-IMSM does not work anymore in qemu instances

12 years agotest: introduce $TESTDIR tmpdir
Harald Hoyer [Wed, 16 Nov 2011 13:04:27 +0000 (14:04 +0100)]
test: introduce $TESTDIR tmpdir

to keep the git source tree clean, test files are now created in a
$TESTDIR created with mktemp.

12 years ago90dmsquash-live: wait for the /dev/mapper/live-rw device
Harald Hoyer [Wed, 16 Nov 2011 13:03:38 +0000 (14:03 +0100)]
90dmsquash-live: wait for the /dev/mapper/live-rw device

wait for the /dev/mapper/live-rw device

12 years agocryptroot-ask.sh: use key file, if specified in crypttab and present
Harald Hoyer [Wed, 16 Nov 2011 10:36:46 +0000 (11:36 +0100)]
cryptroot-ask.sh: use key file, if specified in crypttab and present

if a key file is specified in crypttab and present in the initramfs use
it to open the device.

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

12 years ago90mdraid: remove mdadm_auto.sh completly
Harald Hoyer [Wed, 16 Nov 2011 09:50:21 +0000 (10:50 +0100)]
90mdraid: remove mdadm_auto.sh completly

remove mdadm_auto.sh completly, because "mdadm -As --auto=yes" does not
add new appearing devices.

12 years agodracut: add install_items to dracut.conf
Harald Hoyer [Tue, 15 Nov 2011 16:12:50 +0000 (17:12 +0100)]
dracut: add install_items to dracut.conf

install_items+=" <file>[ <file> ...] "

    Specify additional files to include in the initramfs, separated by
    spaces.

12 years ago40network/ifup: add "brd +" to "ip addr add"
Harald Hoyer [Tue, 15 Nov 2011 10:54:14 +0000 (11:54 +0100)]
40network/ifup: add "brd +" to "ip addr add"

Unlike "ifconfig", the "ip" command does not set a broadcast address
unless explicitly requested.

add "brd +" to make "ip" calculate the broadcast address on the fly

12 years ago40network: check for brctl
Harald Hoyer [Tue, 15 Nov 2011 08:45:19 +0000 (09:45 +0100)]
40network: check for brctl

if a bridge is configured on the kernel command line and brctl is
missing call die()

12 years ago99base/dracut-lib.sh: wait_for_if_up() extend wait time
Harald Hoyer [Tue, 15 Nov 2011 08:43:16 +0000 (09:43 +0100)]
99base/dracut-lib.sh: wait_for_if_up() extend wait time

Some NICs take longer than 2 seconds to ifup. Wait a little bit longer
now (20s).

12 years ago95fcoe: support bnx2fc
Harald Hoyer [Wed, 9 Nov 2011 13:40:56 +0000 (14:40 +0100)]
95fcoe: support bnx2fc

To start bnx2fc, we need to run fipvlan only and not dcbtool.  DCBX is run
automatically in the hardware, but VLAN discovery needs to be started by
fipvlan.

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

12 years agolvm, dm, dmraid: cleanup, which module installs what
Harald Hoyer [Wed, 9 Nov 2011 13:24:59 +0000 (14:24 +0100)]
lvm, dm, dmraid: cleanup, which module installs what

The dm module, which lvm and dmraid depend on, installed dmraid
shared libs. The lvm module installed udev rules, which were
already installed by the dm module.
Cleaned up those issues.

12 years ago02fips-aesni: add fips with aesni-intel
Harald Hoyer [Fri, 23 Sep 2011 12:12:06 +0000 (14:12 +0200)]
02fips-aesni: add fips with aesni-intel

add this dracut module, if you want to start in FIPS mode with
the aesni-intel kernel module

12 years agodracut: create var/log directory in the initramfs
Harald Hoyer [Wed, 9 Nov 2011 13:07:22 +0000 (14:07 +0100)]
dracut: create var/log directory in the initramfs

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

12 years ago95iscsi: add iscsiuio
Harald Hoyer [Wed, 9 Nov 2011 12:58:54 +0000 (13:58 +0100)]
95iscsi: add iscsiuio

install iscsiuio
start iscsiuio
stop iscsiuio before switching root

12 years ago95iscsi/parse-iscsiroot.sh: force load a lot of kernel modules
Harald Hoyer [Wed, 9 Nov 2011 12:52:55 +0000 (13:52 +0100)]
95iscsi/parse-iscsiroot.sh: force load a lot of kernel modules

A lot of iSCSI driver are not autoloaded, so we have to manually
force load them.

12 years ago95iscsi/iscsiroot: use initiator-name from ibft firmware if unset
Harald Hoyer [Wed, 9 Nov 2011 12:48:08 +0000 (13:48 +0100)]
95iscsi/iscsiroot: use initiator-name from ibft firmware if unset

If initiator-name is unset, try to read it from the ibft firmware.

12 years agodracut-lib.sh: add killproc()
Harald Hoyer [Wed, 28 Sep 2011 14:02:59 +0000 (16:02 +0200)]
dracut-lib.sh: add killproc()

12 years ago50plymouth/plymouth-pretrigger.sh: respect primary console setting
Harald Hoyer [Wed, 9 Nov 2011 09:18:58 +0000 (10:18 +0100)]
50plymouth/plymouth-pretrigger.sh: respect primary console setting

The kernel's primary console device is determined by the last "console="
argument on the kernel command line. This setting should be respected by
dracut-generated initial RAM disks.

Steps to Reproduce:
(Easiest using a KVM VM, virt-manager and "virsh console")
1. Boot with a kernel command line ending in
 console=tty0 console=ttyS0,115200
2. Observe both tty0 and ttyS0.

The output of init scripts is sent to ttyS0, as the final "console="
argument determines the primary console device as per
Documentation/serial-console.txt in the kernel sources.

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

12 years ago99base/init: avoid using cp -t
Daniel Drake [Tue, 8 Nov 2011 21:11:40 +0000 (21:11 +0000)]
99base/init: avoid using cp -t

-t is not supported by busybox's cp.

Signed-off-by: Daniel Drake <dsd@laptop.org>
12 years agodracut.spec: remove xen module
Harald Hoyer [Wed, 9 Nov 2011 08:55:16 +0000 (09:55 +0100)]
dracut.spec: remove xen module