Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Trivial bashification and minor code rearrangement for initramfs compression.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Prettify the option setting loop in dracut.
THis just makes the args line up all nice and pretty.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Bashify mkinitrd-dracut.sh, introduce read_arg.
Hack up argument processing in dracut and mkinitrd-dracut.sh to use
read_arg to flexibly process arguments.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Bashify error() and usage() in mkinitrd-dracut.sh
Some more trivial bashification.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Just test the status of the cpio-and-compress pipe directly.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Add support for bzip2 and xz compressed initramfs images.
Current kernels know how to uncompress bzip2 and xz, so use them for compressing
the initramfs if asked. The more compression the merrier.
Also add support for generating uncompressed images, although they
are usually not what you want.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
We have $UID, use it instead of $(id -u)
No point in spawning a command and parsing its output when the UID
is already in the environment.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Flatten our check to ensure that depmod works.
No need for a nested if here.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Shorten permission checking to ensure we can actually write our initramfs.
These tests can be combined into an if... elif... elif... statement, and
that makes it clear they are all part of the same test.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Bashify the code that actually sources out config files.
Just some trivial bashification.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Clean up some conditional checking when trying to find our config files.
No point in checking the same condition twice when compound commands will do.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Get rid of unneeded dirname calls.
Use parameter expansion instead.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Trivial cleanups in dracut-functions
This is a patch series I have been playing with for awhile.
It cleans up some of the dracut code and adds a PKGBUILD file to make
it easier to use in Arch Linux.
Harald Hoyer [Fri, 13 Aug 2010 09:26:34 +0000 (11:26 +0200)]
plymouth: udev trigger with action=add
Harald Hoyer [Mon, 9 Aug 2010 14:28:38 +0000 (16:28 +0200)]
version inc
Harald Hoyer [Mon, 9 Aug 2010 13:57:55 +0000 (15:57 +0200)]
version 007
Harald Hoyer [Mon, 9 Aug 2010 13:56:47 +0000 (15:56 +0200)]
NEWS: update for 007
Harald Hoyer [Mon, 9 Aug 2010 14:12:23 +0000 (16:12 +0200)]
dracut.spec: add dracut.kernel man page
Harald Hoyer [Mon, 9 Aug 2010 14:10:54 +0000 (16:10 +0200)]
dracut.spec: build require docbook tools
Harald Hoyer [Mon, 9 Aug 2010 14:06:02 +0000 (16:06 +0200)]
dracut.spec: remove gentoo specific modules
Harald Hoyer [Mon, 9 Aug 2010 14:03:20 +0000 (16:03 +0200)]
dracut.spec s/bootchartd/bootchart
Harald Hoyer [Mon, 9 Aug 2010 14:01:18 +0000 (16:01 +0200)]
dracut.spec: install fedora.conf.example
Harald Hoyer [Mon, 9 Aug 2010 11:24:08 +0000 (13:24 +0200)]
crypt: depend on dm
Amadeusz Żołnowski [Mon, 9 Aug 2010 10:44:05 +0000 (12:44 +0200)]
add module gensplash
Amadeusz Żołnowski [Sun, 8 Aug 2010 18:07:00 +0000 (20:07 +0200)]
10i18n: --quiet for loadkeys
Harald Hoyer [Mon, 9 Aug 2010 11:09:13 +0000 (13:09 +0200)]
plymouth: load dm_crypt module
Harald Hoyer [Fri, 6 Aug 2010 16:15:51 +0000 (18:15 +0200)]
Makefile: install dracut.kernel.7
Harald Hoyer [Fri, 6 Aug 2010 14:06:06 +0000 (16:06 +0200)]
AUTHORS update
Harald Hoyer [Fri, 6 Aug 2010 13:38:52 +0000 (15:38 +0200)]
manpage update
Harald Hoyer [Fri, 6 Aug 2010 13:32:08 +0000 (15:32 +0200)]
manpage update
Harald Hoyer [Fri, 6 Aug 2010 11:54:34 +0000 (13:54 +0200)]
dracut: add --fstab, to ignore /proc/self/mountinfo
Harald Hoyer [Fri, 6 Aug 2010 11:53:24 +0000 (13:53 +0200)]
manpage xml: changed DTD to docbook 4.5
Amadeusz Żołnowski [Fri, 6 Aug 2010 11:14:18 +0000 (13:14 +0200)]
dracut.kernel.7.xml: updated I18N and LUKS sections
10i18n/README: typo corrected
Amadeusz Żołnowski [Fri, 6 Aug 2010 09:49:50 +0000 (11:49 +0200)]
Makefile: use $(MAKE) and $(RM) instead of make and rm -f
See: http://www.gnu.org/software/make/manual/make.html#MAKE-Variable
Harald Hoyer [Fri, 6 Aug 2010 09:46:55 +0000 (11:46 +0200)]
fedora.conf moved back to fedora.conf.example
Harald Hoyer [Fri, 6 Aug 2010 09:46:39 +0000 (11:46 +0200)]
manpages: changed to UTF-8
Harald Hoyer [Thu, 5 Aug 2010 17:13:16 +0000 (19:13 +0200)]
manpages: add note, that host-only mode does not work in chroot()
Harald Hoyer [Thu, 5 Aug 2010 16:59:51 +0000 (18:59 +0200)]
dracut-functions: use /proc/self/mountinfo, instead of /proc/mounts
1. it's easier to get the major:minor
2. it's more failsafe in a chroot() (rescue CD case)
Andrey Borzenkov [Thu, 5 Aug 2010 16:06:57 +0000 (20:06 +0400)]
Fix ahci detection in kernel 2.6.35
Kernel 2.6.35 (may be, earlier) split ahci into libahci.ko and ahci.ko
and added ahci_platform.ko. As a result, drivers ahci and ahci_platform
do not contain any symbol that are checked for storage modules (it is
libahci.ko that references ata_scsi_ioctl now). So add additional
symbol ahci_init_controller; it seems this is expected to be called by
every driver based on libahci.ko.
Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
Harald Hoyer [Thu, 5 Aug 2010 16:12:38 +0000 (18:12 +0200)]
manpage corrections
Harald Hoyer [Thu, 5 Aug 2010 16:12:08 +0000 (18:12 +0200)]
dracut: let --fwdir be specified multiple times
Harald Hoyer [Thu, 5 Aug 2010 14:38:49 +0000 (16:38 +0200)]
documentation: moved to docbook man pages
Harald Hoyer [Thu, 5 Aug 2010 06:47:17 +0000 (08:47 +0200)]
fips: udev trigger with action=add
Amadeusz Żołnowski [Wed, 4 Aug 2010 16:15:19 +0000 (18:15 +0200)]
add option --ignore-kernel-modules
Instead of adding modprobe and rmmod, create symlinks to /bin/true to
don't produce unnecessary errors. Anyway it's a workaround for
following desired behaviour: modprobe tries to insert module only if
it's not built into kernel
Andrey Borzenkov [Sun, 9 May 2010 18:23:58 +0000 (22:23 +0400)]
Harden check for used modules in hostonly mode
Make sure that we do not accept module name which is substring of
some other module name. This resulted in piix being mistakenly loaded
together with ata_piix. It completely broke DVD access here.
Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
Amadeusz Żołnowski [Mon, 26 Jul 2010 08:15:40 +0000 (10:15 +0200)]
10i18n: exit if console already initialized
Harald Hoyer [Wed, 4 Aug 2010 16:27:48 +0000 (18:27 +0200)]
renamed 00bootchartd to 00bootchart
Harald Hoyer [Wed, 4 Aug 2010 15:46:54 +0000 (17:46 +0200)]
dracut-functions: fixed --omit
Harald Hoyer [Mon, 2 Aug 2010 13:58:48 +0000 (15:58 +0200)]
init: create /dev/.udev/rules.d with correct permissions
Harald Hoyer [Mon, 2 Aug 2010 13:26:55 +0000 (15:26 +0200)]
mkdir /dev/.udev/rules.d with mode 0755
Harald Hoyer [Mon, 2 Aug 2010 12:54:09 +0000 (14:54 +0200)]
NEWS: update for version 007
Harald Hoyer [Mon, 2 Aug 2010 12:53:47 +0000 (14:53 +0200)]
manpages: updated for /etc/dracut.conf.d
Harald Hoyer [Mon, 2 Aug 2010 12:16:10 +0000 (14:16 +0200)]
dracut-lib.sh: fixed getarg for nonexistent parameters
getarg returned an old "$val" for nonexistent parameters, because "val"
was not local
Harald Hoyer [Mon, 2 Aug 2010 11:32:09 +0000 (13:32 +0200)]
mdraid: try to start degraded arrays in various ways
Harald Hoyer [Mon, 2 Aug 2010 11:31:36 +0000 (13:31 +0200)]
mdraid: remove mdadm.conf on rd_NO_MDADMCONF
Harald Hoyer [Mon, 2 Aug 2010 11:30:21 +0000 (13:30 +0200)]
TEST-12-RAID-DEG: do not execute rd_NO_MDADMCONF tests
Harald Hoyer [Mon, 2 Aug 2010 09:58:48 +0000 (11:58 +0200)]
TEST-14-IMSM: fixed test
Harald Hoyer [Mon, 2 Aug 2010 09:36:05 +0000 (11:36 +0200)]
TEST-13-ENC-RAID-LVM: prepend "luks-" to rd_LUKS_UUID argument
Harald Hoyer [Mon, 2 Aug 2010 09:35:25 +0000 (11:35 +0200)]
mdraid: remove "local"
Harald Hoyer [Mon, 2 Aug 2010 09:28:16 +0000 (11:28 +0200)]
init: set old umask before switch_root
Harald Hoyer [Mon, 2 Aug 2010 09:26:49 +0000 (11:26 +0200)]
crypt: fix printf
Harald Hoyer [Mon, 2 Aug 2010 09:13:06 +0000 (11:13 +0200)]
TEST-12-RAID-DEG: double disk space
Harald Hoyer [Mon, 2 Aug 2010 09:12:42 +0000 (11:12 +0200)]
i18n: only source config files, if present
Harald Hoyer [Mon, 2 Aug 2010 09:05:11 +0000 (11:05 +0200)]
mdraid: --no-degraded not allowed with -I
Harald Hoyer [Mon, 2 Aug 2010 07:40:18 +0000 (09:40 +0200)]
dracut-functions: fix check=255 logic and dependencies
Harald Hoyer [Mon, 2 Aug 2010 08:01:59 +0000 (10:01 +0200)]
TEST: omit network module for non-network tests
Harald Hoyer [Mon, 2 Aug 2010 07:59:36 +0000 (09:59 +0200)]
dracut: let some arguments add up
Specifying multiple -a, -o, -m, -d, --add-drivers, --filesystems now
adds up.
Harald Hoyer [Mon, 2 Aug 2010 07:40:55 +0000 (09:40 +0200)]
crypt: loop until all non-busy crypt devs closed
Harald Hoyer [Mon, 2 Aug 2010 07:39:49 +0000 (09:39 +0200)]
debug: add fsck to debug module
Harald Hoyer [Mon, 2 Aug 2010 07:39:13 +0000 (09:39 +0200)]
dracut: use hardlink, if available to safe some space
Harald Hoyer [Mon, 2 Aug 2010 06:58:08 +0000 (08:58 +0200)]
version pre 7
Harald Hoyer [Mon, 2 Aug 2010 06:20:50 +0000 (08:20 +0200)]
dracut.spec: redhat-i18n -> i18n
Harald Hoyer [Mon, 2 Aug 2010 06:21:28 +0000 (08:21 +0200)]
dracut.spec: add bootchartd
Harald Hoyer [Mon, 2 Aug 2010 06:19:36 +0000 (08:19 +0200)]
dracut.spec: add dracut.conf.d/fedora.conf
Harald Hoyer [Thu, 29 Jul 2010 14:35:31 +0000 (16:35 +0200)]
crypt: strip "luks-" from rd_LUKS_UUID
Harald Hoyer [Wed, 28 Jul 2010 12:09:28 +0000 (14:09 +0200)]
removed redundant 64-lvm.rules install
Thanks to Amadeusz Żołnowski, who found it.
Harald Hoyer [Tue, 27 Jul 2010 09:51:27 +0000 (11:51 +0200)]
dracut-functions: fix "-m -a" handling
Harald Hoyer [Fri, 23 Jul 2010 10:26:42 +0000 (12:26 +0200)]
crypt: remove emergency source of dracut-lib.sh
Harald Hoyer [Fri, 23 Jul 2010 10:20:32 +0000 (12:20 +0200)]
fcoe: add sleeps to fcoe-up
Harald Hoyer [Fri, 23 Jul 2010 10:16:11 +0000 (12:16 +0200)]
lvm: wait for all rd_LVM_LV and rd_LVM_VG specified to appear
Harald Hoyer [Fri, 23 Jul 2010 09:17:19 +0000 (11:17 +0200)]
mknod with mode and set umask for the rest
Harald Hoyer [Wed, 21 Jul 2010 12:25:42 +0000 (14:25 +0200)]
btrfs: add hostonly check
Harald Hoyer [Wed, 21 Jul 2010 12:21:47 +0000 (14:21 +0200)]
10i18n: fixed i18n_vars parsing
gather_vars() should replace "every" occurance of the seperator
Harald Hoyer [Wed, 21 Jul 2010 11:44:03 +0000 (13:44 +0200)]
selinux: fixed error handling for load-policy
{} | cmd opens a subshell for {}
Amadeusz Żołnowski [Tue, 13 Jul 2010 17:14:47 +0000 (19:14 +0200)]
90crypt: keys on external devices support
99base/dracut-lib.sh: new fun.: getoptcomma, foreach_uuid_until
Amadeusz Żołnowski [Tue, 13 Jul 2010 08:13:55 +0000 (10:13 +0200)]
10i18n: README corrected
Amadeusz Żołnowski [Tue, 13 Jul 2010 07:58:47 +0000 (09:58 +0200)]
README for 10i18n module
Amadeusz Żołnowski [Wed, 7 Jul 2010 14:39:09 +0000 (16:39 +0200)]
dracut-functions: additional symlinks for library files
rev_lib_symlinks: it's new
inst_library: creating additional symlinks for installed library files
Harald Hoyer [Wed, 21 Jul 2010 11:37:23 +0000 (13:37 +0200)]
bootchartd: do not enable bootchartd by default
users can always add "-a bootchartd" on image creation or add it
to /etc/dracut.conf.d/myconf.conf
Frederic Crozat [Tue, 13 Jul 2010 23:50:55 +0000 (01:50 +0200)]
bootchartd support
add preliminary bootchard support
Signed-off-by: Maarten Vanraes <maarten.vanraes@gmail.com>
Andrey Borzenkov [Tue, 13 Jul 2010 23:30:16 +0000 (01:30 +0200)]
conffile before confdir
conffile should be sourced before confdir
Signed-off-by: Maarten Vanraes <maarten.vanraes@gmail.com>
Harald Hoyer [Tue, 20 Jul 2010 09:24:37 +0000 (11:24 +0200)]
dracut: fixed stripping of kernel modules
Harald Hoyer [Tue, 20 Jul 2010 09:23:14 +0000 (11:23 +0200)]
multipath: install by default, but run only if wwids are present
Harald Hoyer [Mon, 12 Jul 2010 16:52:44 +0000 (18:52 +0200)]
dracut-lib.sh: getarg() returns the value of the last argument
a=0 a=1 a=2
$(getarg a) == "2"
Harald Hoyer [Mon, 12 Jul 2010 16:47:08 +0000 (18:47 +0200)]
cryptroot-ask: s/getargs rd_NO_CRYPTTAB/getarg rd_NO_CRYPTTAB/g
Harald Hoyer [Mon, 12 Jul 2010 14:33:14 +0000 (16:33 +0200)]
dracut.conf.d/fedora.conf: created
Harald Hoyer [Mon, 12 Jul 2010 14:32:32 +0000 (16:32 +0200)]
10i18n: fixed directory check logic
Harald Hoyer [Mon, 12 Jul 2010 14:16:57 +0000 (16:16 +0200)]
TEST-13-ENC-RAID: add check for rd_LUKS_UUID argument parsing
Harald Hoyer [Mon, 12 Jul 2010 14:16:39 +0000 (16:16 +0200)]
crypt: wait for all rd_LUKS_UUID disks to appear
Also give a hint in emergency, if one disk is not found.
Harald Hoyer [Mon, 12 Jul 2010 13:33:44 +0000 (15:33 +0200)]
dracut-lib: export RDDEBUG