Fixed in-target custom commands

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
master
TuDatTr 2023-11-09 22:36:35 +01:00
parent a757fed54b
commit bce0af6350
1 changed files with 4 additions and 4 deletions

View File

@ -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