-
Notifications
You must be signed in to change notification settings - Fork 27
Build your own images
Tom Hodder edited this page Nov 10, 2021
·
2 revisions
You will need an sdcard with at least enough space to flash the images. The released images and script were tested with 32GB cards, but you might be able to get away with 8GB for lite images.
- clone the repo
git clone https://github.com/limepepper/raspberry-pi-factory-reset.git
- Download a source image and save it to the root of the project directory then unzip it
$ wget https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2021-03-25/2021-03-04-raspios-buster-armhf.zip
$ unzip 2021-03-04-raspios-buster-armhf.zip
$ ls
2021-03-04-raspios-buster-armhf.zip
2021-03-04-raspios-buster-armhf-lite.img
create-factory-reset
- Make the script executable
$ chmod +x create-factory-reset
- Execute the script which modifies the image:
$ sudo ./create-factory-reset -i 2021-03-04-raspios-buster-armhf-lite.img -a
- This will produce a new image with
restoresuffix like so;
2021-03-04-raspios-buster-armhf-lite.restore.img
you can flash this to the rPi