Harald Hoyer
586a56c287
Install crypto modules in 90kernel-modules
...
We don't want to play catch up with hash and encryption algorithms.
To be safe, just use the hammer and include all crypto.
Fixes https://github.com/dracutdevs/dracut/issues/802
5 years ago
Harald Hoyer
0402b3777b
btrfs: force preload btrfs module
...
fixes https://github.com/dracutdevs/dracut/issues/658
raid6_pq and xor takes time doing benchmarking
[ 3.983009] request_module fs-btrfs succeeded, but still no fs?
5 years ago
Daniel Molkentin
9f2916cce1
Include crc32c-intel module when using btrfs
...
Reference: bsc#1011554
7 years ago
Harald Hoyer
3721635b2c
guard ${arrays[@]} with ""
10 years ago
Harald Hoyer
967cc19ab1
remove all vim and emacs code format comments
11 years ago
Harald Hoyer
30e6e809ed
Factor out all the "type -V" commands
...
Add new functions require_binaries() and require_any_binary() to be used
in the check() section of module-setup.sh.
These functions print a warning line telling the user, which binary is
missing for the specific dracut module.
This unifies the way of checking for binaries and makes the life of an
initramfs creator easier, if he wants to find out why a specific dracut
module is not included in the initramfs.
11 years ago
Harald Hoyer
8bcfd683bd
*/module-setup.sh: add comments for dracut called functions
12 years ago
Harald Hoyer
50f5bbbbaf
btrfs: use inst_hook to install the timeout hook
12 years ago
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
12 years ago
Harald Hoyer
c6df70fb48
btrfs: include btrfs-zero-log in the initramfs
...
https://bugzilla.redhat.com/show_bug.cgi?id=963257
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
24d009507f
btrfs: no need for btrfs_timeout in systemd mode
12 years ago
Harald Hoyer
f672b1c399
btrfs/btrfs_timeout.sh: do not "exit 0"
12 years ago
Harald Hoyer
f12f694355
btrfs: Use upstream 64-btrfs.rules
12 years ago
Harald Hoyer
1a6fdf2417
btrfs: use "btrfs device ready"
12 years ago
Harald Hoyer
d9076cac19
btrfs/btrfs_finished.sh: use btrfs device ready for probing
12 years ago
Harald Hoyer
ff52ca1b57
btrfs/80-btrfs.rules: remove modprobe of btrfs module
...
this should be automatically modprobed by the kernel on demand
12 years ago
Colin Guthrie
3de6001e1e
Include crc32c module for xfs.
...
Just like btrfs, xfs now requires CRC module that cannot be resolved via
normal module resolving.
Move this hack into fs-lib and remove it from btrfs module.
https://bugs.mageia.org/show_bug.cgi?id=8676
12 years ago
Harald Hoyer
24a38bc1cb
fixed install locations for udev rules and change to IMPORT{builtin}
13 years ago
Harald Hoyer
e1619ee151
fixed bash/sh requirements
13 years ago
Harald Hoyer
53fe81e752
modules.d/*/module-setup.sh: combine and specify type for installs
...
To speedup image creation, combine dracut_install calls and specify the exact type.
E.g. inst_script instead of the generic inst.
13 years ago
Harald Hoyer
4d0f1d7b28
modules.d/*/module-setup.sh: no more sourcing of dracutfunctions
13 years ago
Harald Hoyer
204db8a134
90btrfs/btrfs_finished.sh: put check in a function
13 years ago
Cong Wang
418febfc44
btrfs: fix two bugs in module-setup.sh
...
First, $host_fs_types is an array.
Second, use strstr to match btrfs type.
Cc: Harald Hoyer <harald@redhat.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
13 years ago
Harald Hoyer
415d268051
btrfs_finished.sh: fix udevadm query
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
Colin Guthrie
5d55ceb75c
btrfs: Ensure crc32c module is installed.
...
As outlined here:
https://bugs.mageia.org/show_bug.cgi?id=3214
and:
https://bugs.launchpad.net/ubuntu/+source/linux-linaro-omap/+bug/715835
the btrfs module needs a CRC implementation.
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
b0692d0311
add wait_for_dev() and wait_for_mount()
13 years ago
Harald Hoyer
d128791b84
90btrfs: add btrfs device with multiple components
14 years ago
Harald Hoyer
29b10e65b1
dracut-functions: make local vars local and prefix with "_"
14 years ago
Will Woods
a5e33c7d6f
Use 'btrfs' command rather than 'btrfsctl', and install btrfs driver
...
btrfsctl is being replaced by the btrfs command in the upstream
tools, so change accordingly. Also, if we're using the btrfs module
we should probably make sure the btrfs driver gets installed.
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
Tomasz Torcz
3f003263d2
- move btrfs rules order from 40 to 80 for ID_FS_TYPE to work (which is populated by 60-persistent-storage.rules)
14 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
dcdca91d91
btrfs: add hostonly check
15 years ago
Harald Hoyer
8f74a60ced
btfrs: load btrfs module and updated NEWS
15 years ago
Matt
127fb81754
Needs btrfsctl, not btrfs module
15 years ago
Harald Hoyer
58ffd15bff
add module btrfs
15 years ago