Annotation of /trunk/dracut/patches/dracut-047-fs-lib_install_crc32_in_no-hostonly_for_f2fs.patch
Parent Directory | Revision Log
Revision 3130 -
(hide annotations)
(download)
Fri Jun 15 13:34:16 2018 UTC (6 years, 3 months ago) by niro
File size: 1436 byte(s)
Fri Jun 15 13:34:16 2018 UTC (6 years, 3 months ago) by niro
File size: 1436 byte(s)
-upstream patches to fix some kernel module issues
1 | niro | 3130 | From ccaf52901fbbdfedbf1764b88ef45be89419a2c8 Mon Sep 17 00:00:00 2001 |
2 | From: Marcos Mello <marcosfrm@gmail.com> | ||
3 | Date: Mon, 16 Apr 2018 07:59:09 -0300 | ||
4 | Subject: fs-lib: install crc32 in no-hostonly | ||
5 | |||
6 | It is needed by f2fs. | ||
7 | --- | ||
8 | modules.d/99fs-lib/module-setup.sh | 8 ++++---- | ||
9 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
10 | |||
11 | diff --git a/modules.d/99fs-lib/module-setup.sh b/modules.d/99fs-lib/module-setup.sh | ||
12 | index b69277e..6872661 100755 | ||
13 | --- a/modules.d/99fs-lib/module-setup.sh | ||
14 | +++ b/modules.d/99fs-lib/module-setup.sh | ||
15 | @@ -15,7 +15,7 @@ echo_fs_helper() { | ||
16 | local dev=$1 fs=$2 | ||
17 | case "$fs" in | ||
18 | xfs) | ||
19 | - echo -n " xfs_db xfs_repair xfs_check xfs_metadump" | ||
20 | + echo -n " xfs_db xfs_repair xfs_check xfs_metadump " | ||
21 | ;; | ||
22 | ext?) | ||
23 | echo -n " e2fsck " | ||
24 | @@ -49,12 +49,12 @@ include_fs_helper_modules() { | ||
25 | |||
26 | # called by dracut | ||
27 | installkernel() { | ||
28 | - # xfs and btrfs needs crc32c... | ||
29 | + # xfs/btrfs/ext4 need crc32c, f2fs needs crc32 | ||
30 | if [[ $hostonly ]]; then | ||
31 | for_each_host_dev_fs include_fs_helper_modules | ||
32 | : | ||
33 | else | ||
34 | - instmods crc32c | ||
35 | + instmods crc32c crc32 | ||
36 | fi | ||
37 | } | ||
38 | |||
39 | @@ -81,7 +81,7 @@ install() { | ||
40 | _helpers="$fscks" | ||
41 | fi | ||
42 | |||
43 | - if [[ "$_helpers" == *e2fsck* ]] && [ -e /etc/e2fsck.conf ]; then | ||
44 | + if [[ "$_helpers" == *e2fsck* ]] && [ -e /etc/e2fsck.conf ]; then | ||
45 | inst_simple /etc/e2fsck.conf | ||
46 | fi | ||
47 | |||
48 | -- | ||
49 | cgit v1.1 | ||
50 |