]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
12 years agofs-lib: add ability to choose fsck tools
Michal Soltys [Fri, 7 Oct 2011 20:23:51 +0000 (22:23 +0200)] 
fs-lib: add ability to choose fsck tools

in dracut.conf:

fscks="<tools>"
nofscks="yes"

and similary on command line:

--fscks [LIST] (in addition to conf's, if defined there)
--nofscks

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years agodracut.8: add missing lvmconf info
Michal Soltys [Fri, 7 Oct 2011 20:23:50 +0000 (22:23 +0200)] 
dracut.8: add missing lvmconf info

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years agoconvert_abs_rel() fixups
Michal Soltys [Fri, 7 Oct 2011 20:23:49 +0000 (22:23 +0200)] 
convert_abs_rel() fixups

- IFS was not preserved, and modified value could leak to outside functions

- the '.' relative path should be returned for arguments such as /x/y/z
  /x/y - but not for $1 == $2 ones

- $1 == $2 is self-looping link, so it returns final component of its
  name

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years agodracut: check mktemp return value
Dave Young [Mon, 10 Oct 2011 09:41:14 +0000 (11:41 +0200)] 
dracut: check mktemp return value

in slackware the default mktemp is not from coreutils.
A simply make in test directory mangled my rootfs due
to initdir is blank

Also mktemp could failed with other reason like ENOSPC or EPERM

12 years agoupdate the documentation of '--[no]prefix'
WANG Cong [Fri, 7 Oct 2011 07:44:10 +0000 (15:44 +0800)] 
update the documentation of '--[no]prefix'

In

commit fd786adcf515d9d3ee77eb29fa4c6b60020c7209
Author: Harald Hoyer <harald@redhat.com>
Date:   Wed Apr 20 16:47:40 2011 +0200

    dracut: make prefix configurable

Harald changed the meaning of --prefix/--noprefix, but
forgot to update their documentation. This patch
fixes that.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
12 years ago95udev-rules/module-setup.sh: also search in /lib/udev and /usr/lib/udev
Harald Hoyer [Thu, 6 Oct 2011 08:25:08 +0000 (10:25 +0200)] 
95udev-rules/module-setup.sh: also search in /lib/udev and /usr/lib/udev

12 years ago90mdraid/module-setup.sh: fixed sed arguments
Harald Hoyer [Tue, 4 Oct 2011 11:30:35 +0000 (13:30 +0200)] 
90mdraid/module-setup.sh: fixed sed arguments

12 years ago90mdraid/mdraid_start.sh: fix path to md sysfs
Harald Hoyer [Tue, 4 Oct 2011 11:06:33 +0000 (13:06 +0200)] 
90mdraid/mdraid_start.sh: fix path to md sysfs

12 years agoorder mdadm and lvm timeout operations
Harald Hoyer [Tue, 4 Oct 2011 11:03:45 +0000 (13:03 +0200)] 
order mdadm and lvm timeout operations

12 years agodracut [PATCH]es: parallelize block_module filter and net_module_filter
John Reiser [Fri, 23 Sep 2011 16:17:13 +0000 (09:17 -0700)] 
dracut [PATCH]es: parallelize block_module filter and net_module_filter

Filtering modules requires enough work that instmods() in the
next pipeline stage was rarely busy.  Parallelize the two
filters which do the most work.  Also fix a filename-vs-contents
mistake in net_module_filter.

--
John Reiser, jreiser@BitWagon.com

>From f4533a2ceca52c443ddebec01eeaa35d51c39c1b Mon Sep 17 00:00:00 2001
From: John Reiser <jreiser@BitWagon.com>
Date: Tue, 13 Sep 2011 17:41:43 -0700
Subject: [PATCH 1/3] Parallelize block_module_filter

12 years agodracut [PATCH] Parameter expansion occurs before command evaluation.
John Reiser [Fri, 23 Sep 2011 15:02:23 +0000 (08:02 -0700)] 
dracut [PATCH] Parameter expansion occurs before command evaluation.

Bash shell expands all ${parameter} before evaluating a command.
For multiple declarations and assignments within the same 'local' command,
then new variables or new values that appear towards the left
do not affect parameter expansion towards the right.

--
John Reiser, jreiser@BitWagon.com

>From 507ad6f66fc66f868a9e5fdd3806e012c4022baa Mon Sep 17 00:00:00 2001
From: John Reiser <jreiser@BitWagon.com>
Date: Fri, 23 Sep 2011 07:37:43 -0700
Subject: [PATCH] Parameter expansion occurs before command evaluation.

${parameter} on the right is expanded before evaluating "local var=value"
on the left.

12 years ago90mdraid: adjust /dev/md loops
Michal Soltys [Thu, 22 Sep 2011 15:16:39 +0000 (17:16 +0200)] 
90mdraid: adjust /dev/md loops

Include '_' to also handle old partitionable arrays (pre-2.6.28).

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years ago90mdraid: more thorough 64-md-raid.rules edit
Michal Soltys [Thu, 22 Sep 2011 15:23:21 +0000 (17:23 +0200)] 
90mdraid: more thorough 64-md-raid.rules edit

Catch more variations of incremental assembly.

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years ago90mdraid: check precisely for supported contaiers
Michal Soltys [Thu, 22 Sep 2011 15:09:56 +0000 (17:09 +0200)] 
90mdraid: check precisely for supported contaiers

ID_FS_TYPE can be much more than just ddf/imsm/linux raid member, so
do the proper checks.

This reverts certain changes from:
cf5891424ef026eede69606a918dadf5560095fd

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years agodracut-functions: inst_rules() add missing ""
Harald Hoyer [Thu, 22 Sep 2011 14:14:38 +0000 (16:14 +0200)] 
dracut-functions: inst_rules() add missing ""

12 years ago99fs-lib: export FSTAB_FILE before fsck call
Michal Soltys [Mon, 5 Sep 2011 23:22:15 +0000 (01:22 +0200)] 
99fs-lib: export FSTAB_FILE before fsck call

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years agodracut: create /dev besides /proc, /sys and so
Amadeusz Żołnowski [Sun, 4 Sep 2011 14:38:35 +0000 (16:38 +0200)] 
dracut: create /dev besides /proc, /sys and so

How it worked without it?  The issue only manifests itself with
initramfs integrated into kernel.

12 years agodracut-logger: bail out early, if we don't have to log anything
Harald Hoyer [Thu, 22 Sep 2011 13:49:25 +0000 (15:49 +0200)] 
dracut-logger: bail out early, if we don't have to log anything

12 years agostr_replace() fix
Michal Soltys [Thu, 15 Sep 2011 06:45:57 +0000 (08:45 +0200)] 
str_replace() fix

Whitespace removal in:

out="${out}${chop# }$r"

will damage certain strings, for example the following call:

str_replace ' aax aaxaa' x y

would return 'aayaayaa' instead of ' aay aayaa'.

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years agodracut-functions: inst_rules() do not check std dirs for abs path
Harald Hoyer [Thu, 22 Sep 2011 13:43:34 +0000 (15:43 +0200)] 
dracut-functions: inst_rules() do not check std dirs for abs path

if an absolute path is given, we should not check the standard udev rule
directories.

12 years ago99fs-lib/fs-lib.sh: fsck btrfs via mounting like xfs
Harald Hoyer [Thu, 22 Sep 2011 13:12:14 +0000 (15:12 +0200)] 
99fs-lib/fs-lib.sh: fsck btrfs via mounting like xfs

btrfsck is only for manual repairing your filesystem

12 years agoTEST-40-NBD: relaxed check on ext3 filesystem options
Harald Hoyer [Thu, 22 Sep 2011 10:56:31 +0000 (12:56 +0200)] 
TEST-40-NBD: relaxed check on ext3 filesystem options

onerror=continue does not seem to be displayed for new kernels

12 years ago90mdraid: fix/adjust 65-md* rules and related scripts
Michal Soltys [Mon, 5 Sep 2011 22:17:28 +0000 (00:17 +0200)] 
90mdraid: fix/adjust 65-md* rules and related scripts

Reworked the flow of the rules file a bit, removed redundant tests, also
should be easier to follow. It's much shorter now as well, a bit more
similar to 90lvm script - both revolve around same concepts after all.

There's no reason to treat conf-assembled arrays differently from
incremental ones. Once we hit timeout in init's udev loop, we can use
common script (mdraid_start.sh) to try force inactive arrays
into degraded mode.

md-finished.sh was kind-of out of place - it didn't really wait for any
particular device(s) to show up, just watched if onetime mdadm scripts
are still in place. Furthermore, after moving mdraid_start to --timeout
initqueue, it didn't really have too much to watch at all, besides
mdadm_auto (and that served no purpose, as we do wait for concrete
devices).

Either way, with stock 64-md fixes, current version of 65-md*.rules does
the following:

- limits assembly to certain uuids, if specified
- watch for no ddf/imsm
- if mdadm.conf => setup onetime -As script, without forced --run option
- if !mdadm.conf => incrementally assemble
- for both cases, setup timeout script, run-forcing arrays as a last resort

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years ago90(md|dm)raid: recognize ddf container
Michal Soltys [Mon, 5 Sep 2011 22:17:24 +0000 (00:17 +0200)] 
90(md|dm)raid: recognize ddf container

This patch adds ddf support, consistently with imsm/isw options.

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years ago90mdraid: fix/adjust force-run script
Michal Soltys [Mon, 5 Sep 2011 22:17:27 +0000 (00:17 +0200)] 
90mdraid: fix/adjust force-run script

1) mdadm -As --auto=yes --run 2>&1 | vinfo (removed)

