nix-config/sh/install/003-format
Donovan Glover 4e81aab657
Move installation steps to install directory
This helps separate the installation process from the other scripts that
are usually ran after a reboot, although this may change in the future
if chroot is preferred over executing the commands later.
2018-09-06 15:18:39 -04:00

15 lines
240 B
Bash

#!/bin/sh
#
# Format sda1 with an ext4 partition and sda2 with a swap partition.
# Then, enable swap for sda2.
#
# https://wiki.archlinux.org/index.php/Installation_guide
set -xe
mkfs -t ext4 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2