platform/upstream/dracut.git
12 years agosystemd/module-setup.sh: add old udev systemd services
Harald Hoyer [Wed, 20 Jun 2012 23:01:07 +0000 (01:01 +0200)]
systemd/module-setup.sh: add old udev systemd services

12 years agosystemd: output all service output to the journal also
Harald Hoyer [Wed, 20 Jun 2012 16:34:35 +0000 (18:34 +0200)]
systemd: output all service output to the journal also

12 years agodracut-shutdown.service: fixed ordering to be before shutdown.target
Harald Hoyer [Wed, 20 Jun 2012 16:29:42 +0000 (18:29 +0200)]
dracut-shutdown.service: fixed ordering to be before shutdown.target

12 years agocheck for arch before installing drivers/s390
Harald Hoyer [Wed, 20 Jun 2012 16:28:35 +0000 (18:28 +0200)]
check for arch before installing drivers/s390

12 years agodisable TEST-16-DMSQUASH for now
Harald Hoyer [Mon, 18 Jun 2012 17:20:39 +0000 (19:20 +0200)]
disable TEST-16-DMSQUASH for now

12 years agoTEST-50-MULTINIC: libnss cleanup
Harald Hoyer [Mon, 18 Jun 2012 17:28:44 +0000 (19:28 +0200)]
TEST-50-MULTINIC: libnss cleanup

12 years agoTEST-20-NFS: libnss cleanup
Harald Hoyer [Mon, 18 Jun 2012 17:23:25 +0000 (19:23 +0200)]
TEST-20-NFS: libnss cleanup

12 years agoTEST-50-MULTINIC: add watchdog
Harald Hoyer [Mon, 18 Jun 2012 17:22:35 +0000 (19:22 +0200)]
TEST-50-MULTINIC: add watchdog

12 years agoTEST-20-NFS: add watchdog
Harald Hoyer [Mon, 18 Jun 2012 17:13:09 +0000 (19:13 +0200)]
TEST-20-NFS: add watchdog

12 years agoTEST-01-BASIC: add watchdog
Harald Hoyer [Mon, 18 Jun 2012 17:20:16 +0000 (19:20 +0200)]
TEST-01-BASIC: add watchdog

12 years agoadd 04watchdog dracut module
Harald Hoyer [Mon, 18 Jun 2012 17:17:22 +0000 (19:17 +0200)]
add 04watchdog dracut module

12 years agoplymouth: fixed inst_libdir_file() call
Harald Hoyer [Mon, 18 Jun 2012 11:45:13 +0000 (13:45 +0200)]
plymouth: fixed inst_libdir_file() call

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

12 years agoiscsi/module-setup.sh: only install s390 driver on s390 arch
Harald Hoyer [Mon, 18 Jun 2012 11:26:55 +0000 (13:26 +0200)]
iscsi/module-setup.sh: only install s390 driver on s390 arch

12 years agoSet some global variables in dracut-functions.sh
Harald Hoyer [Mon, 18 Jun 2012 10:52:39 +0000 (12:52 +0200)]
Set some global variables in dracut-functions.sh

12 years agofixed instmods() return code and set pipefail globally
Harald Hoyer [Mon, 18 Jun 2012 10:51:21 +0000 (12:51 +0200)]
fixed instmods() return code and set pipefail globally

12 years agoresolve conflict between cms network rules and default rules
Harald Hoyer [Tue, 12 Jun 2012 12:40:43 +0000 (14:40 +0200)]
resolve conflict between cms network rules and default rules

12 years agoRevert "network/ifup.sh: do not default to dhcp, for interfaces without ip=..."
Harald Hoyer [Fri, 15 Jun 2012 09:56:05 +0000 (11:56 +0200)]
Revert "network/ifup.sh: do not default to dhcp, for interfaces without ip=..."

This reverts commit ede0532c580fdbace548511b07857fb2e004b299.

