1 |
commit: 369cfa98f72675a285ec98439e9054ab57b234c9 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 11 20:01:37 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 11 20:03:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=369cfa98 |
7 |
|
8 |
Remove "dobtrfs" kernel command-line argument |
9 |
|
10 |
This is no longer necessary with the switch to UDEV. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/739892 |
13 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
14 |
|
15 |
defaults/initrd.scripts | 32 -------------------------------- |
16 |
defaults/linuxrc | 6 ------ |
17 |
doc/genkernel.8.txt | 3 --- |
18 |
genkernel | 1 - |
19 |
4 files changed, 42 deletions(-) |
20 |
|
21 |
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts |
22 |
index 5181d6c..f6e84fc 100644 |
23 |
--- a/defaults/initrd.scripts |
24 |
+++ b/defaults/initrd.scripts |
25 |
@@ -75,7 +75,6 @@ modules_scan() { |
26 |
elif [ "${USE_MDADM}" = '1' ] \ |
27 |
|| [ "${USE_LVM_NORMAL}" = '1' ] \ |
28 |
|| [ "${USE_CRYPTSETUP}" = '1' ] \ |
29 |
- || [ "${USE_BTRFS}" = '1' ] \ |
30 |
|| [ "${USE_ZFS}" = '1' ] \ |
31 |
|| [ "${USE_DMRAID_NORMAL}" = '1' ] |
32 |
then |
33 |
@@ -1612,25 +1611,6 @@ start_volumes() { |
34 |
fi |
35 |
fi |
36 |
|
37 |
- if [ "${USE_BTRFS}" = '1' ] |
38 |
- then |
39 |
- if ! hash btrfs >/dev/null 2>&1 |
40 |
- then |
41 |
- bad_msg "dobtrfs invoked but 'btrfs' not found; Skipping btrfs device scanning ..." |
42 |
- else |
43 |
- good_msg "Scanning for BTRFS devices ..." |
44 |
- |
45 |
- local btrfs_cmd="run btrfs device scan 2>&1" |
46 |
- is_log_enabled && btrfs_cmd="${btrfs_cmd} | tee -a '${GK_INIT_LOG}'" |
47 |
- |
48 |
- eval "${btrfs_cmd}" |
49 |
- if [ $? -ne 0 ] |
50 |
- then |
51 |
- bad_msg "Scanning for BTRFS devices failed!" |
52 |
- fi |
53 |
- fi |
54 |
- fi |
55 |
- |
56 |
if [ "${USE_ZFS}" = '1' ] |
57 |
then |
58 |
# Avoid race involving asynchronous module loading |
59 |
@@ -2510,18 +2490,6 @@ cdupdate() { |
60 |
fi |
61 |
} |
62 |
|
63 |
-setup_btrfsctl() { |
64 |
- # start BTRFS volume detection, if available |
65 |
- if hash btrfsctl >/dev/null 2>&1 |
66 |
- then |
67 |
- local btrfs_cmd="run btrfsctl -a 2>&1" |
68 |
- is_log_enabled && btrfs_cmd="${btrfs_cmd} | tee -a '${GK_INIT_LOG}'" |
69 |
- |
70 |
- eval "${btrfs_cmd}" |
71 |
- udevsettle |
72 |
- fi |
73 |
-} |
74 |
- |
75 |
rundebugshell() { |
76 |
if is_debug |
77 |
then |
78 |
|
79 |
diff --git a/defaults/linuxrc b/defaults/linuxrc |
80 |
index 6d07d9b..df0f570 100644 |
81 |
--- a/defaults/linuxrc |
82 |
+++ b/defaults/linuxrc |
83 |
@@ -151,9 +151,6 @@ do |
84 |
;; |
85 |
esac |
86 |
;; |
87 |
- dobtrfs) |
88 |
- USE_BTRFS=1 |
89 |
- ;; |
90 |
quiet|quiet_genkernel) |
91 |
QUIET=1 |
92 |
;; |
93 |
@@ -615,9 +612,6 @@ fi |
94 |
# Apply scan delay if specified |
95 |
sdelay |
96 |
|
97 |
-# Setup btrfs, see bug 303529 |
98 |
-setup_btrfsctl |
99 |
- |
100 |
# Scan volumes |
101 |
start_volumes |
102 |
|
103 |
|
104 |
diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt |
105 |
index 5d7b74d..8909fc7 100644 |
106 |
--- a/doc/genkernel.8.txt |
107 |
+++ b/doc/genkernel.8.txt |
108 |
@@ -775,9 +775,6 @@ when not set. This will allow remote user to provide answer through |
109 |
Scan for bootable ZFS pools on bootup. Optionally use cachefile or force import if |
110 |
necessary or perform both actions. |
111 |
|
112 |
-*dobtrfs*:: |
113 |
- Scan for attached Btrfs devices on bootup. |
114 |
- |
115 |
*domultipath*:: |
116 |
Activate Multipath on bootup. |
117 |
|
118 |
|
119 |
diff --git a/genkernel b/genkernel |
120 |
index 595c6ea..6ec8905 100755 |
121 |
--- a/genkernel |
122 |
+++ b/genkernel |
123 |
@@ -485,7 +485,6 @@ then |
124 |
print_warning 1 "${BOLD}WARNING... WARNING... WARNING...${NORMAL}" |
125 |
print_warning 1 'Additional kernel parameters that *may* be required to boot properly:' |
126 |
isTrue "${SPLASH}" && print_warning 1 "- Add \"vga=791 splash=silent,theme:${SPLASH_THEME} console=tty1 quiet\" if you use a splash framebuffer ]" |
127 |
- isTrue "${BTRFS}" && print_warning 1 '- Add "dobtrfs" for Btrfs device scanning support' |
128 |
isTrue "${MULTIPATH}" && print_warning 1 '- Add "domultipath" for multipath support' |
129 |
isTrue "${ISCSI}" && print_warning 1 '- For iSCSI support, add at least:' |
130 |
isTrue "${ISCSI}" && print_warning 1 ' - "iscsi_initiatorname=<initiator name>"' |