mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 09:49:35 +02:00
init-install: Specify partition name in parted command line
parted allows to use names for partitions if GPT partition table is used on the device. msdos partitioning can have only partition types: 'primary', 'logical' or 'extended'. Used meaningful partition names in parted command line for GPT partitioning. (From OE-Core rev: ef2c6df7fcfd02ed45637f2e6b48f324d7a56b88) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
891cdacb62
commit
a10c4481f1
@@ -134,14 +134,14 @@ echo "Creating new partition table on /dev/${device} ..."
|
||||
parted /dev/${device} mklabel gpt
|
||||
|
||||
echo "Creating boot partition on $bootfs"
|
||||
parted /dev/${device} mkpart primary fat32 0% $boot_size
|
||||
parted /dev/${device} mkpart boot fat32 0% $boot_size
|
||||
parted /dev/${device} set 1 boot on
|
||||
|
||||
echo "Creating rootfs partition on $rootfs"
|
||||
parted /dev/${device} mkpart primary ext3 $rootfs_start $rootfs_end
|
||||
parted /dev/${device} mkpart root ext3 $rootfs_start $rootfs_end
|
||||
|
||||
echo "Creating swap partition on $swap"
|
||||
parted /dev/${device} mkpart primary linux-swap $swap_start 100%
|
||||
parted /dev/${device} mkpart swap linux-swap $swap_start 100%
|
||||
|
||||
parted /dev/${device} print
|
||||
|
||||
|
||||
Reference in New Issue
Block a user