When using opkg with an alternate dest, shouldn't the lock file be relative to the dest?
The lock file is a mutex around the opkg instance being run, while dest defines the destination for the files being installed by opkg, which is orthogonal. The lock file location is configurable via lock_file (check man opkg.conf), but shouldn't be relative to dest.