Daniel Molkentin
9f2916cce1
Include crc32c-intel module when using btrfs
...
Reference: bsc#1011554
2017-12-14 13:41:37 +01:00
Harald Hoyer
3721635b2c
guard ${arrays[@]} with ""
2015-07-09 15:36:25 +02:00
Harald Hoyer
967cc19ab1
remove all vim and emacs code format comments
2014-08-29 13:38:47 +02:00
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.
2014-02-06 16:45:20 +01:00
Harald Hoyer
8bcfd683bd
*/module-setup.sh: add comments for dracut called functions
2013-10-08 10:37:56 +02:00
Harald Hoyer
50f5bbbbaf
btrfs: use inst_hook to install the timeout hook
2013-10-07 17:25:58 +02:00
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
2013-08-07 10:33:15 +02:00
Harald Hoyer
c6df70fb48
btrfs: include btrfs-zero-log in the initramfs
...
https://bugzilla.redhat.com/show_bug.cgi?id=963257
2013-05-28 16:34:56 +02:00
Harald Hoyer
d351541ee6
make host_fs_types a hashmap
...
This requires bash >= 4, but hash maps are so much more comfortable
2013-03-11 18:58:32 +01:00
Harald Hoyer
24d009507f
btrfs: no need for btrfs_timeout in systemd mode
2013-03-06 17:29:11 +01:00
Harald Hoyer
f672b1c399
btrfs/btrfs_timeout.sh: do not "exit 0"
2013-03-02 13:10:04 +01:00
Harald Hoyer
f12f694355
btrfs: Use upstream 64-btrfs.rules
2013-02-22 11:14:04 +01:00
Harald Hoyer
1a6fdf2417
btrfs: use "btrfs device ready"
2013-02-18 11:58:11 +01:00
Harald Hoyer
d9076cac19
btrfs/btrfs_finished.sh: use btrfs device ready for probing
2013-02-08 16:52:38 +01:00
Harald Hoyer
ff52ca1b57
btrfs/80-btrfs.rules: remove modprobe of btrfs module
...
this should be automatically modprobed by the kernel on demand
2013-02-08 16:52:38 +01:00
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
2013-01-23 15:24:27 +01:00
Harald Hoyer
24a38bc1cb
fixed install locations for udev rules and change to IMPORT{builtin}
2012-07-27 11:55:31 +02:00
Harald Hoyer
e1619ee151
fixed bash/sh requirements
2012-07-06 14:06:41 +02:00
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.
2012-06-29 12:41:27 +02:00
Harald Hoyer
4d0f1d7b28
modules.d/*/module-setup.sh: no more sourcing of dracutfunctions
2012-06-29 12:41:26 +02:00
Harald Hoyer
204db8a134
90btrfs/btrfs_finished.sh: put check in a function
2012-02-07 18:48:04 +01:00
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>
2012-02-07 12:14:21 +01:00
Harald Hoyer
415d268051
btrfs_finished.sh: fix udevadm query
2012-02-07 10:23:29 +01:00
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>
2012-01-13 11:35:49 +01:00
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.
2012-01-09 13:32:36 +01:00
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.
2011-12-15 14:49:03 +01:00
Harald Hoyer
b0692d0311
add wait_for_dev() and wait_for_mount()
2011-11-15 09:47:16 +01:00
Harald Hoyer
d128791b84
90btrfs: add btrfs device with multiple components
2011-08-11 17:52:40 +02:00
Harald Hoyer
29b10e65b1
dracut-functions: make local vars local and prefix with "_"
2011-05-12 11:06:47 +02:00
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.
2011-03-09 12:09:29 +01:00
Harald Hoyer
71df3c4329
renamed module-info.sh to module-setup.sh
2011-02-02 16:35:18 +01:00
Harald Hoyer
95d2dabc25
replaced check,install,installkernel with module-info.sh
2011-02-02 13:56:03 +01:00
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)
2010-11-24 19:02:13 +01:00
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
2010-09-10 15:34:36 +02:00
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
2010-08-23 11:54:09 +02:00
Harald Hoyer
dcdca91d91
btrfs: add hostonly check
2010-07-21 14:31:13 +02:00
Harald Hoyer
8f74a60ced
btfrs: load btrfs module and updated NEWS
2010-04-16 18:10:47 +02:00
Matt
127fb81754
Needs btrfsctl, not btrfs module
2010-04-16 18:03:08 +02:00
Harald Hoyer
58ffd15bff
add module btrfs
2010-04-13 15:22:36 +02:00