Peter Rajnoha
c2c3108882
*.rules: honor DM_UDEV_DISABLE_OTHER_RULES_FLAG
...
honour the DM_UDEV_DISABLE_OTHER_RULES_FLAG which is set by
libdevmapper/LVM directly for devices that should be skipped.
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
Harald Hoyer
dab1a1dc99
dmraid: switch to rd_NO_MDIMSM, if no mdadm installed
15 years ago
Harald Hoyer
5acc508cae
fixed "use $libdir and $usrlibdir instead of ..."
15 years ago
Amadeusz Żołnowski
55309e7800
use $libdir and $usrlibdir instead of individual detect with ldd
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
b6a7c09070
chmod 0755 *.sh
15 years ago
Harald Hoyer
d693f34afb
dmraid: parse different error messages
15 years ago
Harald Hoyer
bad6113059
lvm/dmraid: make LIBDIR depend on the binary
15 years ago
Yanko Kaneti
9e7ac6982a
Wildcards need dracut_install
15 years ago
Harald Hoyer
15c82415c2
90dmraid,90lvm: device mapper upstream rules got renamed
16 years ago
Philippe Seewer
41f8a4f14f
Add dm_mod loader
...
Some kernel configurations might build base dm support as a module.
Add module dm which ensures that dm_mod is there and loaded.
16 years ago
Harald Hoyer
67307075d1
dmraid: only install libdmraid-events-isw.so
...
the symlink will trigger install of the real lib file
16 years ago
Harald Hoyer
4d9b6060d4
dmraid: do not fail if /usr/lib/libdmraid-events-isw.so is not present
16 years ago
Harald Hoyer
99fd62e3be
dm/lvm: make usage of new udev event rules optionally
16 years ago
Harald Hoyer
678b3605e8
dmraid: add missing dso
16 years ago
Harald Hoyer
b9c4654a63
devicemapper: add dmeventd and new rules for device mapper
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
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
597839331c
dmraid: use and install kpartx for dmraids
16 years ago
Hans de Goede
26b72485cf
90dmraid: use kpartx to scan for partitions
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
33ff830c1b
90dmraid: switch rd_NO_DM to udev ENV
16 years ago
Harald Hoyer
1aca526cb4
90dmraid: install parse-dm.sh
16 years ago
Harald Hoyer
650da7bada
removed initrdargs from parse-*.sh
16 years ago
Harald Hoyer
7e282f5df1
dmraid: only install 64-md-raid.rules if no vol_id present
16 years ago
Harald Hoyer
273b197d75
added initqueue-settled and refactored code
16 years ago
Harald Hoyer
e4dec3d6b6
{crypt,dmraid,lvm,mdraid}: cleanup with pre-pivot 30 and 31
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
5c6a593f2e
add udevsettle function and settle after raid/lvm/crypto activities
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
bc9ae19deb
Make dmraid checking use common functionality in dracut-functions
16 years ago
Victor Lowther
dc670134f8
Make hostonly check for dmraid only pass if root is really on
...
a dmraid volume somehow.
16 years ago
Harald Hoyer
0e77eb3782
dmraid/mdraid: only try to delete partition 1-1024
...
add "--nr 1-1024" to partx, otherwise partx will try to delete
partitions 1-INT_MAX, which takes a long time.
16 years ago
Harald Hoyer
7045d15460
dmraid/mdraid: use ENV{DEVTYPE} instead of ATTR{partition}
16 years ago
Harald Hoyer
57b965ef4b
dmraid/mdraid: install "partx"
16 years ago
Harald Hoyer
e0fd2e2f74
dmraid: handle isw_raid_member if rd_NO_MDIMSM is set in udev ENV
16 years ago
Harald Hoyer
024cd021d4
dmraid: redirect error to vinfo
16 years ago
Harald Hoyer
87194701de
output info on rd_NO_DM
16 years ago
Harald Hoyer
4f945a3932
dmraid.sh: activate all dmraids, if no rd_DM_UUID is specified
16 years ago
Harald Hoyer
20cfd14f41
dmraid.rules: cleanup
16 years ago
Harald Hoyer
f874872fc2
add command line parameters to specify exact actions for root assembly
...
LVM
rd_NO_LVM
disable LVM detection
rd_LVM_VG=<volume group name>
only activate the volume groups with the given name
crypto LUKS
rd_NO_LUKS
disable crypto LUKS detection
rd_LUKS_UUID=<luks uuid>
only activate the LUKS partitions with the given UUID
MD
rd_NO_MD
disable MD RAID detection
rd_MD_UUID=<md uuid>
only activate the raid sets with the given UUID
DMRAID
rd_NO_DM
disable DM RAID detection
rd_DM_UUID=<dmraid uuid>
only activate the raid sets with the given UUID
16 years ago
Harald Hoyer
584e55654c
remove partitions from raid devices before they are used for something
...
else
16 years ago
Harald Hoyer
dd1f72b3dd
dmraid.rules changed comment in header
16 years ago
Hans de Goede
3564cb7c2c
Make Intel BIOS raid use mdraid instead of dmraid when mdadm 3.0 is available
...
Intel BIOS raid is being shifted from dmraid to mdraid because mdraid offers
more features. So if an imsm metadata capable mdadm is present use mdraid
instead of dmraid for isw_raid_member's
This patch also adds code to mdraid_start.sh so that the raidsets
inside the imsm containers get started once udev is done probing
(doing this earlier leads to potentially degraded use of the sets and
an unwanted resync).
16 years ago