platform/upstream/dracut.git
14 years agoThis has to be executable.
Peter Jones [Wed, 25 Nov 2009 16:26:38 +0000 (11:26 -0500)]
This has to be executable.

multipath-scan.sh has to be executable, of course.

14 years agoFix missing shell variables.
Peter Jones [Wed, 25 Nov 2009 16:06:35 +0000 (11:06 -0500)]
Fix missing shell variables.

Somehow copy+paste from one machine to the other removed all the shell
variables from this line.  Oops.

14 years agoBring up multipath devices that are configured in multipath.conf.
Peter Jones [Tue, 24 Nov 2009 19:47:48 +0000 (14:47 -0500)]
Bring up multipath devices that are configured in multipath.conf.

This brings up multipath devices which are configured in multipath.conf
as we find them.

14 years agoMake sure and get all the multipath related modules.
Peter Jones [Tue, 24 Nov 2009 19:46:40 +0000 (14:46 -0500)]
Make sure and get all the multipath related modules.

Install all modules that are any of:
- scsi device handler
- dm log handler
- dm path selector
- dm target

It would be nice if we could tell which log handlers and targets are
multipath related, but we really can't.

14 years agoAdd #!/bin/bash for consistency.
Peter Jones [Tue, 24 Nov 2009 19:45:27 +0000 (14:45 -0500)]
Add #!/bin/bash for consistency.

Most install scripts seem to have it there, may as well make this one
like the rest...

14 years agoUse glob for libdir when installing multipath libraries.
Peter Jones [Tue, 24 Nov 2009 19:43:56 +0000 (14:43 -0500)]
Use glob for libdir when installing multipath libraries.

Use "/lib*/" not "/lib/" so it works when they're in /lib/multipath as
well as when they're in /lib64/multipath

14 years agospecfile update
Harald Hoyer [Mon, 23 Nov 2009 11:28:20 +0000 (12:28 +0100)]
specfile update

14 years ago90dm: install more device mapper kernel modules
Harald Hoyer [Mon, 23 Nov 2009 11:12:56 +0000 (12:12 +0100)]
90dm: install more device mapper kernel modules

14 years agokernel-modules: add firewire-ohci to hardcoded modules list
Harald Hoyer [Mon, 23 Nov 2009 11:10:39 +0000 (12:10 +0100)]
kernel-modules: add firewire-ohci to hardcoded modules list

14 years agofips: search different lib paths
Harald Hoyer [Mon, 23 Nov 2009 11:09:42 +0000 (12:09 +0100)]
fips: search different lib paths

14 years agoMakefile: add WITH_SWITCH_ROOT
Harald Hoyer [Mon, 23 Nov 2009 10:59:58 +0000 (11:59 +0100)]
Makefile: add WITH_SWITCH_ROOT

14 years agodracut: create initramfs-$(kernelversion).img by default
Harald Hoyer [Thu, 19 Nov 2009 14:47:06 +0000 (15:47 +0100)]
dracut: create initramfs-$(kernelversion).img by default

14 years agodracut: check more return codes, check for permissions and use derror
Harald Hoyer [Thu, 19 Nov 2009 14:46:09 +0000 (15:46 +0100)]
dracut: check more return codes, check for permissions and use derror

14 years agodracut.8: fixed formatting for rootfs and mount options
Harald Hoyer [Wed, 18 Nov 2009 09:24:08 +0000 (10:24 +0100)]
dracut.8: fixed formatting for rootfs and mount options

14 years agospecfile update
Harald Hoyer [Tue, 17 Nov 2009 14:00:56 +0000 (15:00 +0100)]
specfile update

14 years agomultipath: install multipath kernel module
Harald Hoyer [Tue, 17 Nov 2009 13:58:51 +0000 (14:58 +0100)]
multipath: install multipath kernel module

14 years agomultipath: install xdr utils
Harald Hoyer [Tue, 17 Nov 2009 13:58:42 +0000 (14:58 +0100)]
multipath: install xdr utils

14 years agoNEWS update
Harald Hoyer [Fri, 13 Nov 2009 09:36:27 +0000 (10:36 +0100)]
NEWS update