12 years agoRevert "network/ifup.sh: default to dhcp for BOOTIF"
Harald Hoyer [Fri, 15 Jun 2012 09:55:59 +0000 (11:55 +0200)]
Revert "network/ifup.sh: default to dhcp for BOOTIF"

This reverts commit bebb12fd0ec3cbb88006e384a9a277391a2f3a37.

12 years agoTEST-50-MULTINIC: install correct nss libs
Harald Hoyer [Fri, 15 Jun 2012 09:12:46 +0000 (11:12 +0200)]
TEST-50-MULTINIC: install correct nss libs

12 years agonfs: extend libnss wildcard
Harald Hoyer [Fri, 15 Jun 2012 09:12:08 +0000 (11:12 +0200)]
nfs: extend libnss wildcard

12 years agodracut.sh: unset some variables
Harald Hoyer [Fri, 15 Jun 2012 09:11:30 +0000 (11:11 +0200)]
dracut.sh: unset some variables

12 years agodracut.sh: output unknown argument
Harald Hoyer [Fri, 15 Jun 2012 09:11:10 +0000 (11:11 +0200)]
dracut.sh: output unknown argument

12 years agodracut-functions.sh: fixup inst_libdir_file() again
Harald Hoyer [Fri, 15 Jun 2012 07:34:00 +0000 (09:34 +0200)]
dracut-functions.sh: fixup  inst_libdir_file() again

12 years agoDebian multiarch support
Thomas Lange [Thu, 14 Jun 2012 15:42:34 +0000 (17:42 +0200)]
Debian multiarch support

Hi Jon,

here's the diff which works for me.  The quotation marks around $@ do
not work for me. Instead of "$@" I must to use $_dir/$@ (or
"$_dir"/$@) but no quotation marks around $@. Could you please review
my patch.

12 years agoadd PARTUUID as root=PARTUUID=<partition uuid> parameter
Harald Hoyer [Thu, 14 Jun 2012 11:04:22 +0000 (13:04 +0200)]
add PARTUUID as root=PARTUUID=<partition uuid> parameter

12 years agoifcfg: fix output for ipv6 static addressing
Will Woods [Mon, 11 Jun 2012 17:46:22 +0000 (13:46 -0400)]
ifcfg: fix output for ipv6 static addressing

IPV6 configuration is pretty different than IPV4; write out the correct
set of values to make static IPV6 addressing work.

12 years agofix ifup for static ipv6
Will Woods [Mon, 11 Jun 2012 17:46:21 +0000 (13:46 -0400)]
fix ifup for static ipv6

"brd +" is not valid for ipv6. This causes the 'ip addr add' command to
fail with the message "Broadcast can be set only for IPv4 addresses".

So: don't use "brd +" for ipv6.

12 years agodracut.sh: mkdir $initdir/lib/dracut
Harald Hoyer [Tue, 12 Jun 2012 15:35:49 +0000 (11:35 -0400)]
dracut.sh: mkdir $initdir/lib/dracut

12 years agonetwork/ifup.sh: default to dhcp for BOOTIF
Harald Hoyer [Mon, 11 Jun 2012 15:11:49 +0000 (17:11 +0200)]
network/ifup.sh: default to dhcp for BOOTIF

12 years agomdraid/md-shutdown.sh: check for presence of mdadm
Harald Hoyer [Fri, 8 Jun 2012 10:42:12 +0000 (12:42 +0200)]
mdraid/md-shutdown.sh: check for presence of mdadm

12 years agodm: check for presence of dmsetup
Harald Hoyer [Fri, 8 Jun 2012 10:41:49 +0000 (12:41 +0200)]
dm: check for presence of dmsetup

12 years agodracut.sh: mkdir of $libdirs at then end
Harald Hoyer [Fri, 8 Jun 2012 08:41:59 +0000 (10:41 +0200)]
dracut.sh: mkdir of $libdirs at then end

