platform/upstream/dracut.git
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>
12 years ago90kernel-modules/module-setup.sh: install xhci-hcd
Olivier Blin [Thu, 10 May 2012 20:58:22 +0000 (22:58 +0200)]
90kernel-modules/module-setup.sh: install xhci-hcd

to allow booting and using kbd devices from USB 3.0

12 years agoMakefile: install dracut service files from systemd dracut module
Harald Hoyer [Wed, 16 May 2012 09:28:42 +0000 (11:28 +0200)]
Makefile: install dracut service files from systemd dracut module

12 years agosystemd: store switch-root.conf in /run/initramfs
Harald Hoyer [Wed, 16 May 2012 09:24:42 +0000 (11:24 +0200)]
systemd: store switch-root.conf in /run/initramfs

Store switch-root.conf in /run/initramfs/switch-root.conf, so that the
service does not fail in ExecPost after switching to the real root.

12 years agosystemd/switch-root.service: do not require shutdown and isolate to default
Harald Hoyer [Wed, 16 May 2012 09:22:28 +0000 (11:22 +0200)]
systemd/switch-root.service: do not require shutdown and isolate to default

do not require shutdown.target and final.target

After switch-root isolate to the default target. This will load the
default target in the real root after systemd deserializes.

12 years agosystemd/switch-root.target: run target before switch-root.service
Harald Hoyer [Wed, 16 May 2012 09:21:33 +0000 (11:21 +0200)]
systemd/switch-root.target: run target before switch-root.service

12 years agosystemd/dracut-pre-pivot.sh: s/udevd.service/systemd-udev.service/
Harald Hoyer [Wed, 16 May 2012 09:20:59 +0000 (11:20 +0200)]
systemd/dracut-pre-pivot.sh: s/udevd.service/systemd-udev.service/

12 years agobase/module-setup.sh: link /proc/self/mounts to $initdir/etc/mtab
Harald Hoyer [Tue, 15 May 2012 17:03:50 +0000 (19:03 +0200)]
base/module-setup.sh: link /proc/self/mounts to $initdir/etc/mtab

12 years agosystemd: adapt to new switch-root mechanism
Harald Hoyer [Tue, 15 May 2012 16:57:29 +0000 (18:57 +0200)]
systemd: adapt to new switch-root mechanism

12 years agoifcfg/write-ifcfg.sh: add s390 specific configuration options
Harald Hoyer [Thu, 10 May 2012 12:31:05 +0000 (14:31 +0200)]
ifcfg/write-ifcfg.sh: add s390 specific configuration options

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

12 years agoMakefile: call git2spec.pl with LANG=C
Harald Hoyer [Thu, 10 May 2012 12:30:31 +0000 (14:30 +0200)]
Makefile: call git2spec.pl with LANG=C

