platform/upstream/dracut.git
13 years agoimplement fs-lib, squash a few bugs that were part of det_fs/wrap_fsck
Michal Soltys [Thu, 2 Jun 2011 21:22:12 +0000 (23:22 +0200)]
implement fs-lib, squash a few bugs that were part of det_fs/wrap_fsck

To not pollute dracut-lib.sh, all the fsck related functions were moved
to fs-lib.sh. The functions available are as follows:

- fsck_single

this will detect/verify filesystem, check if it has necessary tools and
check the filesystem respecting additional flags (if any), using
specific "driver" (or falling back to generic one). Currently
available: fsck_drv_{com,xfs,std}. 'com' is used for tools following
typical subset of options/return codes (e.g. ext, jfs), 'std' is used
for "unknown" fs and doesn't assume it can be run non-interactively.

Please see comments around the code for more info.

- fsck_batch

this will check provided list of the devices;

Both of the above functions will fake empty fstab, to make generic fsck
not complain too much (excact devices are always provided on the command
line).

"Known" filesystems currently: ext234, reiser, jfs, xfs

- det_fs

Small bug fixed - as this function is meant to be called in $(), it may
not be verbose.
Current behaviour is:
 - if detection is successful, use its result
 - if detection is not successful, and filesystem is provided, return
   the provided one; otherwise use auto

13 years ago95rootfs-block/mount-root.sh: '-a' for ext? is handled in fs-lib now
Michal Soltys [Thu, 2 Jun 2011 21:22:13 +0000 (23:22 +0200)]
95rootfs-block/mount-root.sh: '-a' for ext? is handled in fs-lib now

Previously, '-a' was added for ext[234] filesystems if other
conflicting flag were not present. It's being done automatically
in fsck_drv_com() now (also for jfs and reiser).

13 years agolivenet: module for fetching live images from the network
Will Woods [Mon, 1 Aug 2011 20:22:40 +0000 (16:22 -0400)]
livenet: module for fetching live images from the network

The livenet module allows you to use a root arg like:

    root=live:http://server.name/path/to/live.img ip=dhcp

The named live image will be downloaded with wget and then set up as the
root device.

It currently supports FTP, HTTP, and HTTPS. dracut will try to install
the CA bundle (/etc/ssl/certs/ca-bundle.crt) into the initramfs so that
SSL certificate checking will work properly.

If an HTTPS URL is given and the site fails the certificate check, the
file will be rejected and the system will not boot into it.

Signed-off-by: Will Woods <wwoods@redhat.com>
13 years agomodules.d/90mdraid/65-md-incremental-imsm.rules: fix md_finished install
Harald Hoyer [Thu, 11 Aug 2011 08:48:00 +0000 (10:48 +0200)]
modules.d/90mdraid/65-md-incremental-imsm.rules: fix md_finished install

13 years agotest/TEST-13-ENC-RAID-LVM/create-root.sh: wait before disassembling lvm
Harald Hoyer [Thu, 11 Aug 2011 08:47:34 +0000 (10:47 +0200)]
test/TEST-13-ENC-RAID-LVM/create-root.sh: wait before disassembling lvm

13 years agoinitqueue: exit with 0
Harald Hoyer [Thu, 11 Aug 2011 08:47:10 +0000 (10:47 +0200)]
initqueue: exit with 0

13 years agodracut-lib.sh: fixed getargs() for empty arguments
Harald Hoyer [Wed, 10 Aug 2011 18:03:21 +0000 (20:03 +0200)]
dracut-lib.sh: fixed getargs() for empty arguments

13 years agodracut-lib.sh: getarg() echo with "" to prevent wildcard subst
Harald Hoyer [Thu, 4 Aug 2011 11:19:00 +0000 (13:19 +0200)]
dracut-lib.sh: getarg() echo with "" to prevent wildcard subst

if a value of a key on the kernel command line includes wildcards, these
would be expanded.
E.g., if you have "key=/dev/sd*" the value would be substituted with
"/dev/sda /dev/sda1 /dev/sda2" instead of returning "/dev/sd*"

