Skip to content

Commit 77440d2

Browse files
committed
sshd_installer.conf: be more strict on sshpassword= identification
Suggested-by: Frediano Ziglio <frediano.ziglio@cloud.com> Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
1 parent f592d57 commit 77440d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

startup/sshd_installer.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
ConditionKernelCommandLine=sshpassword
33

44
[Service]
5-
ExecStartPre=/bin/sh -c '/bin/sed -e "s/.*sshpassword=\([^ ]*\).*/root:\1/" /proc/cmdline | /sbin/chpasswd'
5+
ExecStartPre=/bin/sh -c '/bin/sed -e "s/.*\<sshpassword=\([^ ]*\).*/root:\1/" /proc/cmdline | /sbin/chpasswd'

0 commit comments

Comments
 (0)