# unattended-upgrade
...
tar: ./etc/routinator/routinator.conf: Not found in archive
tar: Exiting with failure status due to previous errors
The routinator.conf file is in the archive, but stored as etc/routinator/routinator.conf - note without the leading ./.
In the linked issue I came up with a work around but unpacking the data tarball from inside the DEB archive and re-tarballing the same files but so that they end up with ./ in the path seems a bit ridiculous.
Apparently the code in unattended-upgrade has been requiring this leading . in the path of items in the data tarball for 10 years at least looking at the blame history, so this isn't a new issue, so I'm surprised it hasn't come up here before.
Does anyone have a way to configure cargo-deb assets that results in . leading paths in the data tarball? I suspect not because of this from the tar crate for fn set_path():
"Will strip out any “.” path component, which signifies the current directory."
See: https://github.com/NLnetLabs/routinator/issues/783
In short:
The
routinator.conf
file is in the archive, but stored asetc/routinator/routinator.conf
- note without the leading./
.In the linked issue I came up with a work around but unpacking the data tarball from inside the DEB archive and re-tarballing the same files but so that they end up with
./
in the path seems a bit ridiculous.Apparently the code in
unattended-upgrade
has been requiring this leading.
in the path of items in the data tarball for 10 years at least looking at the blame history, so this isn't a new issue, so I'm surprised it hasn't come up here before.Does anyone have a way to configure cargo-deb assets that results in
.
leading paths in the data tarball? I suspect not because of this from thetar
crate forfn set_path()
:Thoughts anyone?