Packer: Raspberry pi builder

Created on 8 Nov 2015  ยท  8Comments  ยท  Source: hashicorp/packer

Hello,

I have just came around your project, and would find interressant to have a raspberry pi image builder ( for raspbian, arch linux ...

A bit of poking around the net brought me on : http://www.kmp.or.at/~klaus/raspberry/build_rpi_sd_card.sh

Based on this, would you think gluing a builder would be doable ?

In such case, may you suggest a "least resistance path" to implement it ?
I would be glad to give a shot ...

enhancement pre-1.0 wontfix

Most helpful comment

All 8 comments

@ang-st This is a pretty interesting idea and I have this use-case myself. I've written a few scripts like this to bootstrap USB sticks. I'm not sure this is the best fit with packer, though. It would be particularly difficult for us to test and maintain it, for example.

Packer's focus is on performing unattended installs and automated building of machine images. In the SD card case you actually have to be present at the system in question to build the image, and we also have to solve for the cross-platform case which is pretty messy (since it involves hardware drivers and such), so I think this doesn't really fit with packer's overall design goals.

On the other hand, if you want to use packer to build the boot iso (and potentially use a different tool to image the SD card after packer has built it) I think this would make sense for packer.

All that said, do not let any of this stop you from building this for yourself. I would probably use this, even if it is not a good fit as a packer core plugin.

@ang-st Hmm... interesting... I've had some luck using the qemu builder to make bootable USB images for x86_32/x86_64 on x86_64 but there might be something in there that could help you get started (https://github.com/tylert/packer-build/blob/master/README.rst#making-bootable-usb-drives).

could the packer tcg help here ?

This would be awesome!

This sounds like a reasonable idea, but right now we're focused on 1.0. This has very low chance of ever being a priority for us, so we'd rather close this issue than have it stagnate for years to come. The best way to get this implemented would be to submit a PR. Please see the mailing list for more details on 1.0.

@mwhooker maybe we should have a list of 3pp plugins on https://www.packer.io/community-tools.html ?

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mushon4 picture mushon4  ยท  3Comments

s4mur4i picture s4mur4i  ยท  3Comments

znerd picture znerd  ยท  3Comments

DanielBo picture DanielBo  ยท  3Comments

shashanksinha89 picture shashanksinha89  ยท  3Comments