13 years ago99base/init: use udevadm control to set the logging priority
Harald Hoyer [Tue, 2 Aug 2011 12:57:49 +0000 (14:57 +0200)]
99base/init: use udevadm control to set the logging priority

due to a bad revert commit, "udevadm control" was converted to
"udevproperty", which is the wrong command to set the logging priority.

13 years agodracut-functions: create relative symlinks for libraries
Harald Hoyer [Wed, 10 Aug 2011 15:38:02 +0000 (17:38 +0200)]
dracut-functions: create relative symlinks for libraries

13 years agodracut.spec: add 97masterkey 98ecryptfs 98integrity
Harald Hoyer [Fri, 29 Jul 2011 09:14:41 +0000 (11:14 +0200)]
dracut.spec: add 97masterkey 98ecryptfs 98integrity

13 years agogit2spec.pl: make rename diffs
Harald Hoyer [Fri, 29 Jul 2011 09:12:07 +0000 (11:12 +0200)]
git2spec.pl: make rename diffs

13 years agoparse-lvm.sh: fix for generated initqueue/finished script
Michal Soltys [Thu, 28 Jul 2011 12:40:10 +0000 (14:40 +0200)]
parse-lvm.sh: fix for generated initqueue/finished script

The script that was generated always returned the status of the last test
condition, potentially missing any earlier non-existing devices.

The change assures, that the script returns 0 only if all expected
devices are found.

Signed-off-by: Michal Soltys <soltys@ziu.info>
13 years agodracut: added new module ecryptfs
Roberto Sassu [Fri, 8 Jul 2011 12:11:02 +0000 (14:11 +0200)]
dracut: added new module ecryptfs

This module mounts an eCryptfs filesystem from the initial ramdisk using an
encrypted key.

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Acked-by: Gianluca Ramunno <ramunno@polito.it>
13 years agodracut: added new module integrity
Roberto Sassu [Fri, 8 Jul 2011 12:11:01 +0000 (14:11 +0200)]
dracut: added new module integrity

This module initializes the EVM software and permits to load a custom IMA
policy.

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Acked-by: Gianluca Ramunno <ramunno@polito.it>
13 years agodracut: added new module masterkey
Roberto Sassu [Fri, 8 Jul 2011 12:11:00 +0000 (14:11 +0200)]
dracut: added new module masterkey

This module initializes a trusted/user kernel master key that will be used
to decrypt other encrypted keys.

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Acked-by: Gianluca Ramunno <ramunno@polito.it>
13 years agobase/init: mount the securityfs filesystem
Roberto Sassu [Fri, 8 Jul 2011 12:10:59 +0000 (14:10 +0200)]
base/init: mount the securityfs filesystem

Mount the securityfs filesystem and make available its location through the
exported variable SECURITYFSDIR.

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Acked-by: Gianluca Ramunno <ramunno@polito.it>
13 years agodracut-update-initramfs: removed on request of the debian maintainer
Harald Hoyer [Mon, 25 Jul 2011 16:01:02 +0000 (18:01 +0200)]
dracut-update-initramfs: removed on request of the debian maintainer

13 years agodracut-functions: remove double slashes, for symlink conversion
Harald Hoyer [Mon, 25 Jul 2011 12:28:55 +0000 (14:28 +0200)]
dracut-functions: remove double slashes, for symlink conversion

remove double slashes for symlink conversion from absolute to relative

13 years agodracut: install /lib* for kernel images
Harald Hoyer [Mon, 25 Jul 2011 12:28:40 +0000 (14:28 +0200)]
dracut: install /lib* for kernel images

13 years agoremoved debian.template
Harald Hoyer [Mon, 25 Jul 2011 08:57:52 +0000 (10:57 +0200)]
removed debian.template

13 years agodracut-functions: resolve relative path and recursively install destination
Harald Hoyer [Mon, 25 Jul 2011 08:55:19 +0000 (10:55 +0200)]
dracut-functions: resolve relative path and recursively install destination

13 years agomove "debian" to debian.template on request of debian maintainer
Harald Hoyer [Mon, 25 Jul 2011 08:31:54 +0000 (10:31 +0200)]
move "debian" to debian.template on request of debian maintainer

