Victor Lowther [Thu, 20 Aug 2009 12:28:04 +0000 (07:28 -0500)]
Abstract out vol_id vs. blkid usage.
vol_id seems to be going away, and blkid can be used as a drop-in replacement
for it.
Victor Lowther [Thu, 20 Aug 2009 03:20:12 +0000 (22:20 -0500)]
Speed up loading block drivers when running with --hostonly
Instead of grovelling through all the modules available for the
kernel looking for block devices, only look at the modules that are
actually loaded. This speeds things up by a rather large amount
when generating the initramfs with --hostonly.
While we are at it, only load the filesystem module that will actually
be used for the root filesystem when running in --hostonly instead
of all the filesystem modules that happen to be loaded at the time.
Victor Lowther [Wed, 19 Aug 2009 20:51:54 +0000 (15:51 -0500)]
Abstract out vol_id vs. blkid usage
Since different distros may or may not use vol_id in udev, and blkid
is generally replacing vol_id, abstract them out into a function which
tries to use vol_id first and blkid second, on the assumption that
blkid can take over for vol_id if vol_id is no longer there.
Harald Hoyer [Wed, 19 Aug 2009 15:11:29 +0000 (17:11 +0200)]
{crypt,dmraid,,lvm,mdraid}/check use blkid if no vol_id found
Harald Hoyer [Wed, 19 Aug 2009 15:10:38 +0000 (17:10 +0200)]
Makefile: add hostimage target for a hostonly image
call it with root priviledges
Harald Hoyer [Wed, 19 Aug 2009 15:09:53 +0000 (17:09 +0200)]
nbd/check: moved host-only checks and added ";"
Harald Hoyer [Wed, 19 Aug 2009 15:08:57 +0000 (17:08 +0200)]
dracut-functions: check for existance of slave devices before opening it
Harald Hoyer [Wed, 19 Aug 2009 09:12:42 +0000 (11:12 +0200)]
udev-rules: install vol_id
Harald Hoyer [Wed, 19 Aug 2009 08:59:37 +0000 (10:59 +0200)]
rsyslogd-start.sh: read correct filters file
Marc Grimme [Wed, 19 Aug 2009 08:40:02 +0000 (10:40 +0200)]
Syslog support for dracut
This module provides syslog functionality in the initrd.
This is especially interesting when complex configuration being
used to provide access to the device the rootfs resides on.
When this module is installed into the ramfs it is triggered by
the udev event from the nic being setup (online).
Then if syslog is configured it is started and will forward all
kernel messages to the given syslog server.
The syslog implementation is detected automatically by finding the
apropriate binary with the following order:
rsyslogd
syslogd
syslog-ng
Then if detected the syslog.conf is generated and syslog is started.
Bootparameters:
syslogserver=ip Where to syslog to
sysloglevel=level What level has to be logged
syslogtype=rsyslog|syslog|syslogng
Don't auto detect syslog but set it
Jeremy Katz [Tue, 18 Aug 2009 17:59:19 +0000 (13:59 -0400)]
Fix syntax error in conditional
Fix a typo in the conditionals. Not sure how I didn't notice these
before
Victor Lowther [Sun, 16 Aug 2009 23:22:21 +0000 (18:22 -0500)]
Modify nbd hostonly checking to use check_block_and_slaves.
This allows hostonly nbd checking to work in more exotic situations,
such as mdraid/dmraid/lvm/crypt on top of nbd.
Victor Lowther [Sun, 16 Aug 2009 16:02:07 +0000 (11:02 -0500)]
Modified lvm hostonly checking to use dracut-functions
Victor Lowther [Sun, 16 Aug 2009 15:35:15 +0000 (10:35 -0500)]
Make mdraid checking use common functionality in dracut-functions
Victor Lowther [Sun, 16 Aug 2009 15:32:48 +0000 (10:32 -0500)]
Make dmraid checking use common functionality in dracut-functions
Victor Lowther [Sun, 16 Aug 2009 15:29:21 +0000 (10:29 -0500)]
Move common rootfs finding and backing store tree checking to dracut-functions
Victor Lowther [Sun, 16 Aug 2009 13:18:58 +0000 (08:18 -0500)]
Minor spacing fixups in dracut-finctions
Victor Lowther [Sun, 16 Aug 2009 13:16:49 +0000 (08:16 -0500)]
The network check script sources , so it must use /bin/bash
Victor Lowther [Sat, 15 Aug 2009 21:54:20 +0000 (16:54 -0500)]
Make the lvm check script really check to see if root is on an lvm device
somehow when run in hostonly mode.
Victor Lowther [Sun, 16 Aug 2009 20:29:27 +0000 (15:29 -0500)]
make mdraid check script really check to see of the rootfs is on an
mdraid block device when run in hostonly mode.
Victor Lowther [Sat, 15 Aug 2009 21:46:34 +0000 (16:46 -0500)]
Make hostonly check for dmraid only pass if root is really on
a dmraid volume somehow.
Victor Lowther [Sat, 15 Aug 2009 21:25:07 +0000 (16:25 -0500)]
Make hostonly checking in 90crypt only pass if root is really on an
encrypted block device somewhere along the chain.
Victor Lowther [Sat, 15 Aug 2009 19:17:19 +0000 (14:17 -0500)]
Split kernel module loading into smaller chunks.
This prepares to more tightly integrate dracut-gencmdline with the
rest of the dracut scripts
Victor Lowther [Sat, 15 Aug 2009 15:56:36 +0000 (10:56 -0500)]
More quotation fixups in dracut-functions
Victor Lowther [Sat, 15 Aug 2009 12:55:59 +0000 (07:55 -0500)]
Simplify dracut_install a bit, an make a minor fixup to check_module_deps
Victor Lowther [Sat, 15 Aug 2009 12:38:26 +0000 (07:38 -0500)]
Some quotation cleanups in dracut-functions.
Quotes are generally not needed in when assigning one variable to another,
and are also not needed inside [[ ]] comaprisons, as word splitting and
pathname expansion are not performed in these cases.
Victor Lowther [Sat, 15 Aug 2009 03:54:38 +0000 (22:54 -0500)]
Get rid of redundant NONL stuff in dracut-gencmdline
Victor Lowther [Sat, 15 Aug 2009 03:51:25 +0000 (22:51 -0500)]
Update dracut-catimages to make it much more robust in the face of
image filenames with spaces, carriage returns, and other such nasty
characters in them. Bash arrays are very useful for these sorts of things.
Victor Lowther [Sat, 15 Aug 2009 03:32:27 +0000 (22:32 -0500)]
No need to quote variable expansion in [[ ]]
Victor Lowther [Sat, 15 Aug 2009 03:31:04 +0000 (22:31 -0500)]
Bashify drivers_dir check
Harald Hoyer [Fri, 14 Aug 2009 16:02:51 +0000 (18:02 +0200)]
dracut.spec add NEWS to dracut and dracut-tools
Harald Hoyer [Fri, 14 Aug 2009 15:59:43 +0000 (17:59 +0200)]
version 0.9
Harald Hoyer [Fri, 14 Aug 2009 15:47:07 +0000 (17:47 +0200)]
rpmversion: dash does not want as I do
Harald Hoyer [Fri, 14 Aug 2009 15:37:00 +0000 (17:37 +0200)]
rpmversion: fixed rpm query
Harald Hoyer [Fri, 14 Aug 2009 15:25:37 +0000 (17:25 +0200)]
TEST-10-RAID: new mdadm is picky about partitions
Michael Ploujnikov [Thu, 13 Aug 2009 13:40:44 +0000 (09:40 -0400)]
update the rdbreak breakpoint list
Harald Hoyer [Fri, 14 Aug 2009 14:30:38 +0000 (16:30 +0200)]
dracut.spec: add more plymouth themes
Harald Hoyer [Fri, 14 Aug 2009 14:29:20 +0000 (16:29 +0200)]
dracut.spec: requieres dash
how could we forget to add that?? :-)
Harald Hoyer [Fri, 14 Aug 2009 14:24:58 +0000 (16:24 +0200)]
new module 10rpmversion
outputs rpm version of dracut
Harald Hoyer [Fri, 14 Aug 2009 14:20:33 +0000 (16:20 +0200)]
removed 90dmsetup
Harald Hoyer [Fri, 14 Aug 2009 14:20:07 +0000 (16:20 +0200)]
udev-rules: hardcode helper binaries
Harald Hoyer [Fri, 14 Aug 2009 14:19:06 +0000 (16:19 +0200)]
nfs: only install libnfsidmap_nsswitch.so of all libnfsidmap_*.so
Harald Hoyer [Fri, 14 Aug 2009 14:18:27 +0000 (16:18 +0200)]
dmsquash-live: install the "real" eject
eject might be a symlink to consolehelper
Harald Hoyer [Fri, 14 Aug 2009 14:18:05 +0000 (16:18 +0200)]
dracut: set ownership to root.root for all files
Harald Hoyer [Fri, 14 Aug 2009 07:44:03 +0000 (09:44 +0200)]
dracut-gencmdline: fix LUKS_UUID and MD_UUID output
Harald Hoyer [Fri, 14 Aug 2009 14:12:02 +0000 (16:12 +0200)]
network: exclude kernel modules, which need iw_handler_get_spy
Harald Hoyer [Fri, 14 Aug 2009 14:11:35 +0000 (16:11 +0200)]
cryptroot-ask.sh: fix rd_LUKS_UUID handling
Harald Hoyer [Fri, 14 Aug 2009 14:10:28 +0000 (16:10 +0200)]
10redhat-i18n: remove unnecessary files
Harald Hoyer [Fri, 14 Aug 2009 14:05:18 +0000 (16:05 +0200)]
add rdinfo command line parameter
print informational output though "quiet" is set
Harald Hoyer [Thu, 13 Aug 2009 12:22:54 +0000 (14:22 +0200)]
inst_simple(): add -p flag to cp
Harald Hoyer [Fri, 7 Aug 2009 10:08:31 +0000 (12:08 +0200)]
plymouth: make the daemon attach to the session/terminal
https://bugzilla.redhat.com/show_bug.cgi?id=516104
it can be so simple :-)
Harald Hoyer [Fri, 7 Aug 2009 10:08:04 +0000 (12:08 +0200)]
dracut.spec: require versioned util-linux-ng instead of switch_root
Warren Togami [Thu, 6 Aug 2009 15:07:43 +0000 (11:07 -0400)]
Remove ugly hack
Harald Hoyer [Thu, 6 Aug 2009 13:01:38 +0000 (15:01 +0200)]
version 0.8
Harald Hoyer [Thu, 6 Aug 2009 13:01:24 +0000 (15:01 +0200)]
add NEWS
Harald Hoyer [Wed, 5 Aug 2009 14:28:52 +0000 (16:28 +0200)]
plymouth-populate-initrd: do not install label.so
https://bugzilla.redhat.com/show_bug.cgi?id=515589
It ends up installing the label.so control plugin which isn't supposed
to get installed into the initrd. this makes cairo and libX11 and all sorts of
things move into the initrd that aren't supposed to.
Harald Hoyer [Wed, 5 Aug 2009 14:26:52 +0000 (16:26 +0200)]
dracut.spec: version for module-init-tools requirement
https://bugzilla.redhat.com/show_bug.cgi?id=515630
dracut-0.7-1 uses a modprobe option (-d) that exists only in
module-init-tools >= 3.7-9, but the 'Requires: module-init-tools'
of dracut is not version-specific.
Thilo Bangert [Fri, 24 Jul 2009 20:01:35 +0000 (22:01 +0200)]
support for unusual terminfo location
the following patch makes the 95terminfo module work on gentoo.
Warren Togami [Tue, 4 Aug 2009 21:15:39 +0000 (17:15 -0400)]
Temporary hack to provide ifcfg files to OS in a way that might work with existing initscripts.
I am not happy about this. It shouldn't be the job of dracut to do this. The initscripts should
deal with the plain /dev/.initramfs/ifcfg/ directory accordingly. Doing this for now because
notting insists upon it. We need to clean this up after we network option passing working.
Harald Hoyer [Tue, 4 Aug 2009 14:36:18 +0000 (16:36 +0200)]
dracut.spec: fixed requirements for dracut-tools
Jeremy Katz [Wed, 22 Jul 2009 20:31:24 +0000 (16:31 -0400)]
Parse options earlier for live root
Jeremy Katz [Wed, 22 Jul 2009 20:14:00 +0000 (16:14 -0400)]
Support resetting the live overlay
If you're using a persistent overlay, you might want to reset it
at boot time if it has become corrupted somehow. Support using
reset_overlay as a command line optino to do so
Jeremy Katz [Wed, 22 Jul 2009 20:16:59 +0000 (16:16 -0400)]
And support passing in the persistent overlay
The persistent overlay can be specified with an overlay= argument
on the command line. We'll probably try to move this into the
root= syntax soon, but this is the old way that works
Jeremy Katz [Wed, 22 Jul 2009 20:12:54 +0000 (16:12 -0400)]
Support passing live_ram
live_ram allows you to load the entirety of the live image into
RAM and run it from there rather than off of the block device
Jeremy Katz [Wed, 22 Jul 2009 20:11:54 +0000 (16:11 -0400)]
Support passing the live_dir with live_dir=
The live image is assumed to be under LiveOS/ unless live_dir
is passed specifying otherwise
Jeremy Katz [Wed, 22 Jul 2009 20:08:49 +0000 (16:08 -0400)]
Support old syntax
livecd-creator previously added 'liveimg' and used root=CDLABEL=;
it's easy enough to support that old syntax for now at least
and it will make it easier to get people testing
Jeremy Katz [Wed, 22 Jul 2009 20:06:29 +0000 (16:06 -0400)]
Support checking the iso
Support checking the iso image with checkisomd5 if available
Jeremy Katz [Wed, 22 Jul 2009 19:31:18 +0000 (15:31 -0400)]
Add basic support for dmsquashed live images
Fedora/Red Hat live images are implemented as an ext3fs inside of
a squashfs. Writability is achieved with a device-mapper snapshot
on top of that.
This gives the basic support without a lot of things like persistent
overlays, iso md5sum checking, etc and also with a new basic syntax
that has to be specified as root=live:LABEL=...
Sergey Fionov [Sat, 1 Aug 2009 07:52:16 +0000 (11:52 +0400)]
Fix full pathname condition in find_library
Hello,
Now a fact that the path is full is checked by
[[ -x $1 ]]
But if the working directory is /bin or a directory with a file named
"mount",
this condition will be met for "inst mount", and "mount" will not be copied
into initrd at all.
Harald Hoyer [Tue, 4 Aug 2009 09:36:06 +0000 (11:36 +0200)]
90mdraid/parse-md.sh: removed bashism
Warren Togami [Mon, 3 Aug 2009 18:26:26 +0000 (14:26 -0400)]
dracut requires bzip2
Harald Hoyer [Fri, 31 Jul 2009 11:56:55 +0000 (13:56 +0200)]
iscsiroot: check real root if it is block:...
Harald Hoyer [Fri, 31 Jul 2009 11:22:58 +0000 (13:22 +0200)]
dracut.8: fixed iscsi username/pw documentation
Hans de Goede [Fri, 31 Jul 2009 08:31:16 +0000 (10:31 +0200)]
Implement extended iscsi: rfc4173 syntax which allows specifying credentials
As discussed before, it would be nice to be able to specify
the iscsi chap credentials inside the netroot=iscsi:.....
syntax, this patch implements this in a backwards compatible way, like
this:
iscsi:username:pass@127.0.0.1::3260::iqn.2009-01.com.example:testdisk
iscsi:username:pass:reverse:pass@127.0.0.1::3260::iqn.2009-01.com.example:test
The only downside is that the backwards compatibility is broken when there
is an @ in the iscsi target name (very unlikely), that can still be used,
but only like this:
iscsi:@192.168.1.100::3260::iqn.2009-01.com.example:testdi@sk
Harald Hoyer [Fri, 31 Jul 2009 10:39:23 +0000 (12:39 +0200)]
40network/installkernel: do not install isdn and uwb modules
Harald Hoyer [Fri, 31 Jul 2009 10:38:34 +0000 (12:38 +0200)]
90kernel-modules/installkernel: do not install fs/ocfs2 filesystems
Harald Hoyer [Fri, 31 Jul 2009 10:37:50 +0000 (12:37 +0200)]
nfs: only install libnss_*.so which are used by nsswitch.conf
Harald Hoyer [Fri, 31 Jul 2009 10:37:22 +0000 (12:37 +0200)]
dracut.spec: removed duplicate requirements
Harald Hoyer [Thu, 30 Jul 2009 15:05:49 +0000 (17:05 +0200)]
kernel-modules: add modules for virtio devices
Harald Hoyer [Thu, 30 Jul 2009 15:12:08 +0000 (17:12 +0200)]
iscsi: manually load the iscsi_ibft kernel module
Harald Hoyer [Thu, 30 Jul 2009 14:57:30 +0000 (16:57 +0200)]
iscsi: install iscsi_ibft kernel module
Harald Hoyer [Thu, 30 Jul 2009 14:14:09 +0000 (16:14 +0200)]
iscsiroot: fixed udev rules for iscsi_firmware
Harald Hoyer [Thu, 30 Jul 2009 14:11:52 +0000 (16:11 +0200)]
dracut.spec: no more switch_root for >= F12 and Require "which"
Harald Hoyer [Thu, 30 Jul 2009 14:11:11 +0000 (16:11 +0200)]
add udev rules for iscsi_firmware
Warren Togami [Thu, 30 Jul 2009 13:27:09 +0000 (09:27 -0400)]
There is only one resolv.conf.
Warren Togami [Wed, 29 Jul 2009 20:54:53 +0000 (16:54 -0400)]
Mark the other ifcfg file when bridges are used.
Warren Togami [Wed, 29 Jul 2009 18:07:08 +0000 (14:07 -0400)]
Need some way of differentiating these interfaces as being netboot.
Harald Hoyer [Tue, 28 Jul 2009 16:27:37 +0000 (18:27 +0200)]
getarg()/getargs(): check existance of /etc/cmdline before reading it
Warren Togami [Mon, 27 Jul 2009 19:54:21 +0000 (15:54 -0400)]
Use standard ifcfg filenames, put them into an ifcfg directory.
Warren Togami [Mon, 27 Jul 2009 17:16:51 +0000 (13:16 -0400)]
--strip requires file
Harald Hoyer [Fri, 24 Jul 2009 11:15:43 +0000 (13:15 +0200)]
version 0.7
Harald Hoyer [Fri, 24 Jul 2009 13:48:20 +0000 (15:48 +0200)]
strip binaries in initramfs
--strip
strip binaries in the initramfs (default)
--nostrip
do not strip binaries in the initramfs
Harald Hoyer [Fri, 24 Jul 2009 13:12:47 +0000 (15:12 +0200)]
dracut/dracut-gencmdline: fixed copyright header
Harald Hoyer [Fri, 24 Jul 2009 11:14:52 +0000 (13:14 +0200)]
add dracut-catimages
Usage: ./dracut-catimages [OPTION]... <initramfs> <base image>
[<image>...]
Creates initial ramdisk image by concatenating several images from the
command
line and /boot/dracut/
-f, --force Overwrite existing initramfs file.
-i, --imagedir Directory with additional images to add
(default: /boot/dracut/)
-o, --overlaydir Overlay directory, which contains files that
will be used to create an additional image
--nooverlay Do not use the overlay directory
--noimagedir Do not use the additional image directory
-h, --help This message
--debug Output debug information of the build process
-v, --verbose Verbose output during the build process
Harald Hoyer [Fri, 24 Jul 2009 11:42:10 +0000 (13:42 +0200)]
dracut-lib: getarg(), getargs() read command line also from /etc/cmdline
Also honor parameters in /etc/cmdline.
getarg(): If the argument is first fround in /proc/cmdline, then it is
used
Harald Hoyer [Fri, 24 Jul 2009 11:10:55 +0000 (13:10 +0200)]
add source_conf for static configuration variables
source_conf sources all *.conf files of a directory
init will now source all /etc/conf.d/*.conf files
Harald Hoyer [Fri, 24 Jul 2009 11:09:57 +0000 (13:09 +0200)]
dracut: usage(): break line for 80 chars
Warren Togami [Fri, 24 Jul 2009 19:26:33 +0000 (15:26 -0400)]
With NFS root, it is possible /tmp/net.ifaces might not exist during pre-pivot.
- udevadm settle will wait for it if necessary.
- Move write-ifcfg.sh later during pre-pivot to reduce likelihood of settling being necessary.
Harald Hoyer [Fri, 24 Jul 2009 10:06:12 +0000 (12:06 +0200)]
dracut.8: correct manpage entry for ip=
Harald Hoyer [Fri, 24 Jul 2009 09:52:15 +0000 (11:52 +0200)]
dracut.8: corrections of parameters and fixed typos