12 years agos/Unable to process initqueue/Could not boot/g
Harald Hoyer [Fri, 8 Jun 2012 08:29:35 +0000 (10:29 +0200)]
s/Unable to process initqueue/Could not boot/g

12 years agomdraid/md-shutdown.sh: wait until md devices are clean
Harald Hoyer [Fri, 8 Jun 2012 08:28:31 +0000 (10:28 +0200)]
mdraid/md-shutdown.sh: wait until md devices are clean

12 years agosystemd/dracut-initqueue.sh: remove pre-trigger sourcing
Harald Hoyer [Thu, 7 Jun 2012 09:31:45 +0000 (11:31 +0200)]
systemd/dracut-initqueue.sh: remove pre-trigger sourcing

Thanks ms77 on #dracut!

12 years agonetwork/ifup.sh: do not default to dhcp, for interfaces without ip=...
Harald Hoyer [Tue, 29 May 2012 14:34:58 +0000 (16:34 +0200)]
network/ifup.sh: do not default to dhcp, for interfaces without ip=...

Don't try to be smarter than the admin configuring the machine.
Does also conflict with other methods trying to setup the interfaces,
like cmsifup.sh from the cms module.

12 years agosystemd: strip down the installation of some unused tools
Harald Hoyer [Thu, 7 Jun 2012 08:38:31 +0000 (10:38 +0200)]
systemd: strip down the installation of some unused tools

12 years agomodules are now only handled with /sys/modules and modules.dep
Harald Hoyer [Wed, 6 Jun 2012 16:20:35 +0000 (18:20 +0200)]
modules are now only handled with /sys/modules and modules.dep

No more "find" and /proc/modules checking. We now rely entirely on
depmod and modules.dep

12 years agomake udevdir systemdutildir systemdsystemunitdir global vars
Harald Hoyer [Wed, 6 Jun 2012 13:12:59 +0000 (15:12 +0200)]
make udevdir systemdutildir systemdsystemunitdir global vars

your distribution should ship those settings in
/etc/dracut.conf.d/01-distro.conf

see dracut.conf.d/fedora.conf.example

12 years agoAvoid annonying warnings when pkg-config is not installed.
Juan RP [Wed, 6 Jun 2012 12:19:59 +0000 (14:19 +0200)]
Avoid annonying warnings when pkg-config is not installed.

12 years agokernel-modules/module-setup.sh: include omapdrm in the arm modules to include
Harald Hoyer [Wed, 6 Jun 2012 09:45:30 +0000 (11:45 +0200)]
kernel-modules/module-setup.sh: include omapdrm in the arm modules to include

12 years agodasd_mod: change rd.dasd to dasd_mod kernel parameter
Harald Hoyer [Tue, 5 Jun 2012 18:23:35 +0000 (20:23 +0200)]
dasd_mod: change rd.dasd to dasd_mod kernel parameter

12 years agoget rid of libdir and usrlibdir
Harald Hoyer [Mon, 4 Jun 2012 13:23:15 +0000 (15:23 +0200)]
get rid of libdir and usrlibdir

12 years agoversion 019 019
Harald Hoyer [Mon, 4 Jun 2012 12:24:25 +0000 (14:24 +0200)]
version 019

12 years agoNEWS: dracut-019
Harald Hoyer [Mon, 4 Jun 2012 12:23:54 +0000 (14:23 +0200)]
NEWS: dracut-019

12 years agodracut.sh: precopy some essential device nodes
Harald Hoyer [Mon, 4 Jun 2012 12:00:49 +0000 (14:00 +0200)]
dracut.sh: precopy some essential device nodes

12 years agosystemd/dracut-pre-trigger.sh: fixed rd.udev.{debug|info}
Harald Hoyer [Mon, 4 Jun 2012 11:56:55 +0000 (13:56 +0200)]
systemd/dracut-pre-trigger.sh: fixed rd.udev.{debug|info}

