/archlinux-arm-img

Zipped Arch Linux Arm .img files for raspi

Primary LanguageShellMIT LicenseMIT

archlinux-arm-img

Build Status

NOTE: DEPRECIATED IN FAVOR OF https://github.com/bcomnes/raspi-packer

logo

A simple (unofficial) CI/CD bash script to build a zipped .img of Arch Linux Arm installation archives, released to GitHub releases.

The alarm project does not publish images, just inconveniently packaged archives that require a very up-to-date version of bsdtar.

Usage

You can use this repo in a few different ways:

Flashing the provided image

  1. Download the image and install with the etcher GUI or something similar:
# on mac
$ brew cask install balenaetcher

etcher screenshot

  1. The / partition is very small, so you will also need to extend that to fill up your SD card. You have to do this from an external system, you cannot resize the partition with the system running on the SD card itself.
  1. Continue on step 9 from the relavant intructions where you boot the SD card, log in (user:alarm pw:alarm root:root) and initialize pacman:
pacman-key --init
pacman-key --populate archlinuxarm

Running your own build

The indented usage is to just consume the artifacts published on the GitHub releases page, but you can also run it locally on linux.

$ git clone https://github.com/bcomnes/archlinux-arm-img.git
$ cd archlinux-arm-img
$ sudo ./build-arch-arm-img.sh http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz

The script requires sudo access, because it needs to mount things. Read the script, it short.

There is also a script to install new bsdtar, but its just a simple ./configure ; make ; make install, so its not recommended to use outside of a disposable environment. Find a way to install bsdtar 3.3.1 or greater with your system package manager.

If you do run your own build, set it up to run in a CI environment. See .travis.yml for example CI usage.

Customize with packer (experimental)

(Note the following method is still experimental/WIP and doesn't work yet)

Create customized versions of this image with packer and solo-io/packer-builder-arm-image.

  • Install packages
  • Resize the image
  • Create users
  • Set up ssh keys
  • etc...

See github.com/bcomnes/raspi-packer for example consumption of this image with packer. (Not functional yet, see solo-io/packer-builder-arm-image#12)

Releases

Currently publishing the following installations. Open a pull request if you would like additional images added or to request a rebuild. Images are dated when they were created.

Run your own builds in CI for a greater level of trust in the build output.

See also