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.
  • Loading branch information
ydirson committed Apr 19, 2023
1 parent dd198fc commit cf6a575
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 cf6a575

Please sign in to comment.