12 years agosystemd/module-setup.sh: package udev in sysinit.target
Harald Hoyer [Mon, 4 Jun 2012 11:12:07 +0000 (13:12 +0200)]
systemd/module-setup.sh: package udev in sysinit.target

12 years agoudev-rules: check for systemd-udevd symlink already present
Harald Hoyer [Mon, 4 Jun 2012 11:11:38 +0000 (13:11 +0200)]
udev-rules: check for systemd-udevd symlink already present

12 years agouse pkg-config to determine the udev directory
Harald Hoyer [Mon, 4 Jun 2012 10:58:42 +0000 (12:58 +0200)]
use pkg-config to determine the udev directory

12 years agosystemd: use pkg-config to determine the systemd directories
Harald Hoyer [Mon, 4 Jun 2012 10:55:32 +0000 (12:55 +0200)]
systemd: use pkg-config to determine the systemd directories

12 years agotest/TEST-16-DMSQUASH: add check for python-imgcreate
Harald Hoyer [Mon, 4 Jun 2012 09:35:31 +0000 (11:35 +0200)]
test/TEST-16-DMSQUASH: add check for python-imgcreate

12 years agotest/test-functions: check with test_check() if test is suitable
Harald Hoyer [Mon, 4 Jun 2012 09:35:02 +0000 (11:35 +0200)]
test/test-functions: check with test_check() if test is suitable

12 years agodracut.sh: do not rely on the presence of lib64, check with ldd
Harald Hoyer [Mon, 4 Jun 2012 09:33:29 +0000 (11:33 +0200)]
dracut.sh: do not rely on the presence of lib64, check with ldd

12 years agoHandle multiple underlying devices of a bridge
Cong Wang [Thu, 31 May 2012 14:07:38 +0000 (22:07 +0800)]
Handle multiple underlying devices of a bridge

A bridge device with only one underlying ethernet device is almost
useless, for sure we want to support a bridge with multiple
underlying devices.

This patch adds the support by extending <ethname> in the original
bridge= cmdline to a comma-separated list of ethernet interfaces.

Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoDon't set an already set attribute (#826357)
Jesse Keating [Fri, 1 Jun 2012 01:41:25 +0000 (18:41 -0700)]
Don't set an already set attribute (#826357)

Depending on how the dasd_mod module was loaded, our device could have
already been marked as online or offline.  We need to make the sysecho
sensitive to this and not fail if the attribute we're trying to set has
already been set.

12 years ago99base/init.sh: kill systemd-udevd instead of udevd
Harald Hoyer [Mon, 4 Jun 2012 07:58:49 +0000 (09:58 +0200)]
99base/init.sh: kill systemd-udevd instead of udevd

12 years agobase/loginit.sh: revert "quiet" patch
Harald Hoyer [Mon, 4 Jun 2012 07:09:09 +0000 (03:09 -0400)]
base/loginit.sh: revert "quiet" patch

12 years agosystemd: mkdir basic.target.wants
Harald Hoyer [Mon, 4 Jun 2012 07:08:24 +0000 (03:08 -0400)]
systemd: mkdir basic.target.wants

12 years agoTODO: update
Harald Hoyer [Mon, 4 Jun 2012 07:07:43 +0000 (03:07 -0400)]
TODO: update

12 years agoadd README.testsuite
Harald Hoyer [Fri, 1 Jun 2012 16:51:47 +0000 (18:51 +0200)]
add README.testsuite

12 years agofix return value of some installkernel() functions
Harald Hoyer [Fri, 1 Jun 2012 15:09:25 +0000 (17:09 +0200)]
fix return value of some installkernel() functions

12 years agoadd filesystem options to fsck_single()
Harald Hoyer [Thu, 31 May 2012 10:57:23 +0000 (12:57 +0200)]
add filesystem options to fsck_single()

if we have e.g. special btrfs options for "/" and "/usr", we want to use
those for the test mount to determine if the filesystem is corrupted.