Currently such auto assembly will not complete or force-run partially
assembled arrays. It might assemble "concurrent" separate array and
force-run it, if possible (though the chances of suddenly showing
missing components in this scenario - a script run after udev timeout -
are pretty thin). See [1] for details. Also see #3 below.

2) mdadm -Is --run 2>&1 (removed)

This will only force-run native arrays - arrays in containers will not
be affected. See [1] for details. Also see #3 below.

3) mdadm -R run loop (implicitly handles #1 & #2)

This loop does everywthing that #1 & #2 are expected to do. Thus, the
above invocations are simply redundant and this is the most safe and
flexible option.

Also, it shouldn't be necessary to go under md/ directory, as those are
just symlinks to /dev/md[0-9]*.

Certain checks were changed to strict ones (array state, degraded state)
instead of relying on env tricks.

'cat' was added explicitly to installed programs (it has been used
implicitly in shutdown script either way)

4) mdmon bug

See [1] for details as well. In short - force-run arrays in containers
will not have mdmon started, so we do that manually.

5) stop/run queue magic

Also removed. mdadm -R will only cause change events to the array
itself, and they should not be an issue.

[1] http://article.gmane.org/gmane.linux.raid/35133

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years ago90mdraid: fix/adjust mdraid-cleanup
Michal Soltys [Mon, 5 Sep 2011 22:17:26 +0000 (00:17 +0200)] 
90mdraid: fix/adjust mdraid-cleanup

