Skip to contentSkip to conversation

meta-intel: update init-install.sh

PATCH New Tom Zanussi 1 participant 1 message Aug 22, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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]

---
 .../initramfs-live-install/init-install.sh         |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
common/recipes-core/initrdscripts/initramfs-live-install/init-install.sh +3 -3
index 7f2ea7f..7d80190 100644
@@ -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
 
Signature · 1 line
1.7.0.4