Skip to content

Commit

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

Signed-off-by: Kevin Cui <[email protected]>
  • Loading branch information
BlackHole1 committed Mar 30, 2024
1 parent e81fbea commit e3867ae
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 e3867ae

Please sign in to comment.