Stop both arrays (first pass) and containers (second pass).
Loop only over /dev/md[0-9]*
Call cleanup script only once, make sure it's after crypt cleanup.

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years ago90mdraid: containers are not runnable
Michal Soltys [Mon, 5 Sep 2011 22:17:25 +0000 (00:17 +0200)] 
90mdraid: containers are not runnable

Remove whole "start a container logic".

Containers once assembled, always remain in 'inactive' state.
Any attempt to run a container with mdadm -IR is a no-op, and any
attempt with just mdadm -R ends with an error.

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years ago90mdraid: adjust stock mdadm udev rules
Michal Soltys [Mon, 5 Sep 2011 22:17:23 +0000 (00:17 +0200)] 
90mdraid: adjust stock mdadm udev rules

Currently shipped mdadm rules incrementally assemble all imsm and native
raids, and do so unconditionally. This causes few issues:

- fine-grained controls in 65-md* are shadowed - for example,
  mdadm.conf's presence tests or uuid checks
- 90dmraid might also conflict with 90mdraid, if user prefers the former
  to handle containers
- possibly other subtle issues

This patch adjusts the behaviour.

Signed-off-by: Michal Soltys <soltys@ziu.info>
12 years agomount securityfs in a seperate dracut module
Harald Hoyer [Tue, 20 Sep 2011 09:16:53 +0000 (11:16 +0200)] 
mount securityfs in a seperate dracut module