12 years agocrypt: add rd.luks.allow-discards and honor options in crypttab
Harald Hoyer [Thu, 31 May 2012 09:46:10 +0000 (11:46 +0200)]
crypt: add rd.luks.allow-discards and honor options in crypttab

also fixed the retry loop for rd.luks.key

12 years agodracut-shutdown.service: do not unpack old initramfs on shutdown
Harald Hoyer [Thu, 31 May 2012 07:56:24 +0000 (09:56 +0200)]
dracut-shutdown.service: do not unpack old initramfs on shutdown

Do not unpack the initramfs, if the old initramfs still exists.

12 years agoremoved scsi_wait_scan from standard install
Harald Hoyer [Thu, 31 May 2012 07:14:17 +0000 (09:14 +0200)]
removed scsi_wait_scan from standard install

12 years agodasd_mod/parse-dasd-mod.sh: fixed dasd_mod param generation
Harald Hoyer [Thu, 31 May 2012 07:12:51 +0000 (09:12 +0200)]
dasd_mod/parse-dasd-mod.sh: fixed dasd_mod param generation

12 years agonetwork: do not arping with qeth layer3 interfaces
Harald Hoyer [Tue, 29 May 2012 15:38:18 +0000 (17:38 +0200)]
network: do not arping with qeth layer3 interfaces

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

12 years agourl-lib/url-lib.sh: disable curl progress bar
Harald Hoyer [Tue, 29 May 2012 14:10:46 +0000 (16:10 +0200)]
url-lib/url-lib.sh: disable curl progress bar

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

12 years agoadd anaconda-style option parsing to ip_to_var
Will Woods [Tue, 22 May 2012 22:31:07 +0000 (18:31 -0400)]
add anaconda-style option parsing to ip_to_var

Anaconda used arguments of the form:

  ip=<ip> gateway=<gw> netmask=<nm>

for static IP configuration. So if we get a value for "ip" that's an IP
address, look for gateway= and netmask= and related args to fill in the
ip config vars.

12 years agodo emergency_shell in die() if rd.debug=1
Will Woods [Tue, 22 May 2012 22:16:12 +0000 (18:16 -0400)]
do emergency_shell in die() if rd.debug=1

If I said 'rd.debug=1' I should get to debug the system before it dies,
right?

12 years agodon't wait_for_loginit in emergency_shell()
Will Woods [Tue, 22 May 2012 22:16:11 +0000 (18:16 -0400)]
don't wait_for_loginit in emergency_shell()

wait_for_loginit ends the log; this is unhelpful if you're using
emergency_shell to do debugging.

Just leave loginit running. It doesn't hurt anything.

12 years agodracut-lib.sh: add copytree(), use it where applicable
Will Woods [Tue, 22 May 2012 21:55:00 +0000 (17:55 -0400)]
dracut-lib.sh: add copytree(), use it where applicable

copytree() recursively copies the contents of SRC into DEST.

If DEST doesn't exist it is created; if it exists the contents of SRC
get merged into it (duplicate files are overwritten).

12 years agoUpdate the documentation of ifname= cmdline
Cong Wang [Tue, 29 May 2012 09:00:34 +0000 (17:00 +0800)]
Update the documentation of ifname= cmdline

The documentation about ifname= needs to update.

Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoRemove rd.neednet cmdline
Cong Wang [Tue, 29 May 2012 09:00:35 +0000 (17:00 +0800)]
Remove rd.neednet cmdline

rd.neednet could be removed, as we can check /tmp/net.ifaces.
After this patch, kdump can bring up the NIC without
rd.neednet.

Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoDo not use ifenslave
Cong Wang [Tue, 29 May 2012 09:00:33 +0000 (17:00 +0800)]
Do not use ifenslave

ifenslave is an old tool, and could be dropped,
we can use the /sys interface.

Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoRemove netroot check in cmdline parsing code
Cong Wang [Tue, 29 May 2012 09:00:32 +0000 (17:00 +0800)]
Remove netroot check in cmdline parsing code

