#!/bin/sh # Script for writing the system to an existing disk. # This formats the disk, extracts the rootfs to it, installs the # bootloader, and ensures there's appropriate configuration for the # bootloader, kernel and userland to agree what the rootfs is. set -eu usage(){ cat <