Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix files ownership #165

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions vmware-esxi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ include ../scripts/check.mk
PACKER ?= packer
PACKER_LOG ?= 0
export PACKER_LOG
SUDO ?= sudo
ISO ?= ${VMWARE_ESXI_ISO_PATH}
VENV := .ve

Expand All @@ -22,10 +21,10 @@ scripts.tar.xz:
cp -rv maas $${SCRIPT_DIR}/ ;\
python3 -m pip install -r requirements.txt --no-compile --target $${SCRIPT_DIR}/maas ;\
find $${SCRIPT_DIR} -name __pycache__ -type d -or -name *.so | xargs rm -rf ;\
tar cJf scripts.tar.xz -C $${SCRIPT_DIR} .
tar cJf $@ --group=0 --owner=0 -C $${SCRIPT_DIR} .

vmware-esxi.dd.gz: check-deps clean scripts.tar.xz
${SUDO} ${PACKER} init vmware-esxi.pkr.hcl && ${SUDO} ${PACKER} build -var "vmware_esxi_iso_path=${ISO}" vmware-esxi.pkr.hcl
${PACKER} init vmware-esxi.pkr.hcl && ${PACKER} build -var "vmware_esxi_iso_path=${ISO}" vmware-esxi.pkr.hcl

$(VENV): requirements-dev.txt requirements.txt
python3 -m venv --system-site-packages --clear $@
Expand All @@ -43,6 +42,7 @@ format: $(VENV)
$(VENV)/bin/black -q $(py_files)

clean:
${SUDO} ${RM} -rf output-esxi vmware-esxi.dd vmware-esxi.dd.gz $(VENV)
${RM} -rf output-esxi vmware-esxi.dd vmware-esxi.dd.gz \
scripts.tar.xz $(VENV)

.INTERMEDIATE: scripts.tar.xz