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 18, 2023
1 parent c4c1af1 commit 565fae8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README-iso.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Work to reproduce install.img
* missing files:
- [x] /opt/xensource/installer/version.py
- [x] installer.service [email protected]
- [ ] sshd.service.d/installer.conf (disables sshd by default, enables with sshpassword=xxxx)
- [x] sshd.service.d/installer.conf (disables sshd by default, enables with sshpassword=xxxx)
- [ ] ldconfig.service xenstored.service etc. links to /dev/null (those two at least seem
unneeded)
- [ ] /etc/udev/rules.d/: 11-dm-mpath.rules 62-multipath.rules 69-dm-lvm-metad.rules links to /dev/null
Expand Down
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 565fae8

Please sign in to comment.