Debian/Raspberry Pi: Difference between revisions
replaced "schroot -c stretch" with "sudo schroot -c test" Tag: visualeditor |
rather than link to schroot wiki page (which changes), include minimal instructions here |
||
| Line 1: | Line 1: | ||
== 2017-06- | == 2017-06-26 == | ||
Sucrose images for the Raspberry Pi 3 can be created by using this fork repository: | Sucrose images for the Raspberry Pi 3 can be created by using this fork repository: | ||
| Line 5: | Line 5: | ||
This was tested on Debian ''stretch'' platform which was set up in an ''schroot'' shell on Ubuntu. | This was tested on Debian ''stretch'' platform which was set up in an ''schroot'' shell on Ubuntu. | ||
=== Setup Schroot === | |||
Set up a ''schroot'' environment like this: | |||
* Install the ''schroot'' and ''debootstrap'' packages, | |||
sudo apt install schroot debootstrap | |||
* Create the ''stretch'' filesystem, | |||
sudo mkdir -p /srv/chroot/stretch | |||
sudo debootstrap stretch /srv/chroot/stretch | |||
* Make a file /etc/schroot/chroot.d/stretch, | |||
[stretch] | |||
type=directory | |||
personality=linux | |||
directory=/srv/chroot/stretch | |||
* Log into your ''schroot'' shell from the terminal, | * Log into your ''schroot'' shell from the terminal, | ||
sudo schroot -c | sudo schroot -c stretch | ||
See https://wiki.debian.org/Schroot for alternate methods. | |||
=== Setup Builder === | |||
Setup the builder within the ''schroot'' shell like this; | |||
* Clone the repository | * Clone the repository | ||
git clone <nowiki>https://github.com/Rishabh42/rpi23-gen-image</nowiki> | git clone <nowiki>https://github.com/Rishabh42/rpi23-gen-image</nowiki> | ||
* Install dependencies by going through the readme file in the repo and executing the commands described, | * Install dependencies by going through the readme file in the repo and executing the commands described, | ||
=== Run Builder === | |||
* Change your directory to the cloned repo and run this command to start the building process: | * Change your directory to the cloned repo and run this command to start the building process: | ||
sh rpi23-gen-image.sh | sh rpi23-gen-image.sh | ||