Updated readme
This commit is contained in:
parent
889ee2728d
commit
f2f7128cd6
31
README.md
31
README.md
|
@ -1,14 +1,29 @@
|
||||||
#TODO
|
#TODO
|
||||||
|
|
||||||
1. Image export
|
- NOOBS export
|
||||||
1. NOOBS export
|
- Simplify running a single stage
|
||||||
1. Simplify running a single stage
|
- Documentation
|
||||||
1. Documentation
|
|
||||||
|
|
||||||
#Dependencies
|
#Dependencies
|
||||||
|
|
||||||
`quilt kpartx realpath qemu-user-static debootstrap zerofree`
|
`quilt kpartx realpath qemu-user-static debootstrap zerofree`
|
||||||
|
|
||||||
# Example usage to build a bootable raspbian lite image:
|
# Example build script:
|
||||||
sudo ./build.sh
|
|
||||||
sudo ./create-image.sh --path=./work/2016-05-02-raspbian/stage3 --name="raspbian-lite"
|
```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}
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user