pkg icon indicating copy to clipboard operation
pkg copied to clipboard

pkg install stalls while /var/cache/pkg is missing

Open danfe opened this issue 1 year ago • 1 comments

I've decided that I don't need persistent package cache on my laptop and replaced /var/cache/pkg with a symlink to /tmp/pkg. Because I'm creating it manually after a reboot, sometimes I forget, and while it's missing, pkg(8) works otherwise fine, but doing pkg install would cause pkg(8) process to eat 100% CPU time (of a single core) and wait indefinitely without giving any diagnostics. Once I mkdir /tmp/pkg, it automagically resumes and DTRT.

danfe avatar Dec 21 '22 10:12 danfe