13 years agodracut-functions: convert absolute symlinks to relative
Harald Hoyer [Mon, 25 Jul 2011 08:25:44 +0000 (10:25 +0200)]
dracut-functions: convert absolute symlinks to relative

13 years agodracut-logger: initialize basic vars
Harald Hoyer [Mon, 25 Jul 2011 08:25:12 +0000 (10:25 +0200)]
dracut-logger: initialize basic vars

13 years agofixed typos
Thomas Lange [Mon, 25 Jul 2011 07:11:56 +0000 (09:11 +0200)]
fixed typos

13 years ago99base/init: try to mount /usr, if init lives on /usr
Harald Hoyer [Fri, 22 Jul 2011 09:21:24 +0000 (11:21 +0200)]
99base/init: try to mount /usr, if init lives on /usr

13 years agodracut-functions: only "dinfo" about missing optioal dracut_install
Harald Hoyer [Fri, 22 Jul 2011 12:18:23 +0000 (14:18 +0200)]
dracut-functions: only "dinfo" about missing optioal dracut_install

13 years ago99base/dracut-lib.sh: don't be quiet on rd.debug
Harald Hoyer [Fri, 22 Jul 2011 12:17:59 +0000 (14:17 +0200)]
99base/dracut-lib.sh: don't be quiet on rd.debug

13 years agodracut.kernel.7.xml: beautified doc
Harald Hoyer [Fri, 22 Jul 2011 07:49:49 +0000 (09:49 +0200)]
dracut.kernel.7.xml: beautified doc

13 years agodracut.kernel.7.xml: s/voonsole.keymap/vconsole.keymap
Harald Hoyer [Fri, 22 Jul 2011 07:41:24 +0000 (09:41 +0200)]
dracut.kernel.7.xml: s/voonsole.keymap/vconsole.keymap

13 years agobusybox module: parse busybox defined functions dynamically
Américo Wang [Thu, 21 Jul 2011 07:33:19 +0000 (15:33 +0800)]
busybox module: parse busybox defined functions dynamically

Currently in dracut busybox module, we hard-code the list of binaries
available in busybox. Actually we can get this list by running busybox
without any arguments.

Also, if find_binary() finds nothing, we would symlink $initdir/
which is not we expect.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
13 years agoTEST-10-RAID/test-init: add comment for rd.break=shutdown
Harald Hoyer [Wed, 20 Jul 2011 19:40:50 +0000 (21:40 +0200)]
TEST-10-RAID/test-init: add comment for rd.break=shutdown

13 years ago99base/dracut-lib.sh: fix previous getargs patch
Harald Hoyer [Wed, 20 Jul 2011 19:38:07 +0000 (21:38 +0200)]
99base/dracut-lib.sh: fix previous getargs patch

patch 9e7f4955895c1064e3bdd03f5f781efc9b98d5d6 ignored
"getargs key=value"

13 years agodracut-lib.sh: fixed getargs()
Harald Hoyer [Wed, 20 Jul 2011 19:12:17 +0000 (21:12 +0200)]
dracut-lib.sh: fixed getargs()

if $1 has a "=<value>", we want the exact match
if cmdline argument has no "=<value>", we assume "=1"

13 years agoshutdown: fixed check_shutdown loop
Harald Hoyer [Wed, 20 Jul 2011 19:11:36 +0000 (21:11 +0200)]
shutdown: fixed check_shutdown loop

13 years agoTEST-10-RAID/test-init: turn off debug for shutdown
Harald Hoyer [Wed, 20 Jul 2011 19:10:58 +0000 (21:10 +0200)]
TEST-10-RAID/test-init: turn off debug for shutdown

13 years agoTEST-10-RAID: extend test case to shutdown
Harald Hoyer [Wed, 20 Jul 2011 17:08:25 +0000 (19:08 +0200)]
TEST-10-RAID: extend test case to shutdown

13 years ago90mdraid/md-shutdown.sh: put shutdown in function
Harald Hoyer [Wed, 20 Jul 2011 17:06:26 +0000 (19:06 +0200)]
90mdraid/md-shutdown.sh: put shutdown in function