14 years agomultipath: install udev rules and helper tools
Harald Hoyer [Fri, 13 Nov 2009 09:27:09 +0000 (10:27 +0100)]
multipath: install udev rules and helper tools

14 years agospecfile update
Harald Hoyer [Fri, 13 Nov 2009 09:26:50 +0000 (10:26 +0100)]
specfile update

14 years agomove dasd initialization script and rules to s390utils
Dan Horák [Thu, 12 Nov 2009 13:44:25 +0000 (14:44 +0100)]
move dasd initialization script and rules to s390utils

The primary source for dasd initialization script and udev rules is
now in s390utils package. The s390utils-base subpackage, that carries
the required files, is always installed on s390/s390x, because it's
part of the Core group in comps.

Signed-off-by: Dan Horák <dan@danny.cz>
14 years agoadd module 90multipath
Harald Hoyer [Thu, 12 Nov 2009 14:12:18 +0000 (15:12 +0100)]
add module 90multipath

14 years agoadd module fips
Harald Hoyer [Thu, 12 Nov 2009 13:58:27 +0000 (14:58 +0100)]
add module fips

14 years agorenamed module 95ccw to 95znet
Harald Hoyer [Thu, 12 Nov 2009 13:58:45 +0000 (14:58 +0100)]
renamed module 95ccw to 95znet

14 years agocrypt: ignore devices in /etc/crypttab (root is not in there)
Harald Hoyer [Thu, 12 Nov 2009 13:56:36 +0000 (14:56 +0100)]
crypt: ignore devices in /etc/crypttab (root is not in there)

14 years agodasd: only install /etc/dasd.conf in hostonly mode
Harald Hoyer [Thu, 12 Nov 2009 13:55:30 +0000 (14:55 +0100)]
dasd: only install /etc/dasd.conf in hostonly mode

14 years agozfcp: only install /etc/zfcp.conf in hostonly mode
Harald Hoyer [Thu, 12 Nov 2009 13:55:04 +0000 (14:55 +0100)]
zfcp: only install /etc/zfcp.conf in hostonly mode

14 years agokernel-modules: add scsi_dh scsi_dh_rdac scsi_dh_emc
Harald Hoyer [Thu, 12 Nov 2009 12:50:12 +0000 (13:50 +0100)]
kernel-modules: add scsi_dh scsi_dh_rdac scsi_dh_emc

14 years agocontrol filesystems included in the generic initramfs
Dan Horák [Tue, 3 Nov 2009 10:50:55 +0000 (11:50 +0100)]
control filesystems included in the generic initramfs

New "filesystems" command line/config file option is added with the ability to
control the list of kernel filesystem modules that are included in the generic
initramfs.

Signed-off-by: Dan Horák <dan@danny.cz>
14 years agodracut.8: add FILES section
Harald Hoyer [Tue, 10 Nov 2009 10:15:22 +0000 (11:15 +0100)]
dracut.8: add FILES section

14 years agodracut.spec: update
Harald Hoyer [Fri, 6 Nov 2009 07:51:50 +0000 (08:51 +0100)]
dracut.spec: update

14 years ago95dasd: fixed rd_DASD argument handling
Harald Hoyer [Wed, 4 Nov 2009 10:48:12 +0000 (11:48 +0100)]
95dasd: fixed rd_DASD argument handling

14 years agodracut.8: add more documentation to rd_LUKS_UUID
Harald Hoyer [Thu, 5 Nov 2009 16:04:10 +0000 (17:04 +0100)]
dracut.8: add more documentation to rd_LUKS_UUID

14 years agocrypt: install /etc/crypttab and honor crypttab entries
Harald Hoyer [Thu, 5 Nov 2009 15:14:27 +0000 (16:14 +0100)]
crypt: install /etc/crypttab and honor crypttab entries

14 years agocrypt: refix rd_LUKS_UUID handling
Harald Hoyer [Thu, 5 Nov 2009 14:57:52 +0000 (15:57 +0100)]
crypt: refix rd_LUKS_UUID handling

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

14 years agodracut-gencmdline: do not use full path for readlink
Harald Hoyer [Thu, 5 Nov 2009 15:24:00 +0000 (16:24 +0100)]
dracut-gencmdline: do not use full path for readlink

