Skip to content

Commit

Permalink
create-installimg: include systemd config for sshpassword support
Browse files Browse the repository at this point in the history
This should indeed be part of host-installer-startup, see
xenserver/host-installer#42

Will need to be reverted when that PR is merged.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
  • Loading branch information
ydirson committed Jun 15, 2023
1 parent 9446999 commit 26a9ea6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Unit]
ConditionKernelCommandLine=sshpassword

[Service]
ExecStartPre=/bin/sh -c '/bin/sed -e "s/.*sshpassword=\([^ ]*\).*/root:\1/" /proc/cmdline | /sbin/chpasswd'
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Unit]
ConditionKernelCommandLine=sshpassword

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

0 comments on commit 26a9ea6

Please sign in to comment.