13 years ago90dm/dm-shutdown.sh: put shutdown in function
Harald Hoyer [Wed, 20 Jul 2011 17:06:08 +0000 (19:06 +0200)]
90dm/dm-shutdown.sh: put shutdown in function

13 years agoenable shutdown module by default
Harald Hoyer [Wed, 20 Jul 2011 17:04:54 +0000 (19:04 +0200)]
enable shutdown module by default

13 years ago90dmsquash-live: optionally install eject
Harald Hoyer [Wed, 20 Jul 2011 15:49:29 +0000 (17:49 +0200)]
90dmsquash-live: optionally install eject

13 years agodracut-logger: create logfile with 0600 permissions
Harald Hoyer [Wed, 20 Jul 2011 15:24:33 +0000 (17:24 +0200)]
dracut-logger: create logfile with 0600 permissions

13 years agodracut.logrotate: remove "yearly"
Harald Hoyer [Wed, 20 Jul 2011 15:21:02 +0000 (17:21 +0200)]
dracut.logrotate: remove "yearly"

logrotate would only rotate yearly with it

13 years agoadd TEST-15-BTRFSRAID
Harald Hoyer [Wed, 20 Jul 2011 12:10:30 +0000 (14:10 +0200)]
add  TEST-15-BTRFSRAID

13 years agodracut.spec: remove noreplace for 01-dist.conf
Harald Hoyer [Wed, 20 Jul 2011 10:39:58 +0000 (12:39 +0200)]
dracut.spec: remove noreplace for 01-dist.conf

13 years agoMakefile: inc version 011
Harald Hoyer [Mon, 18 Jul 2011 15:05:06 +0000 (17:05 +0200)]
Makefile: inc version

13 years agoTODO, NEWS: update
Harald Hoyer [Mon, 18 Jul 2011 15:04:54 +0000 (17:04 +0200)]
TODO, NEWS: update

13 years agoMakefile: copy created rpms from rpmbuild in "rpm" target
Harald Hoyer [Mon, 18 Jul 2011 15:04:27 +0000 (17:04 +0200)]
Makefile: copy created rpms from rpmbuild in "rpm" target

13 years agodracut.spec: fixed logrotate
Harald Hoyer [Mon, 18 Jul 2011 14:31:55 +0000 (16:31 +0200)]
dracut.spec: fixed logrotate

13 years ago90kernel-modules: fixed handling rd.driver.post=
Amadeusz Żołnowski [Thu, 30 Jun 2011 20:45:24 +0000 (22:45 +0200)]
90kernel-modules: fixed handling rd.driver.post=

13 years agocrypt: dropped plymouth --has-active-vt check on passwd prompt
Amadeusz Żołnowski [Thu, 30 Jun 2011 21:49:20 +0000 (23:49 +0200)]
crypt: dropped plymouth --has-active-vt check on passwd prompt

As Ray Strode explains, plymouth --has-active-vt may fail if the user
passes console=ttyS0 or something other not corresponding to
console=tty0, because plymouth is outputing to the serial console and
not a VT in this case.

13 years agodmsquash-live: install eject with dracut_install
Harald Hoyer [Fri, 1 Jul 2011 08:14:47 +0000 (10:14 +0200)]
dmsquash-live: install eject with dracut_install

the new search path does the right thing

13 years agoselinux/selinux-loadpolicy.sh: set LANG=C for load_policy and restorecon
Harald Hoyer [Wed, 22 Jun 2011 11:33:37 +0000 (13:33 +0200)]
selinux/selinux-loadpolicy.sh: set LANG=C for load_policy and restorecon

set LANG=C for chroot execed tools, because the terminal might not be
able to display the messages and the rest is not translated anyway.

13 years agobase/init: do not mount devtmpfs with "noexec"
Harald Hoyer [Fri, 17 Jun 2011 11:49:57 +0000 (13:49 +0200)]
base/init: do not mount devtmpfs with "noexec"

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

mmap /dev/zero: Operation not permitted

13 years agocrypt/crypt-lib.sh: s/.console.lock/.console_lock/g
Harald Hoyer [Fri, 17 Jun 2011 11:43:37 +0000 (13:43 +0200)]
crypt/crypt-lib.sh: s/.console.lock/.console_lock/g

