blob: 177c247d4b2c2a0a02e7702a6e885fb7f12ac2f0 [file] [log] [blame]
[Unit]
Description=Store SSH host keys into /cfg
After=netopeer2-keystored-init-keys.service
Requires=netopeer2-keystored-init-keys.service
ConditionPathExists=!/cfg/etc/keystored/keys
[Service]
Type=oneshot
ExecStartPre=/bin/mkdir -p /cfg/etc/ssh
ExecStart=/bin/sh -c 'cp -a /etc/ssh/ssh_host_*_key* /cfg/etc/ssh/'
ExecStart=/bin/cp -a /etc/keystored /cfg/etc/
[Install]
WantedBy=multi-user.target