14 years agodracut-functions: dinfo() on missing firmware, rather than dwarning()
Harald Hoyer [Thu, 5 Nov 2009 12:35:44 +0000 (13:35 +0100)]
dracut-functions: dinfo() on missing firmware, rather than dwarning()

14 years agoudev-rules: do not run blkid on temporary device mapper devices
Harald Hoyer [Thu, 5 Nov 2009 12:32:47 +0000 (13:32 +0100)]
udev-rules: do not run blkid on temporary device mapper devices

14 years agokernel-modules: install all usb storage modules also
Harald Hoyer [Thu, 5 Nov 2009 12:07:24 +0000 (13:07 +0100)]
kernel-modules: install all usb storage modules also

14 years agoTidy up some comments
Alan Jenkins [Thu, 29 Oct 2009 09:29:58 +0000 (09:29 +0000)]
Tidy up some comments

Fix a few typos.

14 years agodracut-gencmdline: fix regex quoting in findstoragedriver()
Alan Jenkins [Thu, 29 Oct 2009 11:25:53 +0000 (11:25 +0000)]
dracut-gencmdline: fix regex quoting in findstoragedriver()

On my LVM system this changes the relevant output from "rd_NO_LVM" to
"rd_LVM_VG=alan-desktop.Linux"

Note that on my newer system, it now reaches moduledep() and complains.
I don't know enough awk to tell whose fault it is :).

    awk: line 2: function gensub never defined
    awk: line 2: function gensub never defined
    rd_NO_MD rd_NO_LVM rd_NO_LUKS LANG=en_GB.UTF-8 root=/dev/sda2

Both my systems (old ubuntu and debian unstable) agree that bash
regexes should not be quoted:

    $ [[ 'a' =~ a ]] && echo match
    match
    $ [[ 'a' =~ ^a$ ]] && echo match
    match
    $ [[ 'a' =~ '^a$' ]] && echo match
    $

(and yes, it is safe against globbing)

    $ touch 9
    $ echo [0-9]
    9
    $ [[ 1 =~ [0-9] ]] && echo match
    match

14 years agospecfile update
Harald Hoyer [Tue, 3 Nov 2009 16:42:51 +0000 (17:42 +0100)]
specfile update

14 years agoUpdate dracut.8 with new rd_DASD parameter information.
David Cantrell [Mon, 2 Nov 2009 19:14:50 +0000 (09:14 -1000)]
Update dracut.8 with new rd_DASD parameter information.

Rename existing rd_DASD parameter to rd_DASD_MOD.  Document new rd_DASD
parameter handling.

14 years agoSupport new rd_DASD parameter for s390 systems.
David Cantrell [Mon, 2 Nov 2009 19:59:58 +0000 (09:59 -1000)]
Support new rd_DASD parameter for s390 systems.

The new rd_DASD parameter allows dracut to handle multiple rd_DASD
options.  One parameter per DASD.  The syntax is:

    rd_DASD=<device path>[,readonly=X][,erplog=X][,use_diag=X][,failfast=X]

The device path is a CCW device path, such as 0.0.0200.  The optional
parameters are sysfs attributes for the DASD.  The X value can be 0 or
1.  Dracut will write out each of the rd_DASD settings to
/etc/dasd.conf and on bootup, the dasdconf.sh script will parse this
file and bring each DASD online with the specified attribute settings.

14 years agoRename existing 95dasd handling to 95dasd_mod.
David Cantrell [Mon, 2 Nov 2009 19:18:42 +0000 (09:18 -1000)]
Rename existing 95dasd handling to 95dasd_mod.

Rename the existing rd_DASD module handler to rd_DASD_MOD.

14 years agodracut.spec: update
Harald Hoyer [Tue, 27 Oct 2009 15:01:46 +0000 (16:01 +0100)]
dracut.spec: update

14 years agoTEST-14-IMSM/create-root.sh: wait until md0 is ready synced
Harald Hoyer [Tue, 27 Oct 2009 14:11:35 +0000 (15:11 +0100)]
TEST-14-IMSM/create-root.sh: wait until md0 is ready synced

