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)"
|
|
|
|
|
|
|
|
# Build rootfs
|
|
|
|
sudo ./build.sh --username=${USERNAME} --password=${PASSWORD} --hostname=${HOSTNAME} --imagename=${IMAGENAME}
|
|
|
|
|
2016-05-06 00:12:08 +00:00
|
|
|
# Resulting images will be in deploy/
|
2016-05-05 22:19:28 +00:00
|
|
|
```
|