Relax the rules for kdump, we don't specify netroot in kdump.

Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoAdd doc for birdge= cmdline
Cong Wang [Tue, 29 May 2012 09:00:31 +0000 (17:00 +0800)]
Add doc for birdge= cmdline

Document bridge= cmdline in dracut.cmdline(7).

Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoAdd doc for bond= cmdline
Cong Wang [Tue, 29 May 2012 09:00:30 +0000 (17:00 +0800)]
Add doc for bond= cmdline

Document bond= cmdline in dracut.cmdline(7).

Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoAdd doc for vlan= cmdline
Cong Wang [Tue, 29 May 2012 09:00:29 +0000 (17:00 +0800)]
Add doc for vlan= cmdline

Document vlan= cmdline in dracut.cmdline(7).

Cc: Dave Young <dyoung@redhat.com>
Cc: Harald Hoyer <harald@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agoAdd vlan support in network module
Cong Wang [Tue, 29 May 2012 09:00:28 +0000 (17:00 +0800)]
Add vlan support in network module

This patch adds basic vlan support in network module.

The cmdline syntax for vlan is:

vlan=<vlanname>:<phydevice>

for an example:

vlan=eth0.2:eth0

or
vlan=vlan2:eth0

See also patch 2/8.

Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
12 years agobase/init.sh: use info() instead of vinfo() for version info
Harald Hoyer [Tue, 29 May 2012 08:18:20 +0000 (10:18 +0200)]
base/init.sh: use info() instead of vinfo() for version info

Thanks to Cong Wang for the hint

12 years agosystemd/module-setup.sh: add journalctl and systemctl
Harald Hoyer [Tue, 29 May 2012 07:17:43 +0000 (09:17 +0200)]
systemd/module-setup.sh: add journalctl and systemctl

12 years agoRelax the rules for kdump, we don't specify netroot in kdump.
Cong Wang [Tue, 29 May 2012 07:17:01 +0000 (09:17 +0200)]
Relax the rules for kdump, we don't specify netroot in kdump.

12 years agodmsquash-live: do not hardcode path to mount(8) in generated hook.
Juan RP [Mon, 28 May 2012 14:17:28 +0000 (16:17 +0200)]
dmsquash-live: do not hardcode path to mount(8) in generated hook.

In some cases (at least in mine) mount(8) is in /usr/bin/mount and
not in /bin/mount as dmsquash-live-root.sh expects. PATH is set to
/usr/bin:/usr/sbin:/sbin:/bin in that script anyway.

12 years agomodules.d/99base/init.sh: check for a valid init in case INIT is a symlink.
Juan RP [Mon, 28 May 2012 14:14:35 +0000 (16:14 +0200)]
modules.d/99base/init.sh: check for a valid init in case INIT is a symlink.

Obviously we have to test if it's executable with the PATH to NEWROOT.

12 years agodrop 10rpmversion module and introduce /etc/initrd-release
Harald Hoyer [Tue, 22 May 2012 12:52:36 +0000 (14:52 +0200)]
drop 10rpmversion module and introduce /etc/initrd-release

12 years agorenamed switch-root.{service,target} -> initrd-switch-root
Harald Hoyer [Tue, 22 May 2012 12:50:19 +0000 (14:50 +0200)]
renamed switch-root.{service,target} -> initrd-switch-root

12 years agoadd dracut-version.sh
Harald Hoyer [Tue, 22 May 2012 12:28:34 +0000 (14:28 +0200)]
add dracut-version.sh

12 years agoifcfg/write-ifcfg.sh: fixed IFS resetting
Harald Hoyer [Tue, 22 May 2012 09:36:41 +0000 (11:36 +0200)]
ifcfg/write-ifcfg.sh: fixed IFS resetting

