~goorzhel/voidzero

Quickly set up a Pi Zero with Void Linux

deee850 s/MMC/SD/

4 months ago

997c1c1 Add TODO

4 months ago
  __               _      _ __   _____
 / /              (_)    | |\ \ |  _  |
| | __   __  ___   _   __| | | || |/' |
| | \ \ / / / _ \ | | / _` | | ||  /| |
| |  \ V / | (_) || || (_| | | |\ |_/ /
| |   \_/   \___/ |_| \__,_| | | \___/
 \_\                        /_/

#voidzero

Install Void Linux onto an SD card with three commands.

#Usage

$EDITOR env  # set path to SD card
. ./env
make -e

#download

Downloads the latest Void Pi image and verifies its signature and hash.

#flash

Flashes the image to $SD_CARD, then partitions the card into /boot and /.

#mount

Mounts the device's second partition to $MOUNT, and the first to $MOUNT/boot.

#stage

Prepares network settings (DEVICE_* or WPA_* env vars) and your SSH pubkey(s) (~/.ssh/id_*.pub) for installation to the target file system.

For predefined SSH hostkeys, place them in staging/priv/etc/ssh/ssh_host_* and stage will copy them over.

#install

Installs staged files to the file system mounted on $MOUNT.

#Dependencies

  • dd
  • e2fsck
  • install
  • proot
  • pv
  • resize2fs
  • sfdisk
  • signify
  • ssh-keygen
  • sudo
  • void-release-keys
  • wget
  • wpa_passphrase

#Limitations

  • The preferred repo is assumed to be repo-us.voidlinux.org.