Adam Williamson
8d7c07f191
don't specify "p" as a separator for dmraid arrays (RHBZ #966162 )
...
As per RHBZ #966162 , parted stopped unconditionally using "p" as a
separator for dmraid device names in version 3.1, so other things need
to fall in line with that convention now.
12 years ago
Harald Hoyer
d351541ee6
make host_fs_types a hashmap
...
This requires bash >= 4, but hash maps are so much more comfortable
12 years ago
Harald Hoyer
cf24ac8c19
crypt, dmraid, mdraid: use for_each_host_dev_and_slaves_all()
...
To catch _all_ UUIDs and not only the first one, use
for_each_host_dev_and_slaves_all
12 years ago
Harald Hoyer
e064127729
add "rd.auto" parameter and switch off automatic assembly
...
No automatic assembly is done anymore by default. You will have to
specify exactly what devices to assemble
("rd.md.uuid=" "rd.luks.uuid" ...)
or use "rd.auto=1" or "rd.auto" on the kernel command line.
For big servers with thousands of disks we don't want to assemble
everything by default (error prone, slow).
13 years ago
Harald Hoyer
c0cae7f702
dmraid,mdraid,lvm,udev: don't process DM_MULTIPATH_DEVICE_PATH devs
13 years ago
Harald Hoyer
24a38bc1cb
fixed install locations for udev rules and change to IMPORT{builtin}
13 years ago
Harald Hoyer
8a240aca9e
require kpartx and partx for some modules
13 years ago
Harald Hoyer
68e7661ca7
deprecate old command line options
13 years ago
Harald Hoyer
4d0f1d7b28
modules.d/*/module-setup.sh: no more sourcing of dracutfunctions
13 years ago
Harald Hoyer
cce69be668
removed old udev "vol_id"
13 years ago
Jon Ander Hernandez
c9143a63fe
Debian multiarch support
...
Another solution could be searching in directories found at
/etc/ld.so.conf.d/*.conf or adding a new parameter. Here is a patch
which adds a new --libdirs parameter, and also a new inst_libdir_file
function which will try to expand metacharacters on each lib
directory:
inst_libdir_file "libdevmapper-event-lvm*.so"
13 years ago
Harald Hoyer
004fd0557d
host-only checks corrected and kernel_only mode
...
In kernel_only mode, we don't want to write /etc/cmdline.d
Correctly return the check functions, so we have a valid return of
for_each_host_dev_fs().
mdraid and dmraid functions had wrong checkings for the filesystem
type.
13 years ago
Harald Hoyer
fb67e4aa36
shutdown on demand
...
Do not save and restore the initramfs, but instead, just unpack the
default initramfs for shutdown on shutdown.
13 years ago
Harald Hoyer
96b8d60a9b
dracut: precreate "${initdir}/etc/cmdline.d"
13 years ago
Cong Wang
1b7fd0fa3e
Check module dependencies of mount points
...
Like -H, we need to poll every module to check if it is needed
to mount a specific device in '--mount'.
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
13 years ago
Harald Hoyer
480d772f22
*/module-setup.sh: use host_fs_types host_devs
...
For the $hostonly case, use $host_fs_types and $host_devs to determine,
if a module has to be included in the initramfs.
13 years ago
Harald Hoyer
760dcc6a65
lvm, dm, dmraid: cleanup, which module installs what
...
The dm module, which lvm and dmraid depend on, installed dmraid
shared libs. The lvm module installed udev rules, which were
already installed by the dm module.
Cleaned up those issues.
13 years ago
Michal Soltys
cf5891424e
90(md|dm)raid: recognize ddf container
...
This patch adds ddf support, consistently with imsm/isw options.
Signed-off-by: Michal Soltys <soltys@ziu.info>
14 years ago
Harald Hoyer
7ef8ff9a2e
90dmraid: don't install non-existent dmraid-cleanup
14 years ago
Harald Hoyer
8ec1562355
90dm: install libdevmapper-event* for 90dm and cleanup 90dmraid
14 years ago
Harald Hoyer
29b10e65b1
dracut-functions: make local vars local and prefix with "_"
14 years ago
Harald Hoyer
3b403b32fc
removed trailing whitespaces
14 years ago
Harald Hoyer
fb59f4c967
get rid of absolute PATHs
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
Amadeusz Żołnowski
5d72984a01
Gentoo ebuild for LVM2 prior to 2.02.63-r1 doesn't install rules:
...
10-dm.rules
11-dm-lvm.rules
13-dm-disk.rules
95-dm-notify.rules
but provides only 64-device-mapper.rules combining more or less the
above rules files.
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
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.
15 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