Fixed in-target custom commands
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>master
parent
a757fed54b
commit
bce0af6350
|
@ -166,7 +166,7 @@ d-i debian-installer/exit/poweroff boolean true
|
||||||
|
|
||||||
d-i preseed/late_command string \
|
d-i preseed/late_command string \
|
||||||
in-target mkdir -p /home/user/.ssh/; \
|
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 echo "sh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqc9fnzfCz8fQDFzla+D8PBhvaMmFu2aF+TYkkZRxl9 tuan@genesis-2022-01-20" > /home/user/.ssh/authorized_keys; \
|
||||||
in-target chown -R user:user /target/home/user/.ssh/; \
|
in-target chown -R user:user /home/user/.ssh/; \
|
||||||
in-target chmod 700 /target/home/user/.ssh/; \
|
in-target chmod 700 /home/user/.ssh/; \
|
||||||
in-target chmod 600 /target/home/user/.ssh/authorized_keys
|
in-target chmod 600 /home/user/.ssh/authorized_keys
|
||||||
|
|
Loading…
Reference in New Issue