diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-14 23:05:28 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-23 11:38:15 +0100 |
commit | ef2c6df7fcfd02ed45637f2e6b48f324d7a56b88 (patch) | |
tree | 541c4271cb7b1eddbc14046c08cffe9a24cff39f /meta/recipes-core/initrdscripts/files/init-install-efi.sh | |
parent | 945a5172c2b996f0f307813d061250c39f77ebd2 (diff) | |
download | openembedded-core-ef2c6df7fcfd02ed45637f2e6b48f324d7a56b88.tar.gz openembedded-core-ef2c6df7fcfd02ed45637f2e6b48f324d7a56b88.tar.bz2 openembedded-core-ef2c6df7fcfd02ed45637f2e6b48f324d7a56b88.zip |
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.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/initrdscripts/files/init-install-efi.sh')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install-efi.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index 7f3e889f32..a6a86790c8 100644 --- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh +++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh @@ -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 |