12 years agomount securityfs in a seperate dracut module
Harald Hoyer [Tue, 20 Sep 2011 09:16:53 +0000 (11:16 +0200)] 
mount securityfs in a seperate dracut module

12 years ago99base/init: mount securityfs with source "securityfs" instead of dest
Harald Hoyer [Tue, 20 Sep 2011 08:10:29 +0000 (10:10 +0200)] 
99base/init: mount securityfs with source "securityfs" instead of dest

12 years agoDo not use /run/udev/rules.d for udev rules
Harald Hoyer [Mon, 19 Sep 2011 10:21:51 +0000 (12:21 +0200)] 
Do not use /run/udev/rules.d for udev rules

for rules, which should not be called in the real root.

Stale rules can cause this:
https://bugzilla.redhat.com/show_bug.cgi?id=734096

12 years ago99base/init: remove /dev/root helper symlink
Harald Hoyer [Mon, 19 Sep 2011 10:20:55 +0000 (12:20 +0200)] 
99base/init: remove /dev/root helper symlink

Any tool relying on /dev/root has to be fixed.

12 years ago90dmsquash-live: do not symlink to /dev/live
Harald Hoyer [Mon, 19 Sep 2011 10:20:11 +0000 (12:20 +0200)] 
90dmsquash-live: do not symlink to /dev/live

/dev/live should not be used anyway

12 years agodmsquash-live-root: load filesystem modules before mounting loop images
Harald Hoyer [Fri, 2 Sep 2011 17:16:17 +0000 (19:16 +0200)] 
dmsquash-live-root: load filesystem modules before mounting loop images

might prevent https://bugzilla.redhat.com/show_bug.cgi?id=735199

12 years agodmsquash-live-root: use blkid to determine fstype of images
Harald Hoyer [Fri, 2 Sep 2011 17:01:16 +0000 (19:01 +0200)] 
dmsquash-live-root: use blkid to determine fstype of images

prevents:
dracut: FATAL: cannot mount live image (unknown filesystem type)
https://bugzilla.redhat.com/show_bug.cgi?id=735199

12 years ago99base/init: removed cdrom polling reset code
Harald Hoyer [Fri, 2 Sep 2011 07:01:05 +0000 (09:01 +0200)] 
99base/init: removed cdrom polling reset code

This is done globally now.

12 years agodracut: cp with sparse
Harald Hoyer [Fri, 2 Sep 2011 07:01:47 +0000 (09:01 +0200)] 
dracut: cp with sparse

12 years ago99base/init: do not fail, when importing the original kernel environment
Harald Hoyer [Thu, 1 Sep 2011 14:01:21 +0000 (16:01 +0200)] 
99base/init: do not fail, when importing the original kernel environment

12 years agoinstmods: factor out egrep of "FATAL: Module .* not found"
John Reiser [Mon, 29 Aug 2011 23:03:35 +0000 (16:03 -0700)] 
instmods: factor out egrep of "FATAL: Module .* not found"

12 years agoinstmods: sanity for _mpargs
John Reiser [Mon, 29 Aug 2011 21:46:25 +0000 (14:46 -0700)] 
instmods: sanity for _mpargs

12 years agoinstmods: get filenames from stdin if no args; use it
John Reiser [Mon, 29 Aug 2011 20:40:21 +0000 (13:40 -0700)] 
instmods: get filenames from stdin if no args; use it

Use bash  "[[ string =~ pattern ]]"  instead of "egrep -q".
Replace control-dominated serial fondling
for var in $(proc1); do proc2 var; done
with data-dominated parallel pipeline
proc1  |  while read var; do proc2 var; done
Together this is a large savings.

