https://github.com/kizzycode/rpi4-fedora
A Fedora minimal image for the RasPi 4
https://github.com/kizzycode/rpi4-fedora
Last synced: 9 months ago
JSON representation
A Fedora minimal image for the RasPi 4
- Host: GitHub
- URL: https://github.com/kizzycode/rpi4-fedora
- Owner: KizzyCode
- Created: 2020-09-21T19:34:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-23T01:23:59.000Z (almost 5 years ago)
- Last Synced: 2025-02-06T04:44:16.685Z (11 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Creating a Fedora AArch64 Image for the RPi 4
- Prerequisites:
- A working Fedora installation
- Install `arm-image-installer`:
```sh
sudo dnf install arm-image-installer
```
- Define the base image and download components:
```sh
export RELEASE=33
export IMAGE=Fedora-Minimal-33-1.3
wget https://download.fedoraproject.org/pub/fedora-secondary/releases/$RELEASE/Spins/aarch64/images/$IMAGE.aarch64.raw.xz
wget https://raw.githubusercontent.com/KizzyCode/well_known_id_rsa/master/well_known_id_rsa.pub
```
- __⚠️ Important: ⚠️__ We deploy the [well_known_id_rsa public key](https://github.com/KizzyCode/well_known_id_rsa) for `root`;
so be aware that you remove this key from `/root/.ssh/authorized_keys` during deployment/setup
- Create and attach an 8 GiB working image:
```sh
dd if=/dev/zero bs=1M count=8192 | speed > $IMAGE.rpi4.img
sudo losetup -f $IMAGE.rpi4.img && losetup -l
```
- Create the image (where `loop0` must be replaced with the real loop device from the step above):
```sh
export LOOP=/dev/loop0
sudo arm-image-installer --target=rpi4 \
--image=$IMAGE.aarch64.raw.xz --media=$LOOP \
--addkey=well_known_id_rsa.pub \
--relabel --resizefs
sudo losetup -d $LOOP
```
- Wait up to 10 minutes for the initial setup after powering the RasPi and login as root via SSH
using the [well_known_id_rsa key](https://github.com/KizzyCode/well_known_id_rsa)
- [Optional] Create an xz-compressed template from the image:
```sh
speed < $IMAGE.rpi4.img | xz -ce -T 8 > $IMAGE.rpi4.img.xz
```