platform/upstream/dracut.git
12 years agobootchart/module-setup.sh: no need for mknod anymore
Harald Hoyer [Fri, 22 Jun 2012 13:23:56 +0000 (15:23 +0200)]
bootchart/module-setup.sh: no need for mknod anymore

12 years agoi18n/module-setup.sh:install_all_kbd(): speedup install
Harald Hoyer [Fri, 22 Jun 2012 13:21:11 +0000 (15:21 +0200)]
i18n/module-setup.sh:install_all_kbd(): speedup install

12 years agosystemd/module-setup.sh: ln with --force
Harald Hoyer [Fri, 22 Jun 2012 13:20:06 +0000 (15:20 +0200)]
systemd/module-setup.sh: ln with --force

12 years agosystemd/module-setup.sh: only create empty machine-id if non existing
Harald Hoyer [Fri, 22 Jun 2012 13:19:32 +0000 (15:19 +0200)]
systemd/module-setup.sh: only create empty machine-id if non existing

12 years agobase/module-setup.sh: use --force for ln
Harald Hoyer [Fri, 22 Jun 2012 13:18:45 +0000 (15:18 +0200)]
base/module-setup.sh: use --force for ln

12 years agofs-lib/fs-lib.sh: removed test mounting of btrfs and xfs
Harald Hoyer [Fri, 22 Jun 2012 13:16:55 +0000 (15:16 +0200)]
fs-lib/fs-lib.sh: removed test mounting of btrfs and xfs

mount/umount check only costs time and we fail later anyway.
mount can take very long on large filesystems. Better fail on the real
mount.

12 years agoprofile.py: do not count negative timestamp differences
Harald Hoyer [Fri, 22 Jun 2012 13:14:27 +0000 (15:14 +0200)]
profile.py: do not count negative timestamp differences

12 years agodracut.sh: speedup "strip"
Harald Hoyer [Fri, 22 Jun 2012 13:13:47 +0000 (15:13 +0200)]
dracut.sh: speedup "strip"

12 years agodracut-functions.sh:find_kernel_modules_by_path() use IFS=:
Harald Hoyer [Fri, 22 Jun 2012 13:10:11 +0000 (15:10 +0200)]
dracut-functions.sh:find_kernel_modules_by_path() use IFS=:

For modules.dep use simpler IFS=: to read the file.

12 years agodracut-functions.sh:inst_decompress() simplify function
Harald Hoyer [Fri, 22 Jun 2012 13:09:45 +0000 (15:09 +0200)]
dracut-functions.sh:inst_decompress() simplify function

12 years agodracut-functions.sh:inst_simple() do inst_symlink for symlinks
Harald Hoyer [Fri, 22 Jun 2012 13:09:07 +0000 (15:09 +0200)]
dracut-functions.sh:inst_simple() do inst_symlink for symlinks

12 years agoAdd qemu kernel modules, if we detect a qemu instance
Harald Hoyer [Fri, 22 Jun 2012 12:50:06 +0000 (14:50 +0200)]
Add qemu kernel modules, if we detect a qemu instance

Regardless of the host-only setting, add all know kernel driver for qemu
instances to support changing the virtual hardware.

12 years agodracut-functions.sh: cp with --reflink=auto and --sparse=auto
Harald Hoyer [Fri, 22 Jun 2012 06:59:22 +0000 (08:59 +0200)]
dracut-functions.sh: cp with --reflink=auto and --sparse=auto

cp will use COW data copy most of the time. So, it's even better than
hardlink, because we don't have to care about hardlinks, when modifying
files in post.

12 years agodracut-functions.sh: mksubdirs(): check for dir existence first
Harald Hoyer [Fri, 22 Jun 2012 06:58:39 +0000 (08:58 +0200)]
dracut-functions.sh: mksubdirs(): check for dir existence first

12 years agodracut-functions.sh: replace strstr()
Harald Hoyer [Fri, 22 Jun 2012 06:57:20 +0000 (08:57 +0200)]
dracut-functions.sh: replace strstr()

the new strstr() is faster, when compared

12 years agosystemd: add ConditionPathExists=/etc/initrd-release to services
Harald Hoyer [Thu, 21 Jun 2012 12:10:41 +0000 (14:10 +0200)]
systemd: add ConditionPathExists=/etc/initrd-release to services

12 years agonetwork: support vlan tagged bonding
Cong Wang [Thu, 21 Jun 2012 03:44:35 +0000 (11:44 +0800)]
network: support vlan tagged bonding

This patch adds support of vlan tagged bonding, for example,
bond0.2. In case of regression, I also tested bond0 and eth0.2,
all work fine.

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 agosystemd/dracut-pre-pivot.sh: copy service files to /run/systemd/system
Harald Hoyer [Thu, 21 Jun 2012 08:50:36 +0000 (10:50 +0200)]
systemd/dracut-pre-pivot.sh: copy service files to /run/systemd/system

and remove the last info, so that the journal is not restarted again.

12 years agosystemd: remove old udev services
Harald Hoyer [Thu, 21 Jun 2012 08:50:01 +0000 (10:50 +0200)]
systemd: remove old udev services

12 years agofixed i18n for systemd and include more config files in host-only
Harald Hoyer [Thu, 21 Jun 2012 07:24:44 +0000 (09:24 +0200)]
fixed i18n for systemd and include more config files in host-only

12 years agosystemd: remove unneeded systemd services
Harald Hoyer [Thu, 21 Jun 2012 01:36:58 +0000 (03:36 +0200)]
systemd: remove unneeded systemd services

12 years agodracut-functions.sh: use "ln -r" instead of shell functions
Harald Hoyer [Wed, 20 Jun 2012 23:57:11 +0000 (01:57 +0200)]
dracut-functions.sh: use "ln -r" instead of shell functions

12 years agodracut.spec: require systemd >= 44-15
Harald Hoyer [Wed, 20 Jun 2012 23:20:11 +0000 (01:20 +0200)]
dracut.spec: require systemd >= 44-15

12 years agodracut.conf.d/fedora.conf.example: make systemd default
Harald Hoyer [Wed, 20 Jun 2012 23:09:02 +0000 (01:09 +0200)]
dracut.conf.d/fedora.conf.example: make systemd default

12 years agobase/dracut-lib.sh: for systemd start emergency.service
Harald Hoyer [Wed, 20 Jun 2012 23:10:13 +0000 (01:10 +0200)]
base/dracut-lib.sh: for systemd start emergency.service

do not spawn the shell, start the emergency.service for systemd

12 years agobase/dracut-lib.sh: change output of info() and warn() for systemd
Harald Hoyer [Wed, 20 Jun 2012 23:09:38 +0000 (01:09 +0200)]
base/dracut-lib.sh: change output of info() and warn() for systemd

12 years agosystemd: fixed I/O of services
Harald Hoyer [Wed, 20 Jun 2012 23:08:29 +0000 (01:08 +0200)]
systemd: fixed I/O of services

12 years agosystemd: fixed ordering of services
Harald Hoyer [Wed, 20 Jun 2012 23:08:03 +0000 (01:08 +0200)]
systemd: fixed ordering of services

12 years agosystemd/dracut-pre-udev.service: fixed description
Harald Hoyer [Wed, 20 Jun 2012 23:07:08 +0000 (01:07 +0200)]
systemd/dracut-pre-udev.service: fixed description

12 years agosystemd/dracut-pre-pivot.sh: remove trailing space
Harald Hoyer [Wed, 20 Jun 2012 23:06:30 +0000 (01:06 +0200)]
systemd/dracut-pre-pivot.sh: remove trailing space

12 years agosystemd/dracut-cmdline: make dracut-cmdline a service
Harald Hoyer [Wed, 20 Jun 2012 23:05:15 +0000 (01:05 +0200)]
systemd/dracut-cmdline: make dracut-cmdline a service

convert dracut-cmdline from hook to service after the journal

12 years agosystemd/dracut-pre-pivot.sh: stop old udev services
Harald Hoyer [Wed, 20 Jun 2012 23:04:15 +0000 (01:04 +0200)]
systemd/dracut-pre-pivot.sh: stop old udev services

12 years agosystemd: do not flock for console
Harald Hoyer [Wed, 20 Jun 2012 23:03:22 +0000 (01:03 +0200)]
systemd: do not flock for console

12 years agosystemd: do not redirect to /dev/console
Harald Hoyer [Wed, 20 Jun 2012 23:02:48 +0000 (01:02 +0200)]
systemd: do not redirect to /dev/console

12 years agosystemd: fix emergency.service and rescue.service
Harald Hoyer [Wed, 20 Jun 2012 23:01:51 +0000 (01:01 +0200)]
systemd: fix emergency.service and rescue.service

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.