Обновить install.sh
This commit is contained in:
11
install.sh
11
install.sh
@@ -3,12 +3,13 @@
|
||||
set -e
|
||||
|
||||
drive=/dev/nvme1n1
|
||||
bs=512
|
||||
|
||||
sgdisk --zap-all ${drive}
|
||||
sgdisk -o ${drive}
|
||||
sgdisk -a 4096 -n 1:0:+1G --typecode=1:ef00 ${drive}
|
||||
sgdisk -a 4096 -n 2:0:+8G --typecode=2:8200 ${drive}
|
||||
sgdisk -a 4096 --largest-new=3 --typecode=3:8300 ${drive}
|
||||
sgdisk -a ${bs} -n 1:0:+1G --typecode=1:ef00 ${drive}
|
||||
sgdisk -a ${bs} -n 2:0:+8G --typecode=2:8200 ${drive}
|
||||
sgdisk -a ${bs} --largest-new=3 --typecode=3:8300 ${drive}
|
||||
|
||||
mkfs.vfat ${drive}p1
|
||||
mkswap --force ${drive}p2
|
||||
@@ -44,6 +45,10 @@ cat <<EOF > /mnt/etc/default/grub
|
||||
GRUB_TIMEOUT=30
|
||||
GRUB_DEFAULT=saved
|
||||
GRUB_SAVEDEFAULT=false
|
||||
GRUB_TERMINAL_INPUT="console"
|
||||
GRUB_TERMINAL_OUTPUT="gfxterm"
|
||||
GRUB_ENABLE_BLSCFG=true
|
||||
GRUB_CMDLINE_LINUX="nomodeset rhgb pci=noaer i8042.debug=1 i8042.noaux=1"
|
||||
EOF
|
||||
|
||||
chroot /mnt grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
|
||||
Reference in New Issue
Block a user