From bce0af6350b36c12d8f30bf740293dfe6dcb3afd Mon Sep 17 00:00:00 2001 From: TuDatTr Date: Thu, 9 Nov 2023 22:36:35 +0100 Subject: [PATCH] Fixed in-target custom commands Signed-off-by: TuDatTr --- preseed.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/preseed.txt b/preseed.txt index 85cf6a5..f6e4643 100644 --- a/preseed.txt +++ b/preseed.txt @@ -166,7 +166,7 @@ d-i debian-installer/exit/poweroff boolean true d-i preseed/late_command string \ in-target mkdir -p /home/user/.ssh/; \ - in-target echo "sh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqc9fnzfCz8fQDFzla+D8PBhvaMmFu2aF+TYkkZRxl9 tuan@genesis-2022-01-20" > /target/home/user/.ssh/authorized_keys; \ - in-target chown -R user:user /target/home/user/.ssh/; \ - in-target chmod 700 /target/home/user/.ssh/; \ - in-target chmod 600 /target/home/user/.ssh/authorized_keys + in-target echo "sh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqc9fnzfCz8fQDFzla+D8PBhvaMmFu2aF+TYkkZRxl9 tuan@genesis-2022-01-20" > /home/user/.ssh/authorized_keys; \ + in-target chown -R user:user /home/user/.ssh/; \ + in-target chmod 700 /home/user/.ssh/; \ + in-target chmod 600 /home/user/.ssh/authorized_keys