mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-08 00:44:25 +01:00
makefile: honor DESTDIR flag.
1. Fix config installation not exec permission is needed.
2. Makefile install all in DESTDIR.
make install DESTDIR=/tmp/dest/
Before:
$tree /tmp/dest/
/tmp/dest/
└── usr
├── bin
│ └── kata-collect-data.sh
└── share
└── defaults
└── kata-containers
└── configuration.toml
5 directories, 2 files
Now:
$tree /tmp/dest/
/tmp/dest/
└── usr
├── local
│ └── bin
│ ├── kata-collect-data.sh
│ └── kata-runtime
└── share
├── bash-completion
│ └── completions
│ └── kata-runtime
└── defaults
└── kata-containers
└── configuration.toml
Fixes: #401
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
@@ -180,8 +180,8 @@ show_runtime_configs()
|
||||
# add in the standard defaults for good measure "just in case"
|
||||
configs+=" /etc/@PROJECT_TAG@/configuration.toml"
|
||||
configs+=" /usr/share/defaults/@PROJECT_TAG@/configuration.toml"
|
||||
configs+=" @DESTCONFIG@"
|
||||
configs+=" @DESTSYSCONFIG@"
|
||||
configs+=" @CONFIG_PATH@"
|
||||
configs+=" @SYSCONFIG@"
|
||||
|
||||
# create a unique list of config files
|
||||
configs=$(echo $configs|tr ' ' '\n'|sort -u)
|
||||
|
||||
Reference in New Issue
Block a user