mkaczanowski / packer-builder-arm

Packer plugin to build ARM images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

armv6l isnt used

jayofelony opened this issue · comments

I run as such:
cd builder && sudo /usr/bin/packer init raspberrypi32.json.pkr.hcl && QEMU_CPU=arm1176 sudo $(UNSHARE) /usr/bin/packer build ...

But when I have a provisioner with uname -m it still uses default armv7l as architecture. While I require it to be armv6l.

Any tips?

sudo doesnt preserve environment variables. Should've known. sudo -E did the trick.