Fix in-target scripts
This commit is contained in:
parent
4de7354c45
commit
25a9ad6f06
10
preseed.cfg
10
preseed.cfg
@ -466,9 +466,9 @@ d-i finish-install/reboot_in_progress note
|
|||||||
# still a usable /target directory. You can chroot to /target and use it
|
# still a usable /target directory. You can chroot to /target and use it
|
||||||
# directly, or use the apt-install and in-target commands to easily install
|
# directly, or use the apt-install and in-target commands to easily install
|
||||||
# packages and run commands in the target system.
|
# packages and run commands in the target system.
|
||||||
d-i preseed/late_command string apt-install zsh; in-target \
|
d-i preseed/late_command string apt-install zsh; \
|
||||||
sudo -u creator mkdir -p -m 700 /home/creator/.ssh; \
|
in-target sudo -u creator mkdir -p -m 700 /home/creator/.ssh; \
|
||||||
sudo -u creator install -m 600 /home/creator/.ssh/authorized_keys; \
|
in-target sudo -u creator install -m 600 /home/creator/.ssh/authorized_keys; \
|
||||||
sudo -u creator echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYsz4jdyzf9UcJ8eEavVmi+DNYE3ioeJBfTlVMw7Vsb tanguy@Diogenes" > /home/creator/.ssh/authorized_keys; \
|
in-target sudo -u creator echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYsz4jdyzf9UcJ8eEavVmi+DNYE3ioeJBfTlVMw7Vsb tanguy@Diogenes" > /home/creator/.ssh/authorized_keys; \
|
||||||
sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config;
|
in-target sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user