add hardware setup for hetzner ax51
parent
a81a3b18a9
commit
da23749e62
@ -0,0 +1 @@
|
||||
/dev/nvme2n1p2
|
@ -0,0 +1 @@
|
||||
/dev/nvme2n1p3
|
@ -0,0 +1,16 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
address=$(ip address show dev eth0 scope global | grep -F 'inet ' | perl -pe 's#.*inet (.*?) .*#$1#')
|
||||
gateway=$(ip route list dev eth0 default | perl -pe 's#.*via ##')
|
||||
|
||||
# $interface differs from the live system because of different naming schemes
|
||||
# see https://wiki.debian.org/NetworkInterfaceNames for more details
|
||||
interface='enp35s0'
|
||||
|
||||
|
||||
echo "[Match]
|
||||
Name=$interface
|
||||
|
||||
[Network]
|
||||
Address=$address
|
||||
Gateway=$gateway" > "/etc/systemd/network/${interface}.network"
|
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
|
||||
# / 440GB
|
||||
# /boot 2GB
|
||||
# /boot/efi 1GB
|
||||
# free 7GB
|
||||
|
||||
parted /dev/nvme2n1 mklabel gpt
|
||||
parted /dev/nvme2n1 mkpart primary 1 500GB
|
||||
parted /dev/nvme2n1 mkpart primary 500GB 505GB
|
||||
parted /dev/nvme2n1 mkpart primary 505GB 510GB
|
||||
# set flag for ESP
|
||||
parted /dev/nvme2n1 set 3 boot on
|
||||
|
||||
sleep 1
|
@ -0,0 +1 @@
|
||||
/dev/nvme2n1p1
|
Loading…
Reference in New Issue