burrow-pi-img/README.md

29 lines
584 B
Markdown
Raw Normal View History

2016-04-11 06:25:30 +00:00
#TODO
2016-05-05 22:19:28 +00:00
- NOOBS export
- Simplify running a single stage
- Documentation
2016-04-11 06:25:30 +00:00
#Dependencies
`quilt kpartx realpath qemu-user-static debootstrap zerofree`
2016-05-02 19:29:36 +00:00
2016-05-05 22:19:28 +00:00
# Example build script:
```bash
#!/bin/bash -e
# Set build variables
USERNAME=pi
PASSWORD=raspberry
HOSTNAME=raspberrypi
IMAGENAME="raspbian-lite-$(date +%Y-%m-%d)"
STAGE=2
# Build rootfs
sudo ./build.sh --username=${USERNAME} --password=${PASSWORD} --hostname=${HOSTNAME} --imagename=${IMAGENAME}
# Create .img
sudo ./create-image.sh --imagename=${IMAGENAME} --stage=${STAGE}
# Resulting image will be at images/${IMAGENAME}
```