14 years ago90dmraid,90lvm: device mapper upstream rules got renamed
Harald Hoyer [Tue, 27 Oct 2009 09:28:17 +0000 (10:28 +0100)]
90dmraid,90lvm: device mapper upstream rules got renamed

14 years agojoin $dsrc and $dracutbasedir
Harald Hoyer [Tue, 27 Oct 2009 08:28:53 +0000 (09:28 +0100)]
join $dsrc and $dracutbasedir

14 years agospecfile update
Harald Hoyer [Mon, 26 Oct 2009 18:12:27 +0000 (19:12 +0100)]
specfile update

14 years agoAdd dm_mod loader
Philippe Seewer [Fri, 16 Oct 2009 09:00:04 +0000 (11:00 +0200)]
Add dm_mod loader

Some kernel configurations might build base dm support as a module.
Add module dm which ensures that dm_mod is there and loaded.

14 years agotest: Add compatibility for different kernel configs
Philippe Seewer [Fri, 16 Oct 2009 09:00:03 +0000 (11:00 +0200)]
test: Add compatibility for different kernel configs

Some distros, including debian unstable with 2.6.30, still shop
style ide drivers and/or have important filesystems like ext3 as
modules.

This patch ensures that all test cases work on these configurations
by including the necessary modules and adding a simple udev rule
file that provides /dev/sd* symlinks for the case where old style
ide drivers are still in use.

14 years agoAdd old style ide drivers if available
Philippe Seewer [Fri, 16 Oct 2009 09:00:02 +0000 (11:00 +0200)]
Add old style ide drivers if available

Some distros, including debian unstable with 2.6.30, still ship
old style ide drivers. These should be installed as well.

Sadly there are no symbols to use for nm, so a simple =ide needs
to suffice.

14 years agodracut.spec: reverse switch_root logic
Harald Hoyer [Mon, 26 Oct 2009 14:36:23 +0000 (15:36 +0100)]
dracut.spec: reverse switch_root logic

14 years agotest/TEST-20-NFS: kill server if pid file present on run()
Harald Hoyer [Mon, 26 Oct 2009 14:35:42 +0000 (15:35 +0100)]
test/TEST-20-NFS: kill server if pid file present on run()

14 years agodmsquash-live-root requires grep
Warren Togami [Tue, 13 Oct 2009 20:23:56 +0000 (16:23 -0400)]
dmsquash-live-root requires grep

14 years agoRevert to per-device resolv.conf by Seewer's suggestion.
Warren Togami [Tue, 13 Oct 2009 18:19:49 +0000 (14:19 -0400)]
Revert to per-device resolv.conf by Seewer's suggestion.

14 years agoBetter check if writing ifcfg files is necessary.
Warren Togami [Tue, 13 Oct 2009 17:20:07 +0000 (13:20 -0400)]
Better check if writing ifcfg files is necessary.

14 years agotest: add rdinfo
Harald Hoyer [Fri, 9 Oct 2009 11:57:35 +0000 (13:57 +0200)]
test: add rdinfo

14 years agodracut-lib: fixed wait_for_if_up()
Harald Hoyer [Fri, 9 Oct 2009 11:18:59 +0000 (13:18 +0200)]
dracut-lib: fixed wait_for_if_up()

14 years agotest/*/hard-off.sh: do not powerdown on rdshell
Harald Hoyer [Fri, 9 Oct 2009 11:18:05 +0000 (13:18 +0200)]
test/*/hard-off.sh: do not powerdown on rdshell

14 years agorun-qemu: specify PATH
Harald Hoyer [Fri, 9 Oct 2009 11:17:45 +0000 (13:17 +0200)]
run-qemu: specify PATH

14 years agodmraid: only install libdmraid-events-isw.so
Harald Hoyer [Fri, 9 Oct 2009 11:16:02 +0000 (13:16 +0200)]
dmraid: only install libdmraid-events-isw.so

the symlink will trigger install of the real lib file

14 years agodracut: if called with "-l" read only local dracut.conf
Harald Hoyer [Fri, 9 Oct 2009 11:15:32 +0000 (13:15 +0200)]
dracut: if called with "-l" read only local dracut.conf

14 years agodmraid: do not fail if /usr/lib/libdmraid-events-isw.so is not present
Harald Hoyer [Fri, 9 Oct 2009 08:16:08 +0000 (10:16 +0200)]
dmraid: do not fail if /usr/lib/libdmraid-events-isw.so is not present

14 years agoccw: s/layer1/layer2/g
Harald Hoyer [Thu, 8 Oct 2009 16:19:11 +0000 (18:19 +0200)]
ccw: s/layer1/layer2/g

14 years agoadd s390 network support
Harald Hoyer [Thu, 8 Oct 2009 16:10:02 +0000 (18:10 +0200)]
add s390 network support

14 years agodracut.8: correct typo
Harald Hoyer [Thu, 8 Oct 2009 16:09:37 +0000 (18:09 +0200)]
dracut.8: correct typo

14 years agonetwork/parse-bridge: check for bridge parameter not ip
Harald Hoyer [Thu, 8 Oct 2009 16:08:34 +0000 (18:08 +0200)]
network/parse-bridge: check for bridge parameter not ip

14 years agoadd zfcp support for s390
Harald Hoyer [Thu, 8 Oct 2009 12:19:23 +0000 (14:19 +0200)]
add zfcp support for s390

14 years agodasd: rename dasd= to rd_DASD=
Harald Hoyer [Thu, 8 Oct 2009 12:18:36 +0000 (14:18 +0200)]
dasd: rename dasd= to rd_DASD=

14 years agodracut: exit traps with original exitcode
Harald Hoyer [Thu, 8 Oct 2009 12:17:48 +0000 (14:17 +0200)]
dracut: exit traps with original exitcode

14 years agoplymouth: suppress "find" errors
Harald Hoyer [Thu, 8 Oct 2009 12:14:23 +0000 (14:14 +0200)]
plymouth: suppress "find" errors

14 years agobase/init: make link /dev/fd, mount devpts,tmpfs with correct dev parm
Harald Hoyer [Thu, 8 Oct 2009 12:13:08 +0000 (14:13 +0200)]
base/init: make link /dev/fd, mount devpts,tmpfs with correct dev parm

14 years agoFix comment typo
Warren Togami [Wed, 7 Oct 2009 20:23:52 +0000 (16:23 -0400)]
Fix comment typo

14 years agodracut.8: fixed typos
Harald Hoyer [Wed, 7 Oct 2009 14:53:59 +0000 (16:53 +0200)]
dracut.8: fixed typos

14 years agobase/init: kill loginit after one second of waiting
Harald Hoyer [Wed, 7 Oct 2009 12:03:19 +0000 (14:03 +0200)]
base/init: kill loginit after one second of waiting

14 years agodmsquash-live: run dmsquash-live-root after udev settle
Harald Hoyer [Wed, 7 Oct 2009 10:49:52 +0000 (12:49 +0200)]
dmsquash-live: run dmsquash-live-root after udev settle

14 years agodo not use init= arg as first argument
Harald Hoyer [Wed, 7 Oct 2009 10:48:47 +0000 (12:48 +0200)]
do not use init= arg as first argument

14 years agoAUTHORS: generated by git-shortlog
Harald Hoyer [Wed, 7 Oct 2009 08:11:55 +0000 (10:11 +0200)]
AUTHORS: generated by git-shortlog

add AUTHORS target to Makefile

only list main authors in man page

14 years agoadd .mailmap
Harald Hoyer [Wed, 7 Oct 2009 08:03:47 +0000 (10:03 +0200)]
add .mailmap

14 years agotest: run all tests with rdinitdebug by default
Harald Hoyer [Tue, 6 Oct 2009 16:39:40 +0000 (18:39 +0200)]
test: run all tests with rdinitdebug by default

14 years ago99base/initqueue: make operations more atomic
Harald Hoyer [Tue, 6 Oct 2009 16:09:40 +0000 (18:09 +0200)]
99base/initqueue: make operations more atomic

14 years agoTEST-50-MULTINIC/test.sh: add selinux=0
Harald Hoyer [Tue, 6 Oct 2009 16:09:18 +0000 (18:09 +0200)]
TEST-50-MULTINIC/test.sh: add selinux=0

