quarks/dev-util/bob/server/setup_fs.sh
2015-01-12 20:02:55 -08:00

17 lines
311 B
Bash

#!/bin/bash
parted -a opt /dev/sda -s $(cat parted.txt)
partprobe
pvcreate /dev/sda3
vgcreate disks /dev/sda3
lvcreate -L16G /dev/mapper/disks -n root
mkfs.xfs -f /dev/sda2
mkfs.xfs /dev/disks/root
mkdir /mnt/gentoo
mount /dev/disks/root /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda2 /mnt/gentoo/boot