- This script require administrative privilege
A simple post-flash script to configure:
- WiFi
- Username and password
- Resize SD card space to use all available free space
- Disable initial Fedora setup
- SSH key creation and add current host user's public key to 'authorized_keys'
-
Flash the raw Fedora image to Raspberry Pi SD card using balenaEtcher or any flasher.
-
Unplug and replug the SD card on the current working host.
-
Run the following script
chmod 750 fearless sudo bash fearless /path/to/sdcard/disk
Example :
chmod 750 fearless sudo bash fearless /dev/sdb
You can use
sudo lsblk
to find the right SD card disk (not partition) absolute path.
If you get some error like
mount: /mnt/fdroot: can't read superblock on /dev/mapper/fedora-root.
dmesg(1) may have more information after failed mount system call.
which usually lead to
xfs_growfs: /mnt/fdroot is not a mounted XFS filesystem
...
chroot: failed to run command ‘/bin/bash’: No such file or directory
...
umount: /mnt/fdroot: not mounted.
Just try to re-run this script, or try to unplug and replug the SD card again then re-run this script.
A raw (*.xz) image of Fedora Server from version 34 or newer.