In the initrd, the init script and the sbin/cryptroot-ask script use
flock with different lock files for the console: /.console_lock and
/.console.lock respectively

13 years agobase/init: mount virtual filesystems with the filesystem type as source
Harald Hoyer [Fri, 17 Jun 2011 11:14:18 +0000 (13:14 +0200)]
base/init: mount virtual filesystems with the filesystem type as source

13 years agoMakefile: simplify "make rpm"
Harald Hoyer [Tue, 31 May 2011 14:34:37 +0000 (16:34 +0200)]
Makefile: simplify "make rpm"

13 years agoshut
Harald Hoyer [Tue, 31 May 2011 14:34:24 +0000 (16:34 +0200)]
shut

13 years agomdraid: add shutdown script
Harald Hoyer [Tue, 31 May 2011 12:47:34 +0000 (14:47 +0200)]
mdraid: add shutdown script

13 years agodm: add shutdown script
Harald Hoyer [Tue, 31 May 2011 12:47:13 +0000 (14:47 +0200)]
dm: add shutdown script

13 years agobase: add shutdown script to be called from systemd
Harald Hoyer [Mon, 30 May 2011 15:27:36 +0000 (17:27 +0200)]
base: add shutdown script to be called from systemd

13 years agodracut: use pigz, if available and no compress defined
Harald Hoyer [Tue, 31 May 2011 11:58:08 +0000 (13:58 +0200)]
dracut: use pigz, if available and no compress defined

13 years agomount-root.sh: fixed fsck and "-a" only for "ext*"
Harald Hoyer [Mon, 30 May 2011 15:26:44 +0000 (17:26 +0200)]
mount-root.sh: fixed fsck and "-a" only for "ext*"

13 years agodracut-functions: do not redirect modprobe error output to /dev/null
Harald Hoyer [Fri, 20 May 2011 18:12:54 +0000 (20:12 +0200)]
dracut-functions: do not redirect modprobe error output to /dev/null

filter modprobe error messages and log them. Very useful if modules.dep
is missing.

13 years agodracut-functions: make created directories writable
Harald Hoyer [Fri, 20 May 2011 18:08:59 +0000 (20:08 +0200)]
dracut-functions: make created directories writable

13 years agodracut: add --keep option, to inspect the initramfs directory
Harald Hoyer [Fri, 20 May 2011 18:08:13 +0000 (20:08 +0200)]
dracut: add --keep option, to inspect the initramfs directory

13 years ago95rootfs-block/block-genrules.sh: Use > instead of >>
Michal Soltys [Fri, 20 May 2011 15:09:27 +0000 (17:09 +0200)]
95rootfs-block/block-genrules.sh: Use > instead of >>

trivial, blocksymlink.sh shouldn't exist at this point.

Signed-off-by: Michal Soltys <soltys@ziu.info>
13 years ago95rootfs-block/mount-root.sh: Rely on det_fs and wrap_fsck
Michal Soltys [Fri, 20 May 2011 15:09:26 +0000 (17:09 +0200)]
95rootfs-block/mount-root.sh: Rely on det_fs and wrap_fsck

Use common fsck and det_fs code. Verify filesystem type more
aggressively, which has a chance to be more resistant to
accidental mistakes.

Also, there's no need to generate custom fstab for the sake of fsck
anymore.

Signed-off-by: Michal Soltys <soltys@ziu.info>
13 years ago95fstab-sys: use det_fs and wrap_fsck
Michal Soltys [Fri, 20 May 2011 15:09:25 +0000 (17:09 +0200)]
95fstab-sys: use det_fs and wrap_fsck

This patch mainly adds fsck functionality to fstab-sys, with additional
sanity checks (checking for device existence, verifying fstype via
det_fs).

Signed-off-by: Michal Soltys <soltys@ziu.info>
13 years agodracut-lib.sh: Add det_fs() and wrap_fsck()
Michal Soltys [Fri, 20 May 2011 15:09:24 +0000 (17:09 +0200)]
dracut-lib.sh: Add det_fs() and wrap_fsck()

