TMPDIR can't be set to relative path
mudler opened this issue ยท 0 comments
mudler commented
Luet version:
0.17.6
CPU architecture, OS, and Version:
Describe the bug
Setting TMPDIR
to a relative path breaks luet
To Reproduce
TMPDIR=./foo luet install -y <something>
Expected behavior
Logs
>>> [mocaccino-makeiso] - cd /repo/ && if [ ! -e $TMPDIR ] ; then mkdir $TMPDIR -p ; fi && echo "Using spec file ${spec_file}..." && rm -rf /var/luet/db/repos/ -rf && luet makeiso ${spec_file} && ls -ltr && mkdir iso && mv *.iso *.iso.* iso/ - โ
Using spec file specs/funtoo-experimental-makeiso.yaml...
Luet version 0.17.6-g10cd2997d8672d7f182b4f12097c796245d5e431 2021-08-09 0634 UTC
Luet Copyright (C) 2019-2021 Ettore Di Giacinto
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
DEBUG (root.go:#186:github.com/mudler/luet/cmd.LoadConfig) Using config file: /etc/luet/luet.yaml
DEBUG (loader.go:#48:github.com/mudler/luet/pkg/repository.LoadRepositories) Parsing Repository Directory /etc/luet/repos.conf.d ...
time="2021-08-09T09:29:32Z" level=info msg="๐ Preparing folders"
time="2021-08-09T09:29:32Z" level=info msg="๐ Installing Overlay packages"
time="2021-08-09T09:29:32Z" level=info msg="๐ Installing luet packages"
Luet version 0.17.6-g10cd2997d8672d7f182b4f12097c796245d5e431 2021-08-09 0634 UTC
Luet Copyright (C) 2019-2021 Ettore Di Giacinto
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
DEBUG (root.go:#186:github.com/mudler/luet/cmd.LoadConfig) Using config file: tmp/luet-geniso313456336/overlayfs/luet.yaml
DEBUG (loader.go:#48:github.com/mudler/luet/pkg/repository.LoadRepositories) Parsing Repository Directory tmp/luet-geniso313456336/overlayfs/etc/luet/repos.conf.d ...
DEBUG (loader.go:#52:github.com/mudler/luet/pkg/repository.LoadRepositories) Skip dir tmp/luet-geniso313456336/overlayfs/etc/luet/repos.conf.d : open tmp/luet-geniso313456336/overlayfs/etc/luet/repos.conf.d: no such file or directory
DEBUG (install.go:#85:github.com/mudler/luet/cmd.glob..func11) Solver type: rate: 0.700000, discount: 1.000000, attempts: 9000, initialobserved: 999999
DEBUG (config_protect.go:#48:github.com/mudler/luet/pkg/installer.LoadConfigProtectConfs) Parsing Config Protect Directory /etc/luet/config.protect.d ...
DEBUG (repository.go:#739:github.com/mudler/luet/pkg/installer.(*LuetSystemRepository).Sync) Sync of the repository mocaccino-repository-index in progress...
DEBUG (http.go:#227:github.com/mudler/luet/pkg/installer/client.(*HttpClient).DownloadFile) Downloading https://get.mocaccino.org/mocaccino-repository-index/repository.yaml
Downloaded repository.yaml of 0.00 MB ( 0.01 MiB/s )
DEBUG (http.go:#227:github.com/mudler/luet/pkg/installer/client.(*HttpClient).DownloadFile) Downloading https://get.mocaccino.org/mocaccino-repository-index/tree.tar.gz
Downloaded tree.tar.gz of 0.00 MB ( 0.02 MiB/s )
DEBUG (repository.go:#801:github.com/mudler/luet/pkg/installer.(*LuetSystemRepository).Sync) Tree tarball for the repository mocaccino-repository-index downloaded correctly.
DEBUG (http.go:#227:github.com/mudler/luet/pkg/installer/client.(*HttpClient).DownloadFile) Downloading https://get.mocaccino.org/mocaccino-repository-index/repository.meta.yaml.tar.gz
Downloaded repository.meta.yaml.tar.gz of 0.00 MB ( 0.03 MiB/s )
DEBUG (repository.go:#809:github.com/mudler/luet/pkg/installer.(*LuetSystemRepository).Sync) Metadata tarball for the repository mocaccino-repository-index downloaded correctly.
DEBUG (repository.go:#822:github.com/mudler/luet/pkg/installer.(*LuetSystemRepository).Sync) Decompress tree of the repository mocaccino-repository-index...
Error: Failed syncing repository: mocaccino-repository-index: Error met while unpacking tree: destination must be an absolute path
time="2021-08-09T09:29:33Z" level=error msg="fatal error: exit status 1"
Additional context