Improve Proxmox backup image generation
This commit is contained in:
parent
0a5d070773
commit
aed6df2954
6 changed files with 37 additions and 9 deletions
|
@ -58,11 +58,12 @@
|
|||
[Unit]
|
||||
Description=print-public-ssh-host-key.service
|
||||
Before=getty@tty1.service
|
||||
After=sshd.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/run/current-system/sw/bin/bash -c "/run/current-system/sw/bin/echo ----- ED25519 PUBLIC SSH HOST KEY -----\
|
||||
&& /run/current-system/sw/bin/cut -d ' ' -f 1-2 /etc/ssh/ssh_host_ed25519_key.pub"
|
||||
ExecStart=/run/current-system/sw/bin/bash -c "/run/current-system/sw/bin/echo -e \"----- ED25519 PUBLIC SSH HOST KEY -----\
|
||||
\n$(/run/current-system/sw/bin/cut -d ' ' -f 1-2 /etc/ssh/ssh_host_ed25519_key.pub)\""
|
||||
RemainAfterExit=no
|
||||
StandardOutput=tty
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue