add ovh_rise-1 preset
parent
0ac712a995
commit
a3eea2086d
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
grub-install /dev/nvme0n1
|
||||||
|
grub-install /dev/nvme1n1
|
@ -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
|
Loading…
Reference in New Issue