]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
13 years agodracut: construct PATH with resolved symlinks
Harald Hoyer [Tue, 7 Feb 2012 16:11:58 +0000 (17:11 +0100)] 
dracut: construct PATH with resolved symlinks

13 years ago95ssh-client/module-setup.sh: add executable bit
Harald Hoyer [Tue, 7 Feb 2012 11:18:52 +0000 (12:18 +0100)] 
95ssh-client/module-setup.sh: add executable bit

13 years agoauto setup network without netroot
Dave Young [Thu, 2 Feb 2012 07:59:52 +0000 (15:59 +0800)] 
auto setup network without netroot

Current dracut network only will be setup when netroot is used. But there are
some cases we need network even without netroot. For example kdump will need
copy vmcore to remote machine via scp or nfs mount. OTOH, if we use dracut as
a recovery system the network is helpful even root is not a network device.

This implementation is based on the manually bring up method. Here add a kernel
cmdline argument rd.neednet. If rd.neednet is set dracut will bring up network
with ifup $INTERFACE -m. If netroot is used we still keep original behavior.

Signed-off-by: Dave Young <dyoung@redhat.com>
13 years agodo not check dev node exist for fstab-sys mounting
Dave Young [Thu, 2 Feb 2012 08:00:11 +0000 (16:00 +0800)] 
do not check dev node exist for fstab-sys mounting

in case nfs mounting do not check if $_dev exist

Signed-off-by: Dave Young <dyoung@redhat.com>
13 years agosplit nfs rpc daemons startup script
Dave Young [Thu, 2 Feb 2012 08:00:07 +0000 (16:00 +0800)] 
split nfs rpc daemons startup script

fstab-sys will mount nonroot nfs as well, so we need to split the necessary
code from nfsroot to start rpc daemon as hook script.

Signed-off-by: Dave Young <dyoung@redhat.com>
13 years agosource dracut-lib.sh in nfs cleanup script
Dave Young [Thu, 2 Feb 2012 08:00:04 +0000 (16:00 +0800)] 
source dracut-lib.sh in nfs cleanup script

nfsroot-cleanup.sh need source dracut-lib.sh for function incol2

Signed-off-by: Dave Young <dyoung@redhat.com>
13 years agoadd nobody group for rpc.idmapd
Dave Young [Thu, 2 Feb 2012 07:59:59 +0000 (15:59 +0800)] 
add nobody group for rpc.idmapd

Add nobody group due to rpc.idmapd will fail to startup without nobody group

Signed-off-by: Dave Young <dyoung@redhat.com>
13 years agofix fstab-sys module check
Dave Young [Thu, 2 Feb 2012 07:59:56 +0000 (15:59 +0800)] 
fix fstab-sys module check

If /etc/fstab.sys does not exist installing fstab-sys module will fail.
Fix this by checking use_fstab and fstab_lines as well

Signed-off-by: Dave Young <dyoung@redhat.com>
13 years agoallow ifup bring up network manually even without netroot
Dave Young [Thu, 2 Feb 2012 07:59:49 +0000 (15:59 +0800)] 
allow ifup bring up network manually even without netroot

For kdump we need scp vmcore to remote machine, the nic to be used is
not limited to netroot one. we need a feature for manually bringing up
 network interface. Also it is useful for emergency shell with
ssh-client for recovery or test purpose

I implement this by adding one argument to ifup script, user can use
`/sbin/ifup eth0 -m` to bring up eth0, note ifup will regard it a
manual operation for the nic specified in 1st argument if there's
the 2nd argument.

If same nic is used for netroot the 2nd argument will be ignored,
in this case we will leave netroot bring up it automatically to
avoid side effect. And in this case hooks such as kdump will need to
execute after netroot mounted.

`ifup eth0 -m` will create /tmp/net.eth0.manualup stamp file,
later dhclient-script can check this and pass $2 to netroot,
then netroot script will bring eth0 up

Thanks for comments and suggestions from David Dillow.

Signed-off-by: Dave Young <dyoung@redhat.com>
13 years agobtrfs: fix two bugs in module-setup.sh
Cong Wang [Mon, 30 Jan 2012 09:58:55 +0000 (17:58 +0800)] 
btrfs: fix two bugs in module-setup.sh

First, $host_fs_types is an array.
Second, use strstr to match btrfs type.

Cc: Harald Hoyer <harald@redhat.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
13 years ago90crypt/crypt-cleanup.sh: send unneeded output to /dev/null
Harald Hoyer [Tue, 7 Feb 2012 10:23:42 +0000 (11:23 +0100)] 
90crypt/crypt-cleanup.sh: send unneeded output to /dev/null

13 years agomore cleanup in pre-pivot
Harald Hoyer [Tue, 7 Feb 2012 09:32:35 +0000 (10:32 +0100)] 
more cleanup in pre-pivot

13 years ago30convertfs/convertfs.sh: move /var/run and /var/lock fix to the start
Harald Hoyer [Tue, 7 Feb 2012 09:24:10 +0000 (10:24 +0100)] 
30convertfs/convertfs.sh: move /var/run and /var/lock fix to the start

Even, if the system is already converted, we want to fix /var/run and
/var/lock.

13 years agobtrfs_finished.sh: fix udevadm query
Harald Hoyer [Tue, 7 Feb 2012 09:22:51 +0000 (10:22 +0100)] 
btrfs_finished.sh: fix udevadm query

13 years agokernel-modules: add hid-logitech-dj to hardcoded hid devices
Harald Hoyer [Fri, 3 Feb 2012 11:03:36 +0000 (12:03 +0100)] 
kernel-modules: add hid-logitech-dj to hardcoded hid devices

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

13 years agodracut.spec: s/usrmove/convertfs
Harald Hoyer [Fri, 3 Feb 2012 10:56:15 +0000 (11:56 +0100)] 
dracut.spec: s/usrmove/convertfs

13 years ago30convertfs/convertfs.sh: fix check for /var/run and /var/lock
Harald Hoyer [Thu, 2 Feb 2012 18:18:48 +0000 (19:18 +0100)] 
30convertfs/convertfs.sh: fix check for /var/run and /var/lock

13 years agorenamed usrmove to convertfs
Harald Hoyer [Thu, 2 Feb 2012 17:50:26 +0000 (18:50 +0100)] 
renamed usrmove to convertfs

13 years agodracut-functions: install nosegneg libs additionally to standard ones
Harald Hoyer [Thu, 2 Feb 2012 17:25:49 +0000 (18:25 +0100)] 
dracut-functions: install nosegneg libs additionally to standard ones

13 years ago30usrmove/usrmove-convert.sh: do not force selinux autorelabel
Harald Hoyer [Mon, 30 Jan 2012 13:06:39 +0000 (14:06 +0100)] 
30usrmove/usrmove-convert.sh: do not force selinux autorelabel

13 years agofix kernel modules search for s390
Harald Hoyer [Thu, 26 Jan 2012 17:08:46 +0000 (18:08 +0100)] 
fix kernel modules search for s390

forgot last ; in {}

13 years agofix kernel modules search for s390
Harald Hoyer [Thu, 26 Jan 2012 16:30:06 +0000 (17:30 +0100)] 
fix kernel modules search for s390

find_kernel_modules_by_path only takes one parameter

fixes c254ac796fe52d19ad47df99055cd58fee5e517e
and 4fcd5409e09e693349e991bd2a78303114a735f5

13 years agodracut.spec: create compat symlink, instead of %ghost
Harald Hoyer [Thu, 26 Jan 2012 15:39:09 +0000 (16:39 +0100)] 
dracut.spec: create compat symlink, instead of %ghost

13 years ago30usrmove/usrmove-convert.sh: rename duplicate libraries
Harald Hoyer [Thu, 26 Jan 2012 14:37:50 +0000 (15:37 +0100)] 
30usrmove/usrmove-convert.sh: rename duplicate libraries

ldconfig does not ignore the duplicate leftover libs with a .usrmove~
suffix, so we rename ".so" to "_so".

13 years agousrmove: install missing binaries and "set -x" only for rd.debug
Harald Hoyer [Thu, 26 Jan 2012 12:55:50 +0000 (13:55 +0100)] 
usrmove: install missing binaries and "set -x" only for rd.debug

13 years agodracut.spec: add compat symlinks to /sbin
Harald Hoyer [Thu, 26 Jan 2012 11:41:03 +0000 (12:41 +0100)] 
dracut.spec: add compat symlinks to /sbin

13 years agoadd usrmove module
Harald Hoyer [Thu, 26 Jan 2012 10:33:51 +0000 (11:33 +0100)] 
add usrmove module

13 years ago95ssh-client/module-setup.sh: do not install ssh-client by default
Harald Hoyer [Wed, 25 Jan 2012 09:02:29 +0000 (10:02 +0100)] 
95ssh-client/module-setup.sh: do not install ssh-client by default

Do not install ssh-client by default and report the missing ctty in the
install section.

13 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

13 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>
13 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>
13 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.

13 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

13 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

13 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

13 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

13 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>
13 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

13 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

13 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

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

13 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

13 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

13 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

13 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

13 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>
13 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

13 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.

13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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.

13 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.

13 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.

13 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*

13 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

13 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(-)

13 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>
13 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

13 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>
13 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>
13 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

13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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

13 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

13 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.

13 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.

13 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.

13 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.

13 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.

13 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)

13 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.

13 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.

13 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

13 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

13 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

13 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

13 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

13 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.

13 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

13 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

13 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

13 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

13 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.

13 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

13 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

13 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.

13 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.

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

13 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

13 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

13 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