12 years agoNormalize dasd argument content for dasd.conf
Jesse Keating [Fri, 18 May 2012 21:50:20 +0000 (14:50 -0700)]
Normalize dasd argument content for dasd.conf

Also overwrite any existing files, contents from CMSCONFFILE override
any boot arguments.

12 years agoTranslate dasd arg contents into proper dasd.conf
Jesse Keating [Fri, 18 May 2012 21:06:54 +0000 (14:06 -0700)]
Translate dasd arg contents into proper dasd.conf

This uses a (new) s390utils utility to normalize the range we might get
in a dasd argument and generates a properly formatted output for
dasd.conf.

12 years agoUse the right argument for dasd module options
Jesse Keating [Tue, 15 May 2012 20:42:47 +0000 (13:42 -0700)]
Use the right argument for dasd module options

The legacy argument is DASD=, and the new arguments should be the same
as the arguments for populating dasd.conf.  If multiple arguments are
passed we can stack them by inserting a ',' between them.

12 years agoARM: make sure that we get the storage modules into the initramfs
Dennis Gilmore [Thu, 17 May 2012 06:33:17 +0000 (01:33 -0500)]
ARM: make sure that we get the storage modules into the initramfs

12 years agocheck ifenslave instead of brctl in parse-bond.sh
WANG Cong [Fri, 18 May 2012 05:38:17 +0000 (13:38 +0800)]
check ifenslave instead of brctl in parse-bond.sh

This is obviously wrong, ifenslave instead of brctl is needed for bonding.

Cc: Harald Hoyer <harald@redhat.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
12 years agoadd option --printsize
Dave Young [Mon, 21 May 2012 08:37:06 +0000 (16:37 +0800)]
add option --printsize

Add --printsize for measuring module installed size to initramfs

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agoTEST-01-BASIC: sync after creating the root disk
Harald Hoyer [Wed, 16 May 2012 09:51:26 +0000 (11:51 +0200)]
TEST-01-BASIC: sync after creating the root disk

12 years agodracut:fstab-sys: Wait for devices specified using --mount option
Vivek Goyal [Tue, 15 May 2012 17:36:11 +0000 (13:36 -0400)]
dracut:fstab-sys: Wait for devices specified using --mount option

dracut allows passing --mount option which mounts the specified devices.
But it does not wait for these devices to show up and mounting will fail
if devices do not show up by the time "mount" was called.

I am writing some patches to support kdump on iscsi target and I noticed
that one of the initqueue script was not called as we found the root
device and broke out of main loop.

There are two possible enancements to this patch.

- Introduce a time limited wait (rd.timeout something along the lines of
  rd.retry). That will allow kdump to try to dump to a backup target if
  primary targets fails to come up.

- Wait for UUID= and LABEL= to show up too. Right now kdump converts
  UUID= and LABEL= to respective devices and passes /dev/* to dracut
  --mount option. So I am not introducing the wait for UUID= or LABEL=
 in this patch.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
12 years agocheck install files passed by cmdline
Cong Wang [Tue, 15 May 2012 06:19:57 +0000 (14:19 +0800)]
check install files passed by cmdline

We should not trust cmdline passed by users, always
check the install files passed from cmdline. This restores
the old behaviour which was changed by:

commit c6c6a08850c7e4ee211696895f7ca3864be85052
Author: Harald Hoyer <harald@redhat.com>
Date:   Tue Feb 7 18:26:30 2012 +0100

    add "install_items" to dracut.conf

Reported-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Harald Hoyer <harald@redhat.com>
12 years agocheck kernel module existance
Cong Wang [Tue, 15 May 2012 06:19:56 +0000 (14:19 +0800)]
check kernel module existance

This patch adds check of kernel module existance and
propagate errors to upper callers.

In case of break other callers of instmods(), this patch
adds an option '-c' to it, only when "-c" is specified
we fail, otherwise, errors are ignored.

Reported-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Harald Hoyer <harald@redhat.com>