12 years agoFail to boot if mediacheck fails (#817419)
Brian C. Lane [Wed, 9 May 2012 18:15:03 +0000 (11:15 -0700)]
Fail to boot if mediacheck fails (#817419)

The return value of checkisomd5 was being ignored.

12 years agodracut.spec: add 98systemd module
Harald Hoyer [Wed, 9 May 2012 13:13:28 +0000 (15:13 +0200)]
dracut.spec: add 98systemd module

12 years agoifcfg/write-ifcfg.sh: use PREFIX for prefix netmask form
Harald Hoyer [Wed, 9 May 2012 12:58:52 +0000 (14:58 +0200)]
ifcfg/write-ifcfg.sh: use PREFIX for prefix netmask form

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

12 years agoadd systemd module
Harald Hoyer [Wed, 9 May 2012 09:47:30 +0000 (11:47 +0200)]
add systemd module

12 years agorootfs-block/block-genrules.sh: install systemd mount unit
Harald Hoyer [Wed, 9 May 2012 09:07:46 +0000 (11:07 +0200)]
rootfs-block/block-genrules.sh: install systemd mount unit

12 years agodracut.sh: install var/run and var/lock
Harald Hoyer [Wed, 9 May 2012 11:13:19 +0000 (13:13 +0200)]
dracut.sh: install var/run and var/lock

12 years agobase/dracut-lib.sh: export UDEVVERSION
Harald Hoyer [Wed, 9 May 2012 09:44:23 +0000 (11:44 +0200)]
base/dracut-lib.sh: export UDEVVERSION

12 years agobase/init.sh: set DRACUT_QUIET only in dracut-lib.sh
Harald Hoyer [Wed, 9 May 2012 09:42:39 +0000 (11:42 +0200)]
base/init.sh: set DRACUT_QUIET only in dracut-lib.sh

12 years agoplymouth/plymouth-pretrigger.sh: get consoledev from /sys/class/tty/console/active
Harald Hoyer [Wed, 9 May 2012 09:05:12 +0000 (11:05 +0200)]
plymouth/plymouth-pretrigger.sh: get consoledev from /sys/class/tty/console/active

12 years agotest/TEST-01-BASIC/test.sh: fix cleanup of overlay dir
Harald Hoyer [Mon, 7 May 2012 14:32:28 +0000 (16:32 +0200)]
test/TEST-01-BASIC/test.sh: fix cleanup of overlay dir

12 years agodracut.spec: require "file"
Harald Hoyer [Mon, 7 May 2012 14:28:44 +0000 (16:28 +0200)]
dracut.spec: require "file"

12 years agoplymouth/plymouth-pretrigger.sh: check for tty dev existence
Harald Hoyer [Mon, 7 May 2012 14:28:16 +0000 (16:28 +0200)]
plymouth/plymouth-pretrigger.sh: check for tty dev existence

12 years agoremoved old udev "vol_id"
Harald Hoyer [Mon, 7 May 2012 14:27:48 +0000 (16:27 +0200)]
removed old udev "vol_id"

12 years agoTODO: update
Harald Hoyer [Fri, 4 May 2012 09:32:48 +0000 (11:32 +0200)]
TODO: update

12 years agoifcfg: fix resolv.conf
Will Woods [Tue, 1 May 2012 18:08:34 +0000 (14:08 -0400)]
ifcfg: fix resolv.conf

/etc/net.*.resolv.conf is not a useful filename; copy it to resolv.conf

12 years agofix _getcmdline arg-duplicating bug with /etc/cmdline*
Will Woods [Tue, 1 May 2012 18:08:33 +0000 (14:08 -0400)]
fix _getcmdline arg-duplicating bug with /etc/cmdline*

If you unset CMDLINE to make _getcmdline re-read /etc/cmdline and
/etc/cmdline.d/*, CMDLINE_ETC and CMDLINE_ETC_D would keep their
contents.

This is a serious problem if you have (e.g.) "ip=eth0:dhcp" in
/etc/cmdline.d/net.conf, because getargs ip= will return
"ip=eth0:dhcp ip=eth0:dhcp" and then parse-ip-opts.sh will die() because
you have two configurations for eth0.

12 years agoTEST-15-BTRFSRAID: add one more partition to the btrfs raid10
Harald Hoyer [Wed, 25 Apr 2012 12:23:12 +0000 (14:23 +0200)]
TEST-15-BTRFSRAID: add one more partition to the btrfs raid10

12 years agoudev-rules/module-setup.sh: fixed udevd location
Harald Hoyer [Wed, 25 Apr 2012 10:22:15 +0000 (12:22 +0200)]
udev-rules/module-setup.sh: fixed udevd location

12 years agomultipath/module-setup.sh: fix host-only/mount checks
Harald Hoyer [Wed, 25 Apr 2012 09:23:49 +0000 (11:23 +0200)]
multipath/module-setup.sh: fix host-only/mount checks

12 years agoiscsi/module-setup.sh: fix host-only/mount checks
Harald Hoyer [Wed, 25 Apr 2012 09:23:10 +0000 (11:23 +0200)]
iscsi/module-setup.sh: fix host-only/mount checks

12 years agoifcfg: write DNS1=... for nameserver= args (RHBZ#815369)
Harald Hoyer [Tue, 24 Apr 2012 11:08:57 +0000 (13:08 +0200)]
ifcfg: write DNS1=... for nameserver= args (RHBZ#815369)

If you're using a static network config, you'll want to keep your
nameservers around when NM starts. Write DNS1 (and DNS2, DNS3, etc..)
into the ifcfg file.

Thanks to Mark Hamzy <hamzy@us.ibm.com>
and Will Woods <wwoods@redhat.com> for the patch.

12 years agonetwork: fix ifup and netroot calling
Harald Hoyer [Mon, 23 Apr 2012 09:31:59 +0000 (11:31 +0200)]
network: fix ifup and netroot calling

12 years agomerge "cleanup" and "pre-pivot-cleanup" hooks
Harald Hoyer [Mon, 23 Apr 2012 09:31:32 +0000 (11:31 +0200)]
merge "cleanup" and "pre-pivot-cleanup" hooks

12 years agobase/dracut-lib.sh: add arguments for source_hook() and source_all()
Harald Hoyer [Mon, 23 Apr 2012 09:30:08 +0000 (11:30 +0200)]
base/dracut-lib.sh: add arguments for source_hook() and source_all()

12 years agobase: add export_n() function
Harald Hoyer [Mon, 23 Apr 2012 09:28:59 +0000 (11:28 +0200)]
base: add export_n() function

resembles export -n for dash

12 years agobase: add debug_on() and debug_off() functions
Harald Hoyer [Mon, 23 Apr 2012 09:28:10 +0000 (11:28 +0200)]
base: add debug_on() and debug_off() functions

12 years agourl-lib: don't use --progress-bar if TERM=dumb (RHBZ#814713)
Will Woods [Fri, 20 Apr 2012 20:20:25 +0000 (16:20 -0400)]
url-lib: don't use --progress-bar if TERM=dumb (RHBZ#814713)

Basically, s390 is the only place I've ever seen TERM=dumb, and it's too
dumb to handle '\r', so --progress-bar produces waaaaay too much output.

The normal progress meter only prints something once per second, so
that's reasonable on terminals where '\r' doesn't work.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=814713

12 years agourl-lib: don't add existing handlers multiple times
Will Woods [Fri, 20 Apr 2012 20:20:24 +0000 (16:20 -0400)]
url-lib: don't add existing handlers multiple times

Every time url-lib gets imported we end up making the list of handlers
longer with redundant entries. That's silly - we shouldn't add items
that already exist.

Note that this means you'll have to manipulate the handler list yourself
if you want to change the position/priority of existing handlers.

12 years agonetwork/parse-ip-opts.sh: remove check for netroot
Harald Hoyer [Thu, 19 Apr 2012 14:41:04 +0000 (16:41 +0200)]
network/parse-ip-opts.sh: remove check for netroot

with anaconda and all other kind of stuff, we might want network, even
for root not on the network

12 years agomove cleanup scripts to pre-pivot-cleanup hook
Dave Young [Thu, 19 Apr 2012 04:01:43 +0000 (12:01 +0800)]
move cleanup scripts to pre-pivot-cleanup hook

below cleanup scripts is moved:
40network: kill-dhclient.sh
90crypt: crypt-cleanup.sh
90multipath: multipathd-stop.sh
95iscsi: cleanup-iscsi.sh
95nfs: nfsroot-cleanup.sh

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agoadd pre-pivot-cleanup hook
Dave Young [Thu, 19 Apr 2012 04:01:36 +0000 (12:01 +0800)]
add pre-pivot-cleanup hook

Sometimes some hook script will need to be before the cleanup hook scripts
For example dhclient killing, nfs cleanup, etc. must not happen before kdump
because it will use their fuctionalities.

So here introduce a new hook pre-pivot-cleanup, all cleanup scripts will go there.
that means pre-pivot hook is splited to two hooks pre-pivot and pre-pivot-cleanup

Signed-off-by: Dave Young <dyoung@redhat.com>
12 years agonetwork/module-setup.sh: include all kernel/drivers/net/phy drivers
Harald Hoyer [Wed, 18 Apr 2012 11:49:48 +0000 (13:49 +0200)]
network/module-setup.sh: include all kernel/drivers/net/phy drivers

12 years agoMakefile: do not install systemd service in reboot
Harald Hoyer [Wed, 18 Apr 2012 11:14:55 +0000 (13:14 +0200)]
Makefile: do not install systemd service in reboot

shutdown is enough. It is pulled in on reboot.

12 years ago99shutdown/shutdown.sh: export PATH
Harald Hoyer [Wed, 18 Apr 2012 11:08:12 +0000 (13:08 +0200)]
99shutdown/shutdown.sh: export PATH

12 years agobase/init.sh: mount tmpfs with strictatime
Harald Hoyer [Wed, 18 Apr 2012 10:44:00 +0000 (12:44 +0200)]
base/init.sh: mount tmpfs with strictatime

12 years agoudevd moved to /lib/systemd/systemd-udevd
Harald Hoyer [Wed, 18 Apr 2012 10:42:39 +0000 (12:42 +0200)]
udevd moved to /lib/systemd/systemd-udevd

12 years agoman: Fix --add-fstab option in man page
Colin Guthrie [Sat, 14 Apr 2012 17:14:29 +0000 (18:14 +0100)]
man: Fix --add-fstab option in man page

12 years agoDo not run plymouth hook if the binary is missing.
Colin Guthrie [Sat, 14 Apr 2012 15:03:34 +0000 (16:03 +0100)]
Do not run plymouth hook if the binary is missing.

There is a remove-boot-splash script in Mageia that can
strip plymouth from an initrd. Make this script a noop
if that has happened.

12 years agodracut.spec: do not include IMA and selinux modules with systemd
Harald Hoyer [Tue, 17 Apr 2012 10:12:56 +0000 (12:12 +0200)]
dracut.spec: do not include IMA and selinux modules with systemd

12 years agovirtfs root filesystem support
Lennert Buytenhek [Sun, 15 Apr 2012 00:40:17 +0000 (02:40 +0200)]
virtfs root filesystem support

Qemu/KVM provides virtfs, a paravirtualised filesystem that is
implemented by running the Plan 9 folder sharing protocol over
virtio.

Make booting with root=virtfs:foobar use the virtfs filesystem
with mount tag 'foobar' as root filesystem, to allow booting
virtual machines off virtfs.

Note that this only handles 9p over virtio (i.e. virtfs), and
doesn't attempt to handle mounting 9p filesystems over TCP/IP,
for example.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
12 years agodracut.cmdline.7.asc: document "resume=" option
Harald Hoyer [Tue, 17 Apr 2012 10:06:51 +0000 (12:06 +0200)]
dracut.cmdline.7.asc: document "resume=" option

12 years agolsinitrd: support symlinks
Nikoli [Tue, 17 Apr 2012 09:31:27 +0000 (11:31 +0200)]
lsinitrd: support symlinks

12 years agoudev-rules: remove 01-ignore.rules
Harald Hoyer [Mon, 16 Apr 2012 12:50:35 +0000 (14:50 +0200)]
udev-rules: remove 01-ignore.rules

12 years agolvm: disable lvmetad
Peter Rajnoha [Tue, 10 Apr 2012 08:40:53 +0000 (04:40 -0400)]
lvm: disable lvmetad

Currently dracut uses lvm.conf as found in the system and modifies only
global/locking_type setting. As there's a new feature introduced - the lvmetad
daemon, dracut should disable its use as well by setting "global/use_lvmetad=0"
(patch attached).

Otherwise, there's a warning message issued:

dracut: WARNING: Failed to connect to lvmetad: No such file or directory.
Falling back to internal scanning.

@@ -, +, @@
 modules.d/90lvm/lvm_scan.sh     |    2 ++
 modules.d/90lvm/module-setup.sh |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

12 years agodracut.sh: log installed modules to $initdir/lib/dracut/modules.txt
Harald Hoyer [Mon, 16 Apr 2012 11:10:22 +0000 (13:10 +0200)]
dracut.sh: log installed modules to $initdir/lib/dracut/modules.txt

12 years agoDebian multiarch support
Jon Ander Hernandez [Tue, 10 Apr 2012 13:14:38 +0000 (15:14 +0200)]
Debian multiarch support

Another solution could be searching in directories found at
/etc/ld.so.conf.d/*.conf or adding a new parameter. Here is a patch
which adds a new --libdirs parameter, and also a new inst_libdir_file
function which will try to expand metacharacters on each lib
directory:

    inst_libdir_file "libdevmapper-event-lvm*.so"

12 years agorootfs-block: avoid remount when options don't change
Daniel Drake [Wed, 11 Apr 2012 22:00:43 +0000 (23:00 +0100)]
rootfs-block: avoid remount when options don't change

Mounting, unmounting and then mounting a disk partition takes some
time.

On embedded systems such as OLPC XO where we disable fsck and fstab
reading, the root options are not going to change throughout the
mount_root() function, so remounting is time consuming and without
change.

Detect and optimize for this case so that the filesystem is only
mounted once.

12 years agoshutdown: use emergency_shell from dracut-lib
Will Woods [Thu, 5 Apr 2012 17:01:39 +0000 (13:01 -0400)]
shutdown: use emergency_shell from dracut-lib

12 years agoMake splitsep work as documented with less vars than fields
Will Woods [Thu, 5 Apr 2012 17:01:38 +0000 (13:01 -0400)]
Make splitsep work as documented with less vars than fields

According to its comment in dracut-lib.sh:

    splitsep ":" "one:all:the:rest" one two

should set two="all:the:rest". But there's no check to see if the
current field is the last field, so it just gets "all".

12 years agonetwork: add save_netinfo, fix problems with nfs->NM takeover
Will Woods [Thu, 5 Apr 2012 17:01:37 +0000 (13:01 -0400)]
network: add save_netinfo, fix problems with nfs->NM takeover

For NetworkManager to properly take over a NFS-root system, we need to
have the interface name(s) in /tmp/net.ifaces and save the dhclient
lease. This lets the ifcfg module do its magic.

save_netinfo should properly write out /tmp/net.ifaces when needed, and
copies the dhclient files into place.

12 years agorun setup_net at start of initqueue/online hook
Will Woods [Thu, 5 Apr 2012 17:01:36 +0000 (13:01 -0400)]
run setup_net at start of initqueue/online hook

This makes sure the network is active and ready to use during the
initqueue/online hook.

It also makes it so you can run setup_net repeatedly without causing
error messages.

12 years agodracut-lib: add str_ends, to go along with str_starts
Will Woods [Thu, 5 Apr 2012 17:01:35 +0000 (13:01 -0400)]
dracut-lib: add str_ends, to go along with str_starts

12 years agoMakefile: version 018 018
Harald Hoyer [Tue, 3 Apr 2012 07:30:45 +0000 (09:30 +0200)]
Makefile: version 018

12 years agoNEWS: update
Harald Hoyer [Tue, 3 Apr 2012 07:21:25 +0000 (09:21 +0200)]
NEWS: update

12 years agodo not use dracut shutdown, if something failed while unpacking
Harald Hoyer [Thu, 5 Apr 2012 11:49:31 +0000 (13:49 +0200)]
do not use dracut shutdown, if something failed while unpacking

also require "xzcat"

12 years agoMakefile: fix syncheck
Harald Hoyer [Wed, 4 Apr 2012 13:51:10 +0000 (15:51 +0200)]
Makefile: fix syncheck

skip dash syntax check, if bash found in shebang

12 years agoadd s390 cms setup
Harald Hoyer [Tue, 3 Apr 2012 16:53:30 +0000 (18:53 +0200)]
add s390 cms setup

12 years agoadd mtu and macaddr to ip=
Harald Hoyer [Wed, 4 Apr 2012 12:47:29 +0000 (14:47 +0200)]
add mtu and macaddr to ip=

12 years ago95nfs/nfs-lib.sh: add server-ip to nfs server search
Harald Hoyer [Wed, 4 Apr 2012 11:25:38 +0000 (13:25 +0200)]
95nfs/nfs-lib.sh: add server-ip to nfs server search

12 years agobase/mount-hook.sh: add forgotten file
Harald Hoyer [Tue, 3 Apr 2012 15:30:11 +0000 (17:30 +0200)]
base/mount-hook.sh: add forgotten file

12 years agodracut-lib.sh: emergency_shell() test for setsit --ctty option
Harald Hoyer [Tue, 3 Apr 2012 07:29:06 +0000 (09:29 +0200)]
dracut-lib.sh: emergency_shell() test for setsit --ctty option

12 years agoiscsi: renamed rd.iscsi_param to rd.iscsi.param
Harald Hoyer [Tue, 3 Apr 2012 07:24:59 +0000 (09:24 +0200)]
iscsi: renamed rd.iscsi_param to rd.iscsi.param

12 years agolsinitrd: handle LZMA file type
Harald Hoyer [Mon, 2 Apr 2012 09:03:53 +0000 (11:03 +0200)]
lsinitrd: handle LZMA file type

12 years agoTEST-20-NFS: get shell in test root for rd.shell
Harald Hoyer [Mon, 2 Apr 2012 07:03:25 +0000 (09:03 +0200)]
TEST-20-NFS: get shell in test root for rd.shell

12 years agofips: fixed aes_generic module typo
Harald Hoyer [Mon, 2 Apr 2012 07:01:49 +0000 (09:01 +0200)]
fips: fixed aes_generic module typo