[harald@redhat.com: fixed network kernel module filter]

12 years agoinstall_kmod_with_fw: make fast case faster
John Reiser [Sun, 28 Aug 2011 20:24:58 +0000 (13:24 -0700)] 
install_kmod_with_fw: make fast case faster

12 years agofilter_kernel_modules is a specialized filter_kernel_modules_by_path
John Reiser [Sat, 27 Aug 2011 21:43:49 +0000 (14:43 -0700)] 
filter_kernel_modules is a specialized filter_kernel_modules_by_path

12 years agoinst_simple, inst_dir: make fast case faster
John Reiser [Fri, 26 Aug 2011 20:01:33 +0000 (13:01 -0700)] 
inst_simple, inst_dir: make fast case faster

This small stuff saves 1.7% per dropped statement during "dracut --profile".
Fixing the comment about /lib -> lib64 is REQUIRED!

12 years ago95udev-rules: add input_id
Harald Hoyer [Wed, 31 Aug 2011 14:48:20 +0000 (16:48 +0200)] 
95udev-rules: add input_id

12 years agodracut-functions: hmac checksum files can be symlinks, too
Harald Hoyer [Wed, 31 Aug 2011 13:22:09 +0000 (15:22 +0200)] 
dracut-functions: hmac checksum files can be symlinks, too

use inst() instead of inst_simple() to install the hmac files

12 years ago99base/init: move switch_root breakpoint to a later point in the script
Harald Hoyer [Tue, 30 Aug 2011 14:23:17 +0000 (16:23 +0200)] 
99base/init: move switch_root breakpoint to a later point in the script

12 years ago99base/init: save and restore environment given from the kernel
Harald Hoyer [Tue, 30 Aug 2011 14:22:46 +0000 (16:22 +0200)] 
99base/init: save and restore environment given from the kernel

12 years ago90crypt/parse-crypt.sh: also accept the beginning of the LUKS UUID
Harald Hoyer [Tue, 30 Aug 2011 12:43:57 +0000 (14:43 +0200)] 
90crypt/parse-crypt.sh: also accept the beginning of the LUKS UUID

2e0c003435bbc0751cdf7466c0faebe7bfc7445b introduced a too strict test
for LUKS UUIDs

12 years agobuild initramfs: unclear _mpargs in instmods()
John Reiser [Mon, 29 Aug 2011 21:42:15 +0000 (14:42 -0700)] 
build initramfs: unclear _mpargs in instmods()

The local variable _mpargs in function instmods() in file dracut-functions
looks peculiar.  The documentation is non-existent, but still ...

First, $_mpargs is not passed to modprobe via for_each_kmod_dep.
This is strange because my guess is that "_mpargs" means
"extra arguments for modprobe".

