summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-xscripts/contrib/mkefidisk.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh
index 44ac130a68..b7db0a9134 100755
--- a/scripts/contrib/mkefidisk.sh
+++ b/scripts/contrib/mkefidisk.sh
@@ -166,6 +166,14 @@ parted $DEVICE mklabel gpt
166echo "Creating boot partition on $BOOTFS" 166echo "Creating boot partition on $BOOTFS"
167parted $DEVICE mkpart primary 0% $BOOT_SIZE 167parted $DEVICE mkpart primary 0% $BOOT_SIZE
168 168
169# GPT doesn't have a real boot flag, parted will change the GUID to EFI System Partition,
170# which is what we want
171echo "Enabling boot flag on $BOOTFS"
172parted $DEVICE set 1 boot on
173
174echo "Labeling $BOOTFS as EFI System Partition"
175parted $DEVICE name 1 "EFI System Partition"
176
169echo "Creating ROOTFS partition on $ROOTFS" 177echo "Creating ROOTFS partition on $ROOTFS"
170parted $DEVICE mkpart primary $ROOTFS_START $ROOTFS_END 178parted $DEVICE mkpart primary $ROOTFS_START $ROOTFS_END
171 179