Skip to content

Commit

Permalink
refactor(ignition): add socket log (#42)
Browse files Browse the repository at this point in the history
Ref: #41

Signed-off-by: Kevin Cui <bh@bugs.cc>
  • Loading branch information
BlackHole1 authored Mar 30, 2024
1 parent e81fbea commit 5fccfe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vfkit/ignition.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func cmd(opt *cli.Context) (string, error) {

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

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

0 comments on commit 5fccfe2

Please sign in to comment.