Commit 7318e05d authored by Anton Midyukov's avatar Anton Midyukov

build-vm: fix PATH to tar2fs with future mkimage

The definition of the TOPDIR variable has been fixed in a future mkimage. Will $(TOPDIR)=$(BUILDDIR).
parent f9dffdb9
...@@ -52,6 +52,8 @@ check-qemu: ...@@ -52,6 +52,8 @@ check-qemu:
tar2fs: $(SAVE_TARBALL) check-sudo prepare-tarball-qemu tar2fs: $(SAVE_TARBALL) check-sudo prepare-tarball-qemu
@if [ -x /usr/share/mkimage-profiles/bin/tar2fs ]; then \ @if [ -x /usr/share/mkimage-profiles/bin/tar2fs ]; then \
TOPDIR=/usr/share/mkimage-profiles; \ TOPDIR=/usr/share/mkimage-profiles; \
else \
[ -z "$(MKIMAGE_PROFILES)" ] || TOPDIR=$(MKIMAGE_PROFILES); \
fi; \ fi; \
if ! sudo $$TOPDIR/bin/tar2fs \ if ! sudo $$TOPDIR/bin/tar2fs \
"$(VM_TARBALL)" "$(VM_RAWDISK)" "$(VM_SIZE)" "$(VM_FSTYPE)" \ "$(VM_TARBALL)" "$(VM_RAWDISK)" "$(VM_SIZE)" "$(VM_FSTYPE)" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment