When we use imagemount like this
imagemount -d /dev/nbd3 -f some.img -c cache_file
then cache_file is created in the root (/) directory.
I find it a little bit annoying. I would prefer to have the file created in the current directory, but if I change this I will probably break a few scripts out there... I don't know how many users expect the cache file to be created in the root directory.
Please comment to "vote" to keep the current behavior or to change it. Thanks.
NB: a workaround is obviously to specify an absolute path with "-c", ex: /home/user/img/img.cf.
Anonymous
Yes, that filename should definitely be relative to the current directory by default, unless an absolute path is provided.
I don't think the risk of breaking scripts is that important here. Because as far as actual functionality goes, imagemount hasn't never been particularly stable.