switch to efi boot

master
lub 5 years ago
parent 55d69f07e8
commit 8b3517be28

@ -1,5 +0,0 @@
#!/bin/bash
set -e
grub-install /dev/sda
grub-install /dev/sdb

@ -1,5 +0,0 @@
#!/bin/bash
set -e
grub-install /dev/nvme0n1
grub-install /dev/nvme1n1

@ -2,16 +2,24 @@
set -e set -e
# root 440GB # / 440GB
# boot 2GB # /boot 2GB
# free 5GB # /boot/efi 1GB
# free 7GB
parted /dev/nvme0n1 mklabel msdos parted /dev/nvme0n1 mklabel gpt
parted /dev/nvme0n1 mkpart primary 1 440GB parted /dev/nvme0n1 mkpart primary 1 440GB
parted /dev/nvme0n1 mkpart primary 440GB 442GB parted /dev/nvme0n1 mkpart primary 440GB 442GB
parted /dev/nvme1n1 mklabel msdos parted /dev/nvme0n1 mkpart primary 442GB 443GB
# set flag for ESP
parted /dev/nvme0n1 set 3 boot on
parted /dev/nvme1n1 mklabel gpt
parted /dev/nvme1n1 mkpart primary 1 440GB parted /dev/nvme1n1 mkpart primary 1 440GB
parted /dev/nvme1n1 mkpart primary 440GB 442GB parted /dev/nvme1n1 mkpart primary 440GB 442GB
parted /dev/nvme1n1 mkpart primary 442GB 443GB
# set flag for ESP
parted /dev/nvme1n1 set 3 boot on
sleep 1 sleep 1

@ -1,5 +0,0 @@
#!/bin/bash
set -e
grub-install /dev/vda
grub-install /dev/vdb

@ -32,7 +32,7 @@ sed -i 's/DROPBEAR_PORT=.*/DROPBEAR_PORT=222/' /etc/default/dropbear
# after cryptsetup, mdadm, ... because of update-initramfs # after cryptsetup, mdadm, ... because of update-initramfs
apt-get -y install linux-image-amd64 apt-get -y install linux-image-amd64
DEBIAN_FRONTEND=noninteractive apt-get -y install grub-pc apt-get -y install grub-efi-amd64
"/hardware-setup/hardware/$1/grub.sh" "/hardware-setup/hardware/$1/grub.sh"
update-grub update-grub

Loading…
Cancel
Save