diff --git a/hardware/ovh_rise-1/grub.sh b/hardware/ovh_rise-1/grub.sh new file mode 100755 index 0000000..95f3b5a --- /dev/null +++ b/hardware/ovh_rise-1/grub.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -e + +grub-install /dev/nvme0n1 +grub-install /dev/nvme1n1 diff --git a/hardware/ovh_rise-1/parted.sh b/hardware/ovh_rise-1/parted.sh new file mode 100755 index 0000000..57eb971 --- /dev/null +++ b/hardware/ovh_rise-1/parted.sh @@ -0,0 +1,20 @@ +#!/bin/bash +set -e + + +# root 440GiB +# boot 2GiB +# free 8GiB + +parted /dev/nvme0n1 mklabel msdos +parted /dev/nvme0n1 mkpart primary 1 440GiB +parted /dev/nvme0n1 mkpart primary 440GiB 442GiB +parted /dev/nvme1n1 mklabel msdos +parted /dev/nvme1n1 mkpart primary 1 440GiB +parted /dev/nvme1n1 mkpart primary 440GiB 442GiB + +sleep 1 + +# $1=hostname +echo 'yes' | mdadm -C /dev/md0 --homehost="$1" -l1 -n2 /dev/nvmen[01]n1p1 +echo 'yes' | mdadm -C /dev/md1 --homehost="$1" -l1 -n2 /dev/nvmen[01]n1p2