Commit 0a6386d1 authored by Vladimír Štill's avatar Vladimír Štill

debootstrap: Tweak GPT setup

parent e5ea7825
......@@ -21,20 +21,24 @@ getpart() {
}
if [[ "$EFI" = "efi" ]]; then
# GPT table
# new partition 1 for EFI
# set it to type EFI system
# new partition 2 spanning rest of the disk
# set it to type Linux LVM
# LVM type partition
echo -e 'g\n' \
'n\n\n+512M\n' \
't\n1\n' \
'n\n\n\n' \
't\n2\n31\n' \
'p\n' \
'w\n' \
| sed 's/ //g' | fdisk $DISK
sed -re 's/^[ \t]+([\+0-9a-zA-Z]*)[ \t]*#.*$/\1/' << EOF | fdisk $DISK
g # GPT partition table
n # new partion
# default start
+512M # 512MB
t # set type
1 # EFI system
n # new partition
# default start
# default end
t # set type
31 # LVM
p # print
w # write
EOF
PARTN=2
mkfs.fat -F32 $(getpart $DISK 1)
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment