Open mjudeikis opened 3 years ago
We use this flow to update the agent:
func() error { return syscall.Unlink(u.binaryPath) }, func() error { return os.Rename(b.Name(), u.binaryPath) },
Os.temp creates tmpfs :
tmpfs
df -T /tmp/go-build* | awk '{print $2}' | tail -n1 tmpfs
and agent is for sure not on tmpfs:
df -T /usr/local/bin/synpse | awk '{print $2}' | tail -n1 btrfs
This gives error:
invalid cross-device link
Solution: Move to byte level operation for agent move.
ah yes, just need to read and write as bytes
:cry: Fix soon will be there.
We use this flow to update the agent:
Os.temp creates
tmpfs
:and agent is for sure not on
tmpfs
:This gives error:
Solution: Move to byte level operation for agent move.