Both functions will be used by rootfs-block and fstab-sys modules.

Both are based on code present in mount-root.sh, though few changes are
present.

det_fs:

will try to determine filesystem type for supplied device, even if it's
not auto. If fs cannot be detected, or if the detected one differs from
the supplied one - a warning is issued (so user can fix its stuff later)

wrap_fsck:

will call fsck for specific device with optionally additional
fsckoptions. The function returns fsck return value.

Signed-off-by: Michal Soltys <soltys@ziu.info>
13 years agodracut-lib.sh: add vwarn() function
Michal Soltys [Fri, 20 May 2011 15:09:23 +0000 (17:09 +0200)]
dracut-lib.sh: add vwarn() function

Similary to vinfo()

Signed-off-by: Michal Soltys <soltys@ziu.info>
13 years agodracut.spec: build require dash and bash
Harald Hoyer [Fri, 20 May 2011 13:33:51 +0000 (15:33 +0200)]
dracut.spec: build require dash and bash

13 years agobase/init: do not lazy umount /run
Harald Hoyer [Thu, 19 May 2011 21:29:16 +0000 (23:29 +0200)]
base/init: do not lazy umount /run

13 years agobase/init: mkdir non-existant dirs
Harald Hoyer [Thu, 19 May 2011 21:28:22 +0000 (23:28 +0200)]
base/init: mkdir non-existant dirs

13 years agobase/init: save timestamp earlier and remove /sys mount duplicate
Harald Hoyer [Thu, 19 May 2011 21:27:37 +0000 (23:27 +0200)]
base/init: save timestamp earlier and remove /sys mount duplicate

13 years agobase/init: mkdir $NEWROOT, if it does not exist
Harald Hoyer [Thu, 19 May 2011 21:26:06 +0000 (23:26 +0200)]
base/init: mkdir $NEWROOT, if it does not exist

13 years agobase/module-setup.sh: only mkdir /lib, if it does not exist
Harald Hoyer [Thu, 19 May 2011 21:24:18 +0000 (23:24 +0200)]
base/module-setup.sh: only mkdir /lib, if it does not exist

13 years agoi18n: disable systemd-vconsole-setup, until the tool is fixed
Harald Hoyer [Thu, 19 May 2011 21:22:06 +0000 (23:22 +0200)]
i18n: disable systemd-vconsole-setup, until the tool is fixed

13 years agobusybox: install busybox to /usr/bin
Harald Hoyer [Thu, 19 May 2011 21:20:32 +0000 (23:20 +0200)]
busybox: install busybox to /usr/bin

13 years agolsinitrd: handle new output of "file" for XZ compressed images
Harald Hoyer [Thu, 19 May 2011 21:20:00 +0000 (23:20 +0200)]
lsinitrd: handle new output of "file" for XZ compressed images

13 years agodracut-functions: change search path for find_binary
Harald Hoyer [Thu, 19 May 2011 21:19:17 +0000 (23:19 +0200)]
dracut-functions: change search path for find_binary

13 years agodracut-functions: handle symlinked directories
Harald Hoyer [Thu, 19 May 2011 21:18:47 +0000 (23:18 +0200)]
dracut-functions: handle symlinked directories

13 years agodracut: handle toplevel symlinks
Harald Hoyer [Thu, 19 May 2011 21:16:17 +0000 (23:16 +0200)]
dracut: handle toplevel symlinks

13 years agodracut: s/bzip/bzip2
Harald Hoyer [Thu, 19 May 2011 21:15:51 +0000 (23:15 +0200)]
dracut: s/bzip/bzip2

13 years agodracut: fix overlayfs paths
Harald Hoyer [Fri, 20 May 2011 11:00:46 +0000 (13:00 +0200)]
dracut: fix overlayfs paths

13 years agolvm/lvm_scan.sh: remove references to lvm-cleanup
Harald Hoyer [Tue, 17 May 2011 10:29:47 +0000 (12:29 +0200)]
lvm/lvm_scan.sh: remove references to lvm-cleanup

lvm-cleanup was removed long time ago

