1 |
commit: dc006e62ffc0861cc6f2c7979d977bf49d2da994 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 27 10:39:55 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 27 10:39:55 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=dc006e62 |
7 |
|
8 |
initrd.scripts: start_sshd(): Don't drop to shell when starting dropbear failed |
9 |
|
10 |
Assuming that user using dosshd don't has physical access, dropping to shell |
11 |
in case when starting dropbear failed is not a good idea. |
12 |
|
13 |
User with physical access can always reboot and enable debug mode if |
14 |
interested in debug shell in this case. |
15 |
|
16 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
17 |
|
18 |
defaults/initrd.scripts | 1 - |
19 |
1 file changed, 1 deletion(-) |
20 |
|
21 |
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts |
22 |
index c19701c..33b5199 100644 |
23 |
--- a/defaults/initrd.scripts |
24 |
+++ b/defaults/initrd.scripts |
25 |
@@ -2275,7 +2275,6 @@ start_sshd() { |
26 |
|
27 |
good_msg "Starting dropbear sshd ..." ${QUIET} |
28 |
run /usr/sbin/dropbear -p ${GK_SSHD_PORT} -R -P "${GK_SSHD_PIDFILE}" 2>/var/log/dropbear.log |
29 |
- test_success "Failed to start dropbear" |
30 |
} |
31 |
|
32 |
wait_sshd() { |