Second, the leading "--" will be lopped when a leading pathname
is stripped via
_mod=${_mod##*/}
It seems to me that a leading "--" should inhibit modification.

Here's the corresponding patch to current HEAD (from dracut-013.)

12 years ago99base/init: only poll cdroms, if the kernel does support autopolling
Harald Hoyer [Mon, 29 Aug 2011 17:12:12 +0000 (19:12 +0200)] 
99base/init: only poll cdroms, if the kernel does support autopolling

12 years ago50plymouth: add plymouth.enable kernel command line option
Harald Hoyer [Mon, 29 Aug 2011 16:30:26 +0000 (18:30 +0200)] 
50plymouth: add plymouth.enable kernel command line option

12 years agodracut.spec: fixed rhel/fedora version checks
Harald Hoyer [Mon, 29 Aug 2011 11:11:49 +0000 (13:11 +0200)] 
dracut.spec: fixed rhel/fedora version checks

12 years ago90mdraid/65-md-incremental-imsm.rules: incremental run to settled
Harald Hoyer [Wed, 24 Aug 2011 14:35:33 +0000 (16:35 +0200)] 
90mdraid/65-md-incremental-imsm.rules: incremental run to settled

move incremental run to settled queue again

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

12 years agodracut-functions: fix inst_dir() for non-absolute dirs
Harald Hoyer [Tue, 23 Aug 2011 10:50:03 +0000 (12:50 +0200)] 
dracut-functions: fix inst_dir() for non-absolute dirs

12 years agoluks key on ext dev - wait for luks
Przemysław Rudy [Mon, 22 Aug 2011 09:27:00 +0000 (11:27 +0200)] 
luks key on ext dev - wait for luks

This really waits for the luks mapper device, so luksOpen can do it job

12 years agocrypt: changed cmdline arg name from rd.luks.tout to rd.luks.key.tout
Amadeusz Żołnowski [Sun, 21 Aug 2011 08:26:40 +0000 (10:26 +0200)] 
crypt: changed cmdline arg name from rd.luks.tout to rd.luks.key.tout

12 years agoluks key on ext dev - wait for luks
Przemysław Rudy [Tue, 7 Jun 2011 18:22:51 +0000 (20:22 +0200)] 
luks key on ext dev - wait for luks

This asks for the luks passphrase if key is not found for defined time (if defined with rd.luks.tout cmd line):

 modules.d/90crypt/cryptroot-ask.sh |   21 ++++++++++++++++++---
 modules.d/90crypt/parse-crypt.sh   |    5 +++--
 2 files changed, 21 insertions(+), 5 deletions(-)

12 years agolivenet: take into account other ca-bundle paths; use inst_any for that
Amadeusz Żołnowski [Sun, 21 Aug 2011 10:47:14 +0000 (12:47 +0200)] 
livenet: take into account other ca-bundle paths; use inst_any for that

12 years agodracut-functions: new function: inst_any [-d dest] f1 [f2 [f3 ...]]
Amadeusz Żołnowski [Sun, 21 Aug 2011 10:47:13 +0000 (12:47 +0200)] 
dracut-functions: new function: inst_any [-d dest] f1 [f2 [f3 ...]]

12 years ago99base: whitespace fix
Leho Kraav [Mon, 22 Aug 2011 08:54:47 +0000 (11:54 +0300)] 
99base: whitespace fix

12 years ago90crypt: ask_for_password pings plymouthd
Amadeusz Żołnowski [Thu, 18 Aug 2011 13:55:57 +0000 (15:55 +0200)] 
90crypt: ask_for_password pings plymouthd

If plymouthd is not started, ask_for_password shouldn't try to prompt
for password with GUI and should use text prompt instead.

12 years agodracut-functions: speed up inst_dir()
Harald Hoyer [Fri, 19 Aug 2011 08:24:49 +0000 (10:24 +0200)] 
dracut-functions: speed up inst_dir()

12 years agobuild initramfs: prelink --undo /sbin/*
John Reiser [Fri, 19 Aug 2011 03:55:35 +0000 (20:55 -0700)] 
build initramfs: prelink --undo /sbin/*

Fix a typo (omitting the 's' in "sbin") which caused
"prelink --undo" twice on      /bin/*,  and
"prelink --undo" omitted for  /sbin/*.

12 years agodracut: unset LD_LIBRARY_PATH
Harald Hoyer [Fri, 19 Aug 2011 06:08:18 +0000 (08:08 +0200)] 
dracut: unset LD_LIBRARY_PATH

LD_LIBRARY_PATH is not set in the initramfs, so it should not be set
while finding our libraries.

12 years agodracut-functions: s/emergency-shutdown/shutdown-emergency/g
Harald Hoyer [Wed, 17 Aug 2011 15:40:59 +0000 (17:40 +0200)] 
dracut-functions: s/emergency-shutdown/shutdown-emergency/g

12 years agoadd TEST-16-DMSQUASH
Harald Hoyer [Wed, 17 Aug 2011 11:42:16 +0000 (13:42 +0200)] 
add TEST-16-DMSQUASH

This is a test for Fedora LiveCDs created via livecd-tools

12 years agoprofile.py: parse the output of "dracut --profile" for profiling
Harald Hoyer [Wed, 17 Aug 2011 08:08:23 +0000 (10:08 +0200)] 
profile.py: parse the output of "dracut --profile" for profiling

12 years agofix live crash with livenet installed
Will Woods [Mon, 15 Aug 2011 15:10:59 +0000 (11:10 -0400)] 
fix live crash with livenet installed

parse-livenet.sh shouldn't mess with $root unless it finds a valid URL.

12 years ago90dmsquash-live/dmsquash-live-root: include fs_lib.sh for det_fs()
Harald Hoyer [Wed, 17 Aug 2011 06:24:30 +0000 (08:24 +0200)] 
90dmsquash-live/dmsquash-live-root: include fs_lib.sh for det_fs()

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

12 years agoadd x-bit to *.sh
Harald Hoyer [Fri, 12 Aug 2011 14:29:28 +0000 (16:29 +0200)] 
add x-bit to *.sh

12 years agoversion 013 013
Harald Hoyer [Fri, 12 Aug 2011 14:17:58 +0000 (16:17 +0200)] 
version 013

12 years agodracut-functions: fixed inst_dir for symbolic links
Harald Hoyer [Fri, 12 Aug 2011 13:56:14 +0000 (15:56 +0200)] 
dracut-functions: fixed inst_dir for symbolic links

12 years agodracut: add "--profile" option for profiling
Harald Hoyer [Fri, 12 Aug 2011 11:24:25 +0000 (13:24 +0200)] 
dracut: add "--profile" option for profiling

12 years agodracut-functions: use "type -P" for find_binary()
Harald Hoyer [Fri, 12 Aug 2011 11:22:17 +0000 (13:22 +0200)] 
dracut-functions: use "type -P" for find_binary()

12 years ago90dmraid: don't install non-existent dmraid-cleanup
Harald Hoyer [Fri, 12 Aug 2011 11:13:06 +0000 (13:13 +0200)] 
90dmraid: don't install non-existent dmraid-cleanup

12 years agouse inst_simple to install non-binary files
Harald Hoyer [Fri, 12 Aug 2011 11:11:30 +0000 (13:11 +0200)] 
use inst_simple to install non-binary files

12 years agoadd filter_kernel_modules_by_path() to speed up module search
Harald Hoyer [Fri, 12 Aug 2011 08:29:00 +0000 (10:29 +0200)] 
add filter_kernel_modules_by_path() to speed up module search

12 years agoAUTHORS: update
Harald Hoyer [Fri, 12 Aug 2011 08:28:10 +0000 (10:28 +0200)] 
AUTHORS: update

12 years ago90kernel-modules: add unix module
Harald Hoyer [Fri, 12 Aug 2011 08:08:09 +0000 (10:08 +0200)] 
90kernel-modules: add unix module

12 years agoremoved sourceforge references
Harald Hoyer [Fri, 12 Aug 2011 07:53:40 +0000 (09:53 +0200)] 
removed sourceforge references

12 years agoadd apply-live-updates.sh to pre-pivot hook 012
Will Woods [Mon, 1 Aug 2011 20:21:09 +0000 (16:21 -0400)] 
add apply-live-updates.sh to pre-pivot hook

If we're about to start a Live image (i.e. if /dev/mapper/live-rw
exists) this script will take any files found in /updates (inside the
initramfs!) and and copy them into $NEWROOT.

This allows for hotfixes to be applied to existing Live images without
rebuilding the entire image.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agodmsquash-live-root: determine img type by contents, not name
Will Woods [Mon, 1 Aug 2011 20:21:08 +0000 (16:21 -0400)] 
dmsquash-live-root: determine img type by contents, not name

Currently dmsquash-live-root requires that squashfs images be named
"squashfs.img" and all others be "ext3fs.img" or "rootfs.img".

If we've got a live image in initramfs, this patch will make dracut use
losetup and det_fs to determine the actual filesystem type of the image.

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agodmsquash-live-root cleanups/mini-fixes
Will Woods [Mon, 1 Aug 2011 20:21:07 +0000 (16:21 -0400)] 
dmsquash-live-root cleanups/mini-fixes

- use last ro/rw cmdline arg rather than favoring 'rw' over 'ro'
- don't bother with useless RES variable for holding $?
- only do fs check when $livedev is a block device

Signed-off-by: Will Woods <wwoods@redhat.com>
12 years agoMakefile: increment version to 012
Harald Hoyer [Thu, 11 Aug 2011 15:52:58 +0000 (17:52 +0200)] 
Makefile: increment version to 012

12 years agoNEWS: update
Harald Hoyer [Fri, 29 Jul 2011 09:11:49 +0000 (11:11 +0200)] 
NEWS: update

12 years ago90btrfs: add btrfs device with multiple components
Harald Hoyer [Thu, 11 Aug 2011 14:56:52 +0000 (16:56 +0200)] 
90btrfs: add btrfs device with multiple components

12 years ago99fs-lib: add btrfsck
Harald Hoyer [Thu, 11 Aug 2011 14:56:03 +0000 (16:56 +0200)] 
99fs-lib: add btrfsck

12 years agoTEST-11-LVM/create-root.sh: sleep before disassembling device
Harald Hoyer [Thu, 11 Aug 2011 13:35:08 +0000 (15:35 +0200)] 
TEST-11-LVM/create-root.sh: sleep before disassembling device

12 years agoTEST-40-NBD/test.sh: source reformat
Harald Hoyer [Thu, 11 Aug 2011 12:24:23 +0000 (14:24 +0200)] 
TEST-40-NBD/test.sh: source reformat

12 years agoTEST-40-NBD/create-root.sh: sleep before disassembling root device
Harald Hoyer [Thu, 11 Aug 2011 12:23:56 +0000 (14:23 +0200)] 
TEST-40-NBD/create-root.sh: sleep before disassembling root device

12 years ago95rootfs-block/mount-root.sh: also parse rootopts for "_netdev"
Harald Hoyer [Thu, 11 Aug 2011 12:23:27 +0000 (14:23 +0200)] 
95rootfs-block/mount-root.sh: also parse rootopts for "_netdev"

12 years ago95nbd/nbdroot: also mount nbd0 for root=dhcp and missing root=
Harald Hoyer [Thu, 11 Aug 2011 12:22:47 +0000 (14:22 +0200)] 
95nbd/nbdroot: also mount nbd0 for root=dhcp and missing root=

12 years ago40network/parse-bridge.sh: fixed bridge parameter parsing
Harald Hoyer [Thu, 11 Aug 2011 12:22:09 +0000 (14:22 +0200)] 
40network/parse-bridge.sh: fixed bridge parameter parsing

12 years agodracut: add --force-add option
Amerigo Wang [Mon, 1 Aug 2011 02:01:23 +0000 (10:01 +0800)] 
dracut: add --force-add option

This patch adds a new option --force-add, which
can force dracut to load some module when -H
is specified.

Signed-off-by: Amerigo Wang <amwang@redhat.com>
12 years agolsinitrd: display the size of initrd
Amerigo Wang [Mon, 1 Aug 2011 06:55:15 +0000 (14:55 +0800)] 
lsinitrd: display the size of initrd

It is useful to display the size of initrd in human-friendly form.

Signed-off-by: Amerigo Wang <amwang@redhat.com>
12 years agodracut.spec: add livenet and fs-lib
Harald Hoyer [Thu, 11 Aug 2011 10:05:27 +0000 (12:05 +0200)] 
dracut.spec: add livenet and fs-lib

12 years agoTEST-12-RAID-DEG/test.sh: uncomment rd.shell
Harald Hoyer [Thu, 11 Aug 2011 09:53:31 +0000 (11:53 +0200)] 
TEST-12-RAID-DEG/test.sh: uncomment rd.shell

12 years agoturn off masterkey,ecryptfs,integrity by default
Harald Hoyer [Thu, 11 Aug 2011 09:47:56 +0000 (11:47 +0200)] 
turn off masterkey,ecryptfs,integrity by default