13 years agoFix "can't shift that many" crash with empty /proc/cmdline
Will Woods [Mon, 16 May 2011 23:17:57 +0000 (19:17 -0400)]
Fix "can't shift that many" crash with empty /proc/cmdline

If /proc/cmdline is empty (like if root=... is set in /etc/cmdline),
modules.d/99base/init will crash with a message saying "can't shift that
many" right before switch_root. The problem is in the block of code that
tries to look for init args. It does something like:

read CMDLINE </proc/cmdline
    [...]
    set $CMDLINE
    shift

If CMDLINE="" then "set $CMDLINE" will dump all the variables to stdout.
(That should be "set -- $CMDLINE" instead.) Since there's no $1, the
"shift" causes an error, and dracut crashes.

The 'shift' was copy-and-pasted from the previous block. It doesn't
belong here; remove it.

[Harald Hoyer <harald@redhat.com>: corrected commit message]
[Harald Hoyer <harald@redhat.com>: fixed indention]

Signed-off-by: Will Woods <wwoods@redhat.com>
13 years agodracut: set TMPDIR to /var/tmp
Harald Hoyer [Mon, 16 May 2011 16:10:27 +0000 (18:10 +0200)]
dracut: set TMPDIR to /var/tmp

we really don't want anything else than /var/tmp for our operations.
/tmp might be too small and any other location might not fit our needs.

13 years agodracut.spec: add crypt-gpg module
Harald Hoyer [Thu, 12 May 2011 15:17:47 +0000 (17:17 +0200)]
dracut.spec: add crypt-gpg module

13 years agocut.conf.d/fedora.conf.example: removed filename in comment
Harald Hoyer [Thu, 12 May 2011 14:42:25 +0000 (16:42 +0200)]
cut.conf.d/fedora.conf.example: removed filename in comment

13 years agodmsquash-live/dmsquash-live-root: add missing changes for /run
Alan Pevec [Thu, 12 May 2011 12:16:07 +0000 (14:16 +0200)]
dmsquash-live/dmsquash-live-root: add missing changes for /run

Change to /run/initramfs/squashfs/ was not complete.

13 years agodracut-functions: make local vars local and prefix with "_"
Harald Hoyer [Thu, 12 May 2011 09:03:30 +0000 (11:03 +0200)]
dracut-functions: make local vars local and prefix with "_"

13 years agoTODO: update
Harald Hoyer [Thu, 12 May 2011 09:03:56 +0000 (11:03 +0200)]
TODO: update

13 years agoREADME: s/initrd/initramfs
Harald Hoyer [Thu, 12 May 2011 09:01:59 +0000 (11:01 +0200)]
README: s/initrd/initramfs

13 years agodracut.conf: explain dracutmodules option better
Amadeusz Żołnowski [Sat, 7 May 2011 13:28:00 +0000 (15:28 +0200)]
dracut.conf: explain dracutmodules option better

13 years agodracut.kernel.7: crypto LUKS - info about gpg-encrypted keys
Amadeusz Żołnowski [Tue, 10 May 2011 17:44:57 +0000 (19:44 +0200)]
dracut.kernel.7: crypto LUKS - info about gpg-encrypted keys

13 years agodracut-lib.sh: warn, even if "quiet" is set
Harald Hoyer [Wed, 11 May 2011 18:18:26 +0000 (20:18 +0200)]
dracut-lib.sh: warn, even if "quiet" is set

13 years agodracut-functions: remove find_rule()
Michal Soltys [Tue, 10 May 2011 12:36:24 +0000 (14:36 +0200)]
dracut-functions: remove find_rule()

Not used anymore.

Signed-off-by: Michal Soltys <soltys@ziu.info>
13 years agodracut-functions: update inst_binary()
Michal Soltys [Tue, 10 May 2011 12:36:23 +0000 (14:36 +0200)]
dracut-functions: update inst_binary()

This update adds support for sort-of corner case - when explicitly
specified binary (e.g. through dracut_install or inst) is a library
itself.

In such case, we would expect the binary to undergo typical
library-related handling (symlinks and such).

Apart from that, the patch cleans indenting and a few unused variables
in inst_binary() (probably leftovers from the past ?)

Signed-off-by: Michal Soltys <soltys@ziu.info>