mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-03 21:53:26 +01:00
15 lines
240 B
Plaintext
15 lines
240 B
Plaintext
|
#!/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
|