14 years agotest: add "failme" parameter for failing tests
Harald Hoyer [Tue, 6 Oct 2009 16:11:02 +0000 (18:11 +0200)]
test: add "failme" parameter for failing tests

14 years agotest/*/hard-off.sh: poweroff, if failme specified
Harald Hoyer [Tue, 6 Oct 2009 14:37:20 +0000 (16:37 +0200)]
test/*/hard-off.sh: poweroff, if failme specified

14 years agodracut.spec: update changelog and filelists
Harald Hoyer [Tue, 6 Oct 2009 13:24:31 +0000 (15:24 +0200)]
dracut.spec: update changelog and filelists

14 years agoMove write-ifcfg to its own module
Philippe Seewer [Thu, 17 Sep 2009 15:16:48 +0000 (17:16 +0200)]
Move write-ifcfg to its own module

ifcfg config style is redhat specific, this should be in its own
module.

14 years agoAdd multinic test suite
Philippe Seewer [Thu, 17 Sep 2009 15:16:47 +0000 (17:16 +0200)]
Add multinic test suite

This is a start a test suite for the multinic support of dracut

14 years agoAdd DAD to dhclient-script
Philippe Seewer [Thu, 17 Sep 2009 15:16:46 +0000 (17:16 +0200)]
Add DAD to dhclient-script

The manpage for dhclient-script says:

Before actually configuring the address, dhclient-script should
somehow ARP for it and exit with a nonzero status if it receives a
reply.

By using arping in dracut this is very easy, since arping has a
specific option to do just that.

14 years agoAdd simple STP timeout handler
Philippe Seewer [Thu, 17 Sep 2009 15:16:45 +0000 (17:16 +0200)]
Add simple STP timeout handler

This patch adds STP timeout error handling with arping. It's rather
simple since it only cares about the primary interface and blindly
assumes that if no gateway is available the root server is on the
same subnet.

14 years agoGet rid of hostname utility
Philippe Seewer [Thu, 17 Sep 2009 15:16:44 +0000 (17:16 +0200)]
Get rid of hostname utility

dracut doesn't really need a utility to set the hostname. It only
saves a few ks of space, but every bit is good.

14 years agoBe a bit more optimistic when setting mtus
Seewer Philippe [Tue, 6 Oct 2009 13:09:34 +0000 (15:09 +0200)]
Be a bit more optimistic when setting mtus

The usual approach to setting mtus is to set the interface down,
set the mtu then set the interface back up again. Modern hardware
and/or drivers may support setting this on the fly, so we try
this and fall back to the old behaviour it it doesn't work.

In addition this patch only allows mtus greater than 576, this is
taken from debian/ubuntu dhclient-script.

14 years agonetwork: wait for interfaces to come up, before proceeding
Harald Hoyer [Tue, 6 Oct 2009 13:07:52 +0000 (15:07 +0200)]
network: wait for interfaces to come up, before proceeding

14 years agobase: add missing loginit
Harald Hoyer [Tue, 6 Oct 2009 12:43:53 +0000 (14:43 +0200)]
base: add missing loginit

14 years agodracut.8: removed switch_root relicts and changed URL
Michal Schmidt [Tue, 6 Oct 2009 08:30:43 +0000 (10:30 +0200)]
dracut.8: removed switch_root relicts and changed URL

14 years agoupdated NEWS
Harald Hoyer [Thu, 1 Oct 2009 17:59:43 +0000 (19:59 +0200)]
updated NEWS

14 years agodracut-gencmdline: fixed rd_NO_LUKS case
Harald Hoyer [Thu, 1 Oct 2009 17:52:48 +0000 (19:52 +0200)]
dracut-gencmdline: fixed rd_NO_LUKS case

14 years agofixed UUID= and LABEL= handling
Harald Hoyer [Thu, 1 Oct 2009 17:28:55 +0000 (19:28 +0200)]
fixed UUID= and LABEL= handling

14 years agoupdated NEWS
Harald Hoyer [Thu, 1 Oct 2009 16:57:23 +0000 (18:57 +0200)]
updated NEWS