From a3eea2086d26a63b56ea341c444c4336bb59be46 Mon Sep 17 00:00:00 2001 From: lub Date: Fri, 20 Dec 2019 14:39:49 +0100 Subject: [PATCH] add ovh_rise-1 preset --- hardware/ovh_rise-1/grub.sh | 5 +++++ hardware/ovh_rise-1/parted.sh | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 hardware/ovh_rise-1/grub.sh create mode 100755 hardware/ovh_rise-1/parted.sh 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