michalfita/packer-plugin-cross

How to set to armv6l properly

Closed this issue · 1 comments

I am trying to get the plugin to use armv6l architecture with this command, as per docs:

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

But it still reverts to the default armv7l.
image

Hopefully you have any ideas as to why it will not switch to armv6l.

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