Quantcast
Channel: Ubuntu Forums - Installation & Upgrades
Viewing all articles
Browse latest Browse all 26379

[ubuntu] preseed late_command won't work

$
0
0
Hi,
I am trying to prepare each installed host for Ansible support, however for some reason it doesn't work for me. In my preseed file I have late_command option:

Code:

d-i preseed/late_command string \
in-target echo -ne "/target/root/.ssh/ed25519" | ssh-keygen -P '' -o -a 100 -t ed25519 ; \
in-target wget -O /tmp/id_ed25519.pub http://server.domain.com/id_ed25519.pub ; \
in-target cat /tmp/id_ed25519.pub >> /target/root/.ssh/authorized_keys ; \
in-target apt-install bash ; \
in-target chsh -s /bin/bash

It is downloading pub key file from server, but for some reason won't place it in proper place (/root/.ssh/authorized_keys). Any ideas why?

Viewing all articles
Browse latest Browse all 26379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>