Victor Lowther
16df64ef1f
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.
2009-08-20 07:28:04 -05:00
Victor Lowther
f76ef3aa3d
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.
2009-08-19 22:21:29 -05:00
Victor Lowther
59c88f499f
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.
2009-08-19 22:21:07 -05:00
Harald Hoyer
afe25d0ccc
{crypt,dmraid,,lvm,mdraid}/check use blkid if no vol_id found
2009-08-19 17:11:29 +02:00
Harald Hoyer
bdccc34e7e
Makefile: add hostimage target for a hostonly image
...
call it with root priviledges
2009-08-19 17:10:38 +02:00
Harald Hoyer
495a964322
nbd/check: moved host-only checks and added ";"
2009-08-19 17:09:53 +02:00
Harald Hoyer
9defc609e8
dracut-functions: check for existance of slave devices before opening it
2009-08-19 17:08:57 +02:00
Harald Hoyer
68b26290f0
udev-rules: install vol_id
2009-08-19 11:12:42 +02:00
Harald Hoyer
d41f7ae750
rsyslogd-start.sh: read correct filters file
2009-08-19 10:59:37 +02:00
Marc Grimme
e15bc1f330
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
2009-08-19 10:40:02 +02:00
Jeremy Katz
a607b7d4b8
Fix syntax error in conditional
...
Fix a typo in the conditionals. Not sure how I didn't notice these
before
2009-08-19 10:34:06 +02:00
Victor Lowther
1a4c4015bc
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.
2009-08-16 18:22:21 -05:00
Victor Lowther
d7df77d172
Modified lvm hostonly checking to use dracut-functions
2009-08-16 15:29:59 -05:00
Victor Lowther
7e2b4f8367
Make mdraid checking use common functionality in dracut-functions
2009-08-16 15:29:59 -05:00
Victor Lowther
bc9ae19deb
Make dmraid checking use common functionality in dracut-functions
2009-08-16 15:29:50 -05:00
Victor Lowther
17829e94aa
Move common rootfs finding and backing store tree checking to dracut-functions
2009-08-16 15:29:50 -05:00
Victor Lowther
e0dca0e43c
Minor spacing fixups in dracut-finctions
2009-08-16 15:29:49 -05:00
Victor Lowther
4e207ec862
The network check script sources , so it must use /bin/bash
2009-08-16 15:29:49 -05:00
Victor Lowther
b5ccf21d2b
Make the lvm check script really check to see if root is on an lvm device
...
somehow when run in hostonly mode.
2009-08-16 15:29:42 -05:00
Victor Lowther
62bde8ed7e
make mdraid check script really check to see of the rootfs is on an
...
mdraid block device when run in hostonly mode.
2009-08-16 15:29:27 -05:00
Victor Lowther
dc670134f8
Make hostonly check for dmraid only pass if root is really on
...
a dmraid volume somehow.
2009-08-16 15:29:18 -05:00
Victor Lowther
39d6cb5df4
Make hostonly checking in 90crypt only pass if root is really on an
...
encrypted block device somewhere along the chain.
2009-08-16 15:28:56 -05:00
Victor Lowther
ddfd1d10a0
Split kernel module loading into smaller chunks.
...
This prepares to more tightly integrate dracut-gencmdline with the
rest of the dracut scripts
2009-08-16 15:28:45 -05:00
Victor Lowther
0c1a8ebc37
More quotation fixups in dracut-functions
2009-08-15 10:56:36 -05:00
Victor Lowther
bd4c4bcb76
Simplify dracut_install a bit, an make a minor fixup to check_module_deps
2009-08-15 07:55:59 -05:00
Victor Lowther
161efa1f40
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.
2009-08-15 07:38:26 -05:00
Victor Lowther
ebdddd29d3
Get rid of redundant NONL stuff in dracut-gencmdline
2009-08-14 22:54:38 -05:00
Victor Lowther
2790d5b2ed
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.
2009-08-14 22:51:25 -05:00
Victor Lowther
98adb06ea3
No need to quote variable expansion in [[ ]]
2009-08-14 22:36:41 -05:00
Victor Lowther
0b90cfaa9f
Bashify drivers_dir check
2009-08-14 22:31:04 -05:00
Harald Hoyer
ded38dbfbd
dracut.spec add NEWS to dracut and dracut-tools
2009-08-14 18:03:33 +02:00
Harald Hoyer
5d12f1a485
version 0.9
2009-08-14 17:59:43 +02:00
Harald Hoyer
7addf9d430
rpmversion: dash does not want as I do
2009-08-14 17:47:07 +02:00
Harald Hoyer
6d0480426d
rpmversion: fixed rpm query
2009-08-14 17:37:00 +02:00
Harald Hoyer
5a8b143888
TEST-10-RAID: new mdadm is picky about partitions
2009-08-14 17:27:50 +02:00
Michael Ploujnikov
5bf0b329c9
update the rdbreak breakpoint list
2009-08-14 17:27:50 +02:00
Harald Hoyer
51123629d7
dracut.spec: add more plymouth themes
2009-08-14 17:27:50 +02:00
Harald Hoyer
0ad78ae8e7
dracut.spec: requieres dash
...
how could we forget to add that?? :-)
2009-08-14 17:27:50 +02:00
Harald Hoyer
1c6e9e5c0a
new module 10rpmversion
...
outputs rpm version of dracut
2009-08-14 17:27:50 +02:00
Harald Hoyer
0b610a002c
removed 90dmsetup
2009-08-14 17:27:49 +02:00
Harald Hoyer
0f1361ee1c
udev-rules: hardcode helper binaries
2009-08-14 17:27:49 +02:00
Harald Hoyer
b806825d2a
nfs: only install libnfsidmap_nsswitch.so of all libnfsidmap_*.so
2009-08-14 17:27:49 +02:00
Harald Hoyer
f905c1d7d6
dmsquash-live: install the "real" eject
...
eject might be a symlink to consolehelper
2009-08-14 17:27:49 +02:00
Harald Hoyer
926b2c3337
dracut: set ownership to root.root for all files
2009-08-14 17:27:49 +02:00
Harald Hoyer
fc900b8be4
dracut-gencmdline: fix LUKS_UUID and MD_UUID output
2009-08-14 16:21:03 +02:00
Harald Hoyer
88838bf238
network: exclude kernel modules, which need iw_handler_get_spy
2009-08-14 16:21:03 +02:00
Harald Hoyer
ed2de829e1
cryptroot-ask.sh: fix rd_LUKS_UUID handling
2009-08-14 16:21:03 +02:00
Harald Hoyer
ff34c9dcd4
10redhat-i18n: remove unnecessary files
2009-08-14 16:21:03 +02:00
Harald Hoyer
3d4641fd98
add rdinfo command line parameter
...
print informational output though "quiet" is set
2009-08-14 16:21:03 +02:00
Harald Hoyer
860ace56f8
inst_simple(): add -p flag to cp
2009-08-13 14:22:54 +02:00