flasharch

command module
v1.1.1-0...-69a04ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2021 License: Unlicense Imports: 13 Imported by: 0

README

Maintenance Badge Class Badge GoReportCard Build Status

flasharch

Convenient script for downloading the latest Arch Linux ISO and creating a bootable flash drive

Installation

Get the source:

go get github.com/snhilde/flasharch

Install the program into your GOBIN:

go install ${GOPATH}/src/github.com/snhilde/flasharch

Now, if your GOBIN is part of your PATH, you can run flasharch from the command line.

Usage

Download the latest ISO image for Arch Linux and create a bootable USB drive:

flasharch /full/path/to/usb

Change /full/path/to/usb to the device file of your USB (e.g. /dev/sdc). Device files can be discovered with lsblk.

Configuration

The only setting you might want to configure is the mirror holding the ISO file. A full list of mirrors is here, under "HTTP Direct Downloads". Choose one you like, and set is as var mirror in main.go, right beneath the import statements. Please note that the path in the URL should end in /iso/latest/ to get the current release. Optionally choose a different directory to flash a previous release.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL