Will Woods [Thu, 13 Oct 2011 02:48:08 +0000 (22:48 -0400)]
dracut-lib.sh: fix dropped backslashes in CMDLINE
The "read" shell builtin consumes backslashes, which is a problem if
your root device is something like "LABEL=Fedora\x2016".
Using "read -r" tells the shell to leave backslashes alone.
Michal Soltys [Mon, 17 Oct 2011 21:01:49 +0000 (23:01 +0200)]
dracut: remove duplicate options
'-I' and '--fwdir' were both read_arg and push_arg, and the latter has
priority.
Signed-off-by: Michal Soltys <soltys@ziu.info>
Michal Soltys [Mon, 10 Oct 2011 21:58:05 +0000 (23:58 +0200)]
explicitly verify bash version
A simple check in main dracut script.
Signed-off-by: Michal Soltys <soltys@ziu.info>
Michal Soltys [Mon, 10 Oct 2011 21:58:04 +0000 (23:58 +0200)]
bash3 compat patch
This patch replaces:
- {var}>... redirections with functionally identical eval construct +
explicit FDs
- ^^ and ,, case modifiers with temporary shopt
This allows us to lower minimum required bash version
to at least 3.1 (with current code).
Signed-off-by: Michal Soltys <soltys@ziu.info>
Dave Young [Tue, 11 Oct 2011 03:26:54 +0000 (11:26 +0800)]
dracut.conf.5.xml: tag mismatch fix
build failed with:
xsltproc -o dracut.conf.5 -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl dracut.conf.5.xml
dracut.conf.5.xml:169: parser error : Opening and ending tag mismatch: para line 168 and listitem
</listitem>
Fix it by change to </para> at the end
Signed-off-by: Dave Young <dyoung@redhat.com>
Harald Hoyer [Mon, 10 Oct 2011 18:17:16 +0000 (20:17 +0200)]
95udev-rules/module-setup.s: fixed symlink for udevd to initdir
Harald Hoyer [Mon, 10 Oct 2011 09:55:17 +0000 (11:55 +0200)]
dracut.*.xml: s/exisiting/existing/g
Michal Soltys [Fri, 7 Oct 2011 22:20:50 +0000 (00:20 +0200)]
dracut-functions: conv/normalize minor corrections
mostly with reference to earlier commit:
- bash doesn't need unsetting locals
- make normalize_path() a bit faster, also make sure we remove all
trailing slashes
- normalize paths before tests
Signed-off-by: Michal Soltys <soltys@ziu.info>
Michal Soltys [Fri, 7 Oct 2011 20:23:52 +0000 (22:23 +0200)]
manuals: add info about fs-lib (fsck) configuration
in dracut.8.xml & dracut.conf.5.xml
Signed-off-by: Michal Soltys <soltys@ziu.info>
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>
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>
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>
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
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>
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
Harald Hoyer [Tue, 4 Oct 2011 11:30:35 +0000 (13:30 +0200)]
90mdraid/module-setup.sh: fixed sed arguments
Harald Hoyer [Tue, 4 Oct 2011 11:06:33 +0000 (13:06 +0200)]
90mdraid/mdraid_start.sh: fix path to md sysfs
Harald Hoyer [Tue, 4 Oct 2011 11:03:45 +0000 (13:03 +0200)]
order mdadm and lvm timeout operations
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
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.
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>
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>
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>
Harald Hoyer [Thu, 22 Sep 2011 14:14:38 +0000 (16:14 +0200)]
dracut-functions: inst_rules() add missing ""
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>
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.
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
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>
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.
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
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
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>
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>
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>
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>
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>
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>
Harald Hoyer [Tue, 20 Sep 2011 09:16:53 +0000 (11:16 +0200)]
mount 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
Harald Hoyer [Tue, 20 Sep 2011 08:10:29 +0000 (10:10 +0200)]
99base/init: mount securityfs with source "securityfs" instead of dest
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
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.
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
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
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
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.
Harald Hoyer [Fri, 2 Sep 2011 07:01:47 +0000 (09:01 +0200)]
dracut: cp with sparse
Harald Hoyer [Thu, 1 Sep 2011 14:01:21 +0000 (16:01 +0200)]
99base/init: do not fail, when importing the original kernel environment
John Reiser [Mon, 29 Aug 2011 23:03:35 +0000 (16:03 -0700)]
instmods: factor out egrep of "FATAL: Module .* not found"
John Reiser [Mon, 29 Aug 2011 21:46:25 +0000 (14:46 -0700)]
instmods: sanity for _mpargs
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]
John Reiser [Sun, 28 Aug 2011 20:24:58 +0000 (13:24 -0700)]
install_kmod_with_fw: make fast case faster
John Reiser [Sat, 27 Aug 2011 21:43:49 +0000 (14:43 -0700)]
filter_kernel_modules is a specialized filter_kernel_modules_by_path
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!
Harald Hoyer [Wed, 31 Aug 2011 14:48:20 +0000 (16:48 +0200)]
95udev-rules: add input_id
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
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
Harald Hoyer [Tue, 30 Aug 2011 14:22:46 +0000 (16:22 +0200)]
99base/init: save and restore environment given from the kernel
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
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.)
Harald Hoyer [Mon, 29 Aug 2011 17:12:12 +0000 (19:12 +0200)]
99base/init: only poll cdroms, if the kernel does support autopolling
Harald Hoyer [Mon, 29 Aug 2011 16:30:26 +0000 (18:30 +0200)]
50plymouth: add plymouth.enable kernel command line option
Harald Hoyer [Mon, 29 Aug 2011 11:11:49 +0000 (13:11 +0200)]
dracut.spec: fixed rhel/fedora version checks
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
Harald Hoyer [Tue, 23 Aug 2011 10:50:03 +0000 (12:50 +0200)]
dracut-functions: fix inst_dir() for non-absolute dirs
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
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
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(-)
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
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 ...]]
Leho Kraav [Mon, 22 Aug 2011 08:54:47 +0000 (11:54 +0300)]
99base: whitespace fix
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.
Harald Hoyer [Fri, 19 Aug 2011 08:24:49 +0000 (10:24 +0200)]
dracut-functions: speed up inst_dir()
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/*.
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.
Harald Hoyer [Wed, 17 Aug 2011 15:40:59 +0000 (17:40 +0200)]
dracut-functions: s/emergency-shutdown/shutdown-emergency/g
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
Harald Hoyer [Wed, 17 Aug 2011 08:08:23 +0000 (10:08 +0200)]
profile.py: parse the output of "dracut --profile" for profiling
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.
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
Harald Hoyer [Fri, 12 Aug 2011 14:29:28 +0000 (16:29 +0200)]
add x-bit to *.sh
Harald Hoyer [Fri, 12 Aug 2011 14:17:58 +0000 (16:17 +0200)]
version 013
Harald Hoyer [Fri, 12 Aug 2011 13:56:14 +0000 (15:56 +0200)]
dracut-functions: fixed inst_dir for symbolic links
Harald Hoyer [Fri, 12 Aug 2011 11:24:25 +0000 (13:24 +0200)]
dracut: add "--profile" option for profiling
Harald Hoyer [Fri, 12 Aug 2011 11:22:17 +0000 (13:22 +0200)]
dracut-functions: use "type -P" for find_binary()
Harald Hoyer [Fri, 12 Aug 2011 11:13:06 +0000 (13:13 +0200)]
90dmraid: don't install non-existent dmraid-cleanup
Harald Hoyer [Fri, 12 Aug 2011 11:11:30 +0000 (13:11 +0200)]
use inst_simple to install non-binary files
Harald Hoyer [Fri, 12 Aug 2011 08:29:00 +0000 (10:29 +0200)]
add filter_kernel_modules_by_path() to speed up module search
Harald Hoyer [Fri, 12 Aug 2011 08:28:10 +0000 (10:28 +0200)]
AUTHORS: update
Harald Hoyer [Fri, 12 Aug 2011 08:08:09 +0000 (10:08 +0200)]
90kernel-modules: add unix module
Harald Hoyer [Fri, 12 Aug 2011 07:53:40 +0000 (09:53 +0200)]
removed sourceforge references
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>
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>
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>
Harald Hoyer [Thu, 11 Aug 2011 15:52:58 +0000 (17:52 +0200)]
Makefile: increment version to 012
Harald Hoyer [Fri, 29 Jul 2011 09:11:49 +0000 (11:11 +0200)]
NEWS: update
Harald Hoyer [Thu, 11 Aug 2011 14:56:52 +0000 (16:56 +0200)]
90btrfs: add btrfs device with multiple components
Harald Hoyer [Thu, 11 Aug 2011 14:56:03 +0000 (16:56 +0200)]
99fs-lib: add btrfsck
Harald Hoyer [Thu, 11 Aug 2011 13:35:08 +0000 (15:35 +0200)]
TEST-11-LVM/create-root.sh: sleep before disassembling device
Harald Hoyer [Thu, 11 Aug 2011 12:24:23 +0000 (14:24 +0200)]
TEST-40-NBD/test.sh: source reformat