Harald Hoyer
0b53ca70b6
Move all hooks to "$hookdir"
...
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
14 years ago
Harald Hoyer
c9f1e3d1f4
check for getarg() function before sourcing dracut-lib.sh
...
make use of "type getarg" to check, if we really need to source
dracut-lib.sh
14 years ago
Harald Hoyer
19f3a804e7
s#/dev/.run#/run#g
...
Move things where they really belong to.
14 years ago
Harald Hoyer
b177e9133e
move all /dev/.initramfs to /dev/.run/initramfs
...
We want all "/var/run" information to live in /dev/.run, until the real
root is mounted.
Therefore we mount a tmpfs on /dev/.run, which can/will be bind/move mounted
on /var/run later on.
14 years ago
Harald Hoyer
8ce58f1f42
add missing shebang
14 years ago
Harald Hoyer
71df3c4329
renamed module-info.sh to module-setup.sh
14 years ago
Harald Hoyer
95d2dabc25
replaced check,install,installkernel with module-info.sh
14 years ago
Harald Hoyer
1b434f1ba9
mdraid/parse-md.sh: create new rules, then mv to old one
...
If udevd is already running, then we should assemble the new rules files
in a seperate file first, before calling it *.rules
Resolves: rhbz#595096
14 years ago
Harald Hoyer
fa7ada31d0
new parameter option names with "rd.*" namespace
...
Renamed Options
Here is a list of options, which were used in dracut prior to
version 008, and their new replacement.
rdbreak
rd.break
rd_CCW
rd.ccw
rdcopystate
rd.copystate
rd_DASD_MOD
rd.dasd_mod.dasd
rd_DASD
rd.dasd
rdinitdebug rdnetdebug
rd.debug
rd_NO_DM
rd.dm=0
rd_DM_UUID
rd.dm.uuid
rdblacklist
rd.driver.blacklist
rdinsmodpost
rd.driver.post
rdloaddriver
rd.driver.pre
rd_NO_FSTAB
rd.fstab=0
rdinfo
rd.info
check
rd.live.check
rdlivedebug
rd.live.debug
live_dir
rd.live.dir
liveimg
rd.live.image
overlay
rd.live.overlay
readonly_overlay
rd.live.overlay.readonly
reset_overlay
rd.live.overlay.reset
live_ram
rd.live.ram
rd_NO_CRYPTTAB
rd.luks.crypttab=0
rd_LUKS_KEYDEV_UUID
rd.luks.keydev.uuid
rd_LUKS_KEYPATH
rd.luks.keypath
rd_NO_LUKS
rd.luks=0
rd_LUKS_UUID
rd.luks.uuid
rd_LUKS_UUID
rd.luks.uuid
rd_NO_LVMCONF
rd.lvm.conf
rd_LVM_LV
rd.lvm.lv
rd_NO_LVM
rd.lvm=0
rd_LVM_SNAPSHOT
rd.lvm.snapshot
rd_LVM_SNAPSIZE
rd.lvm.snapsize
rd_LVM_VG
rd.lvm.vg
rd_NO_MDADMCONF
rd.md.conf=0
rd_NO_MDIMSM
rd.md.imsm=0
rd_NO_MD
rd.md=0
rd_MD_UUID
rd.md.uuid
rd_NFS_DOMAIN
rd.nfs.domain
rd_NO_PLYMOUTH
rd.plymouth=0
rd_retry
rd.retry
rdshell
rd.shell
rd_NO_SPLASH
rd.splash
rdudevdebug
rd.udev.debug
rdudevinfo
rd.udev.info
rd_NO_ZFCPCONF
rd.zfcp.conf=0
rd_ZFCP
rd.zfcp
15 years ago
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
15 years ago
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
15 years ago
Harald Hoyer
3122e93350
mdraid: try to start degraded arrays in various ways
15 years ago
Harald Hoyer
21a7b84486
mdraid: remove mdadm.conf on rd_NO_MDADMCONF
15 years ago
Harald Hoyer
d7cc3f2ef5
mdraid: remove "local"
15 years ago
Harald Hoyer
d752c51b90
mdraid: --no-degraded not allowed with -I
15 years ago
Harald Hoyer
b6a7c09070
chmod 0755 *.sh
15 years ago
Andy Lutomirski
a3afcf2a5a
90mdraid dracut-functions: fix md raid hostonly detection
...
check_block_and_slaves looks at slaves but not parents.
15 years ago
Harald Hoyer
56f184310a
mdraid: try to start container childs manually with "mdadm -R"
15 years ago
Harald Hoyer
d8231fa5c2
mdraid: prefer /etc/mdadm.conf over /etc/mdadm/mdadm.conf
...
see https://bugzilla.redhat.com/show_bug.cgi?id=557339
https://bugzilla.redhat.com/show_bug.cgi?id=559073
15 years ago
Philippe Seewer
2e6b98c7f6
All module scripts should have a shebang
15 years ago
Harald Hoyer
8bfed103d8
mdraid: do not cleanup on auto assembly with mdadm.conf
16 years ago
Harald Hoyer
7a34efa5c4
md/dm/lvm: install pre-pivot cleanup hooks only if actually needed
...
- removed dmraid cleanup
- only call lvm cleanup, if no lvm.conf provided
- copy over lvm.conf by default
- add --nolvmconf --lvmconf parameters
16 years ago
Hans de Goede
d6a5b04043
Recognize nodmraid and noiswmd kernel cmdline options
...
Recognize nodmraid and noiswmd kernel cmdline options, for anaconda /
rc.sysinit / mkinitrd compatibility.
16 years ago
Hans de Goede
1de9edc06e
Do not stop / start udev exec-queue around "mdadm -As --run"
...
When assembling containers + embedded arrays from mdadm.conf,
mdadm needs the /dev/md# node for the container to assemble the
arrays within the container. Stopping the udev exec queue, results in
this node not getting created and mdadm failing to online the
arrays within the container.
Not having stop / start udev exec-queue around "mdadm -As --run" should
be safe as the exact same command is run from rc.sysinit without
any queue locking.
16 years ago
Harald Hoyer
0f7e10cef4
mdraid: save state dir for mdmon/mdadm for the real root
16 years ago
Harald Hoyer
24bac034d1
65-md-incremental-imsm.rules: check if md raid is already running
16 years ago
Harald Hoyer
094097fab3
lvm/dm/md: switch from lockfiles to $sys/$devpath/holders/*
...
This is a more sane solution, than ignoring subsequent "change" events.
The only danger is that we could loop, if a lvm scan triggers a broken
md partition, which triggers a broken PV and so on.
Better fix the scanning tools, not to emit change events for devices,
if no action was taken.
16 years ago
Harald Hoyer
1dd5bc3fba
add udevproperty() to dracut-lib and use it
...
newer versions of udev use --property instead of --env
16 years ago
Harald Hoyer
5c3f5746bb
90mdraid/65-md-incremental-imsm.rules: first set initqueue-finished,
...
then initqueue-settled
also introduce md_finished.sh to check for all md activity to be settled
16 years ago
Harald Hoyer
99433dd289
90mdraid: only switch mdmon to new root, if an instance is running
16 years ago
Harald Hoyer
2f02ae9d45
mdraid: add rd_NO_MDADMCONF --mdadmconf --nomdadmconf
...
Copy /etc/mdadm.conf to initramfs (even for non-hostonly) if
mdadmconf="yes" is set in dracut.conf or --mdadmconf is specified on the
dracut command line.
This was done, because there seems _no_ sane way to autoassemble md raid
arrays.
also moved rd_NO_MD to an udev ENV
16 years ago
Harald Hoyer
5a8d8dfbb6
switch modules to initqueue-finished
16 years ago
Harald Hoyer
650da7bada
removed initrdargs from parse-*.sh
16 years ago
Harald Hoyer
aa297ca6b6
65-md-incremental-imsm.rules: refine rules
16 years ago
Harald Hoyer
f25c9697f8
mdraid: stop udev queue until mdraid assembled
16 years ago
Harald Hoyer
3bb5b261c7
65-md-incremental-imsm: add additional check for md-non-containers
16 years ago
Harald Hoyer
273b197d75
added initqueue-settled and refactored code
16 years ago
Harald Hoyer
906dedf4d5
mdraid-cleanup: do not stop mdraid container
16 years ago
Harald Hoyer
587b3497c1
mdraid_start.sh: fixed raid activation
16 years ago
Harald Hoyer
e4dec3d6b6
{crypt,dmraid,lvm,mdraid}: cleanup with pre-pivot 30 and 31
16 years ago
Harald Hoyer
429aa1a2c2
mdraid: add grep for convenience
16 years ago
Harald Hoyer
52168b7b9d
reordered blkid/vol_id rules
16 years ago
Harald Hoyer
194f7d125f
90*/*cleanup.sh: fixed redirection to /dev/null
16 years ago
Harald Hoyer
780afa9876
release any raid/crypt/lvm device assembled, but not in use
16 years ago
Harald Hoyer
ec74fa8789
split dracut in network / non-network
16 years ago
Harald Hoyer
c1d670a893
65-md-incremental-imsm.rules: also check on "change"
16 years ago
Harald Hoyer
f4c36b28f6
mdraid_start: check if raid is already active before trying to run it
16 years ago
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.
16 years ago
Harald Hoyer
afe25d0ccc
{crypt,dmraid,,lvm,mdraid}/check use blkid if no vol_id found
16 years ago
Victor Lowther
7e2b4f8367
Make mdraid checking use common functionality in dracut-functions
16 years ago