Skip to content

Commit 5fccfe2

Browse files
authored
refactor(ignition): add socket log (#42)
Ref: #41 Signed-off-by: Kevin Cui <[email protected]>
1 parent e81fbea commit 5fccfe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/vfkit/ignition.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func cmd(opt *cli.Context) (string, error) {
3030

3131
mount := fmt.Sprintf("echo -e %s >> /mnt/overlay/etc/fstab", fstab)
3232
authorizedKeys := fmt.Sprintf("mkdir -p /mnt/overlay/root/.ssh; echo %s >> /mnt/overlay/root/.ssh/authorized_keys", opt.SSHPublicKey)
33-
ready := fmt.Sprintf("echo -e \"date -s @%d;\\\\necho Ready | socat - VSOCK-CONNECT:2:1026\" > /mnt/overlay/opt/ready.command", time.Now().Unix())
33+
ready := fmt.Sprintf("echo -e \"date -s @%d;\\\\necho Ready | socat -v -d -d - VSOCK-CONNECT:2:1026\" > /mnt/overlay/opt/ready.command", time.Now().Unix())
3434

3535
return fmt.Sprintf("%s; %s; %s; %s", mount, authorizedKeys, ready, tz), nil
3636
}

0 commit comments

Comments
 (0)