aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2011-08-21 14:22:07 -0500
committerTom Zanussi <tom.zanussi@intel.com>2011-08-22 11:18:46 -0500
commitf222033882ca011ed870eed29124ccf67ee27590 (patch)
treebe6fcd25374045703c1f7b5df7a4a0d54ed75c00
parentb6e1f4f124bf1b1c404a77345614f0839ff5429d (diff)
downloadmeta-intel-f222033882ca011ed870eed29124ccf67ee27590.tar.gz
meta-intel-f222033882ca011ed870eed29124ccf67ee27590.tar.bz2
meta-intel-f222033882ca011ed870eed29124ccf67ee27590.zip
meta-intel: update init-install.sh
The parted 3.0 release introduced some API changes such as the removal of mkpartfs. This updates init-install.sh to use mkpart instead. Fixes [YOCTO #1387] Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
-rw-r--r--common/recipes-core/initrdscripts/initramfs-live-install/init-install.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/recipes-core/initrdscripts/initramfs-live-install/init-install.sh b/common/recipes-core/initrdscripts/initramfs-live-install/init-install.sh
index 7f2ea7f4..7d801905 100644
--- a/common/recipes-core/initrdscripts/initramfs-live-install/init-install.sh
+++ b/common/recipes-core/initrdscripts/initramfs-live-install/init-install.sh
@@ -105,13 +105,13 @@ echo "Creating new partition table on /dev/${device} ..."
parted /dev/${device} mklabel msdos
echo "Creating boot partition on /dev/${device}1"
-parted /dev/${device} mkpartfs primary ext2 0 $boot_size
+parted /dev/${device} mkpart primary 0 $boot_size
echo "Creating rootfs partition on /dev/${device}2"
-parted /dev/${device} mkpartfs primary ext2 $rootfs_start $rootfs_end
+parted /dev/${device} mkpart primary $rootfs_start $rootfs_end
echo "Creating swap partition on /dev/${device}3"
-parted /dev/${device} mkpartfs primary linux-swap $swap_start $disk_size
+parted /dev/${device} mkpart primary $swap_start $disk_size
parted /dev/${device} print