[misha@ThinkPad thinkpad-ec]$ (
set -e
[ "$(cat /sys/class/block/sda1/start)" = 2048 ] || {
echo "СТОП: стандартного свободного участка нет"
exit 1
}
sudo pacman -S --needed gptfdisk syslinux
sudo sgdisk -b "$HOME/x230-partitions.gpt" /dev/sda
sudo sgdisk -a 1 -n 4:34:2047 -t 4:ef02 -c 4:BIOSBOOT /dev/sda
)
[sudo] password for misha:
resolving dependencies...
looking for conflicting packages...
Packages (2) gptfdisk-1.0.10-2 syslinux-6.04.pre3.r3.g05ac953c-5
Total Download Size: 1.60 MiB
Total Installed Size: 4.98 MiB
:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
gptfdisk-1.0.10-... 231.8 KiB 434 KiB/s 00:01 [######################] 100%
syslinux-6.04.pr... 1408.3 KiB 1608 KiB/s 00:01 [######################] 100%
Total (2/2) 1640.1 KiB 1760 KiB/s 00:01 [######################] 100%
(2/2) checking keys in keyring [######################] 100%
(2/2) checking package integrity [######################] 100%
(2/2) loading package files [######################] 100%
(2/2) checking for file conflicts [######################] 100%
(2/2) checking available disk space [######################] 100%
:: Processing package changes...
(1/2) installing gptfdisk [######################] 100%
(2/2) installing syslinux [######################] 100%
=> For setting up Syslinux EFI follow
https://wiki.archlinux.org/index.php/Syslinux#UEFI_Systems
=> The syslinux-install_update script does not currently support EFI install
Optional dependencies for syslinux
perl-crypt-passwdmd5: For md5pass
perl-digest-sha1: For sha1pass
mtools: For mkdiskimage and syslinux support [installed]
gptfdisk: For GPT support [installed]
util-linux: For isohybrid [installed]
efibootmgr: For EFI support [installed]
dosfstools: For EFI support [